Continuous UV level estimation using photochromic PLA surfaces: A transformer-based heterogeneous deep ensemble approach

Abstract This study presents a high-precision, continuous machine vision system for estimating ultraviolet (UV) radiation levels using low-cost, 3D-printable polylactic acid-based photochromic material (PLA-PCM) surfaces. Filament color transitions under different UV intensities were recorded at eight ambient color temperatures, and a zero-padding spatial arrangement protocol was applied to the 252×56 images that underwent color changes to extract stable temporal features. The methodology employs a deep transformer encoder (DTE) with multi-head self-attention (MSA), computing global temporal dependencies in parallel within 222 milliseconds and ensuring edge-AI compatibility. Multi-spectral feature vectors from the RGB, HSV, and CIELAB color spaces, augmented with ambient color temperature and DCT components, were constructed for 59,000 frames derived from 236 video sessions at 10 Hz. A strict zero-data-leakage protocol was enforced through video-level holdout and stratified temporal splits. Each fold equally represented the fast-onset and slow-decay phases of the photochromic reaction within a five-fold cross-validation. The resulting transformer-based heterogeneous deep ensemble (T-HDE), integrating Transformer, SVR, CatBoost, LightGBM, ExtraTrees, and MLP regressors with Nelder-Mead optimized weights, achieved R 2 = 0.9938 on the held-out test set with a homoscedastic error distribution, indicating that prediction accuracy remains equally reliable across low and high UV exposure levels. In single-frame snapshot mode, R 2 = 0.9811 was attained, confirming that even without temporal sequence information, the zero-padding-based spatial features alone provide robust UV estimation. These findings demonstrate that PLA-PCM surfaces, coupled with the T-HDE architecture, can serve as precise, continuous, and cost-effective UV dosimeters for IoT-based environmental monitoring and edge-AI sensing platforms.

Authors

Institutions

Publication Details

Journal
Measurement Science and Technology
Published
2026-11-09
DOI
https://doi.org/10.1088/1361-6501/aebfbc
Primary Topic
Color Science and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Continuous UV level estimation using photochromic PLA surfaces: A transformer-based heterogeneous deep ensemble approach

Ömer Galip Saraçoğlu, Şekip Esat Hayber, Eşref Erdoğan, Serkan Keser
Measurement Science and Technology
Color Science and Applications
article

Continuous UV level estimation using photochromic PLA surfaces: A transformer-based heterogeneous deep ensemble approach

Ömer Galip Saraçoğlu, Şekip Esat Hayber, Eşref Erdoğan, Serkan Keser
article en

Abstract

Abstract This study presents a high-precision, continuous machine vision system for estimating ultraviolet (UV) radiation levels using low-cost, 3D-printable polylactic acid-based photochromic material (PLA-PCM) surfaces. Filament color transitions under different UV intensities were recorded at eight ambient color temperatures, and a zero-padding spatial arrangement protocol was applied to the 252×56 images that underwent color changes to extract stable temporal features. The methodology employs a deep transformer encoder (DTE) with multi-head self-attention (MSA), computing global temporal dependencies in parallel within 222 milliseconds and ensuring edge-AI compatibility. Multi-spectral feature vectors from the RGB, HSV, and CIELAB color spaces, augmented with ambient color temperature and DCT components, were constructed for 59,000 frames derived from 236 video sessions at 10 Hz. A strict zero-data-leakage protocol was enforced through video-level holdout and stratified temporal splits. Each fold equally represented the fast-onset and slow-decay phases of the photochromic reaction within a five-fold cross-validation. The resulting transformer-based heterogeneous deep ensemble (T-HDE), integrating Transformer, SVR, CatBoost, LightGBM, ExtraTrees, and MLP regressors with Nelder-Mead optimized weights, achieved R 2 = 0.9938 on the held-out test set with a homoscedastic error distribution, indicating that prediction accuracy remains equally reliable across low and high UV exposure levels. In single-frame snapshot mode, R 2 = 0.9811 was attained, confirming that even without temporal sequence information, the zero-padding-based spatial features alone provide robust UV estimation. These findings demonstrate that PLA-PCM surfaces, coupled with the T-HDE architecture, can serve as precise, continuous, and cost-effective UV dosimeters for IoT-based environmental monitoring and edge-AI sensing platforms.

Measurement Science and Technology
Bursa Uludağ Üni̇versi̇tesi̇ (TR), Ahi Evran University (TR), Cukurova University (TR), Erciyes University (TR)
Color Science and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon