This study presents a robust deep learning-based approach for temperature sensing using Fiber Specklegram Sensors (FSS), leveraging an extended experimental framework to evaluate model generalization. A convolutional neural network (CNN), specifically a customized MobileNet architecture (MNet-reg), was trained on multiple experimental datasets to assess the impact of increasing data availability on sensing accuracy. Generalization is evaluated as cross-dataset performance under unseen experimental realizations, rather than under controlled intra-dataset splits. The experimental setup utilized a multi-mode optical fiber (MMF) (core diameter 62.5 µm) subjected to controlled thermal cycles via a PID-regulated heating system. The curated dataset comprises 24,528 specklegram images captured over a temperature range of 25.00 °C to 200.00 °C with increments of ~0.20 °C. The experimental results demonstrate that models trained with an increasing number of datasets (from 1 to 13) significantly improve accuracy, reducing Mean Absolute Error (MAE) from 13.39 to 0.69 °C, and achieving a Root Mean Square Error (RMSE) of 0.90 °C with an R2 score of 0.99. Our systematic analysis establishes that scaling experimental data diversity—through training on multiple independent realizations—is the foundational strategy to overcome domain shift and enable robust cross-dataset generalization.
Hoyos et al. (Mon,) studied this question.