1. Summary
The speckle pattern, or specklegram, observed at the output of a multimode optical fiber arises from the interference between multiple modes propagating through the fiber. The spatial characteristics of this specklegram are highly sensitive to external perturbations applied to the fiber, making them a rich source of information for sensing applications [
1,
2,
3,
4,
5]. This sensitivity forms the basis of Fiber Specklegram Sensors (FSSs), where the relationship between external disturbances and specklegram changes is exploited for detection and measurement [
6,
7,
8]. Over the years, various analytical techniques have been employed to interpret specklegram data in optical fiber sensing systems. Traditional approaches, such as cross-correlation, have been used for spatial analysis of speckle patterns [
9,
10]. More recently, the integration of machine learning techniques has enabled advanced feature extraction, leading to more precise interpretation of disturbances [
3,
11,
12,
13,
14]. These advancements have significantly broadened the scope and capabilities of FSS technology.
Research in FSS has involved both simulated and experimental datasets. Simulated data enable researchers to explore a wide range of parameters in a controlled environment, though the computational cost can be a limiting factor for complex scenarios [
15,
16]. Conversely, experimental data provide real-world validation but require considerable time, resources, and manual effort for acquisition, particularly when performed without automation [
12,
13,
14,
17,
18]. Given the importance of large datasets for training machine learning models, recent efforts have focused on automating the data collection process. Automated systems reduce workload and facilitate the generation of high-quality datasets, which are critical for advancing the performance of machine learning algorithms in FSS applications [
19,
20].
However, there is still a lack of systematic, publicly available and sufficiently large datasets for temperature sensing applications using FSSs, which hinders further advancements in machine learning-based sensor development. To address this gap, we present a Specklegram Temperature Dataset to support the development of Fiber Optic Specklegram Sensors (FSSs), specifically for temperature applications using optical fiber technology. Although widely studied, temperature sensing is crucial in industrial, biomedical, or environmental contexts where traditional electrical sensors cannot be used (e.g., harsh environments, EMI-sensitive areas, etc.). This dataset includes experimental specklegram images acquired using a custom-built automated acquisition system. The dataset serves as a benchmark for developing deep learning models that predict temperature values based on speckle patterns. Applications of this dataset extend to enhancing the metrological characteristics of fiber optic sensors and validating experimental data against synthetic datasets [
15].
The images were captured during controlled heating and cooling cycles, ensuring comprehensive thermal characterization. Heating was applied along the length of the sensing zone, which is the part of the MMF directly affected by the thermal disturbance and has been shown to influence the sensitivity of the sensor [
21]. The availability of the dataset in .tiff format and its detailed labeling make it accessible for researchers in optics and data science.
The remainder of this paper is organized as follows:
Section 2 describes the dataset structure, acquisition parameters and image details.
Section 3 presents the method for image generation. Finally,
Section 4 discusses the use of the reported dataset in a deep learning interrogation scheme.
2. Data Description
2.1. Dataset Overview
Total Datasets: 14
Images per Dataset: 1752
Total Images: 24,528
Image Format: .tiff
2.2. Acquisition Parameters
Wavelength: 633 nm
Temperature Range: 25 °C to 200 °C
Incremental Temperature Step: ~0.175 °C
Length of Sensing Zone: 2 cm
Fiber Refractive-Index Profile: Step-index
Fiber Core Diameter: 62.5 μm
Fiber Cladding Diameter: 125 μm
Fiber Numerical Aperture (NA): 0.14
2.3. Image Details
The specklegram images exhibit distinct patterns influenced by the temperature changes within the sensing zone. Some dataset images are presented in
Figure 1.
Each image is labeled according to its acquisition conditions, with filenames encoding details such as the temperature and whether the data were collected during heating (“up”) or cooling (“dw”). The convention used is presented in
Figure 2.
3. Methods
The dataset was generated using an automated system that consists of a multimode optical fiber and a temperature-controlled heating system with PID (Proportional–Integral–Derivative) control. This system regulates the temperature along a section of the optical fiber, ranging from 25 °C to 200 °C. The total length of the multimode optical fiber used in our experimental setup is 70 cm. It is essential for automating the acquisition of experimental specklegrams and allows for perturbation over the length of the sensing zone, which in this case is 2 cm, positioned 5 cm from the distal end of the fiber. A helium–neon (HeNe) laser at 633 nm with a power of less than 2.5 mW and a spectral bandwidth of 2 pm was used as the light source for the setup.
The system includes the following: (1) an aluminum block for different perturbation lengths; (2) an NTC 100 K thermistor for temperature sensing; (3) a 12 V 40 W heating tube; (4) an Arduino Mega 2560; (5) a 12 V power supply; (6) a RAMPS 1.4 power control board; and (7) structural components for assembly and a high-resolution camera (CCD camera with 1280 × 1024 pixel resolution). The RGB camera used in this study features an 8-bit depth per channel. The exposure time was set to approximately 50 ms, optimized to maximize the dynamic range of around 48 dB while avoiding pixel saturation. Noise levels in the acquired images were found to be non-significant, and ongoing computational validation, including data augmentation with random noise addition, confirms the robustness of the results.
The aluminum block serves as the primary interface for heating the MMF, with copper tape securing the fiber in direct contact. This ensures efficient thermal transfer and uniform perturbation of the speckle-generating region. The optical fiber was exposed to incremental temperature changes, and specklegram images were captured at each step. After each heating cycle, images were also captured during the cooling phase by deactivating the heat source [
20]. An image of the complete lab arrangement is shown in
Figure 3a, while a simplified schematic of the fiber illumination and detection principle is provided in
Figure 3b.
In
Figure 3a, the optical components used to condition the laser light include a 633 nm helium–neon laser, a polarizer to ensure linear polarization, and a lens for focusing or collimating the light into the optical fiber during free-space propagation. The optical connector used is an FC/PC connector, and the optical fiber is a multimode fiber with a 62.5 μm core diameter, 125 μm cladding diameter, and a 2 cm sensing zone length. In
Figure 3b, the lens used in the image-forming system is a 20× Olympus microscope objective, which typically has a focal length of approximately 9–10 mm. This objective lens is responsible for forming the speckle pattern image captured by the camera.
The optical fiber was exposed to incremental temperature changes, and specklegram images were captured at each step. The experimental setup ensures repeatability and minimizes noise, providing high-quality images for deep learning training. Key steps include the following:
Preparation
The MMF is fed by a 633 nm laser source and mounted so that the sensing zone is in good thermal contact with the heating block.
The fiber output is imaged through an Olympus 20× objective onto the CCD camera, which is aligned using XYZ translation stages to capture the speckle pattern consistently.
Temperature Control
A PID loop running on the Arduino Mega 2560 drives the 12 V/40 W heater.
The NTC thermistor provides real-time temperature feedback, ensuring stable and precise increments from 25 °C up to 200 °C.
After reaching each setpoint, the system holds the temperature to allow the fiber to equilibrate before an image is taken.
Image Acquisition
For each temperature setpoint, specklegram images are recorded using the high-resolution camera at 1280 × 1024 pixels.
This process is repeated stepwise from the lowest to the highest temperature.
Once the heating cycle is complete, the heat source is turned off, and cooling-phase specklegrams are also captured as the fiber returns to ambient temperature [
20].
Data curation involved validating image quality; valid images were labeled with metadata (e.g., temperature setpoint, heating or cooling phase) and systematically stored in .tiff format for ease of use in computer vision pipelines. This structure labeling ensures repeatability and maximizes usability for subsequent deep learning experiments or comparative studies.
4. Use of Dataset in a Deep Learning Interrogation Scheme
The curated dataset was utilized in a deep learning workflow aimed at temperature estimation from Fiber Speckle Sensor (FSS) images. A Convolutional Neural Network architecture was employed to extract robust features from the speckle patterns and then map those features directly to temperature values via regression. A customized MobileNet architecture, referred to here as MNet-reg, was adapted for regression tasks. MobileNet is a lightweight and efficient architecture recognized in computer vision that uses depthwise separable convolutions to reduce computational requirements, making it ideal for mobile device implementation without compromising performance in tasks such as classification or detection [
22]. To tailor this network for temperature regression, some modifications were incorporated:
A GlobalAveragePooling2D layer to reduce overfitting and dimensionality.
Three Dense layers with 1024 neurons each for high-capacity feature learning.
A dropout layer (50% rate) for regularization and improved generalization.
A final single-neuron output layer to produce the scalar temperature estimate.
The model evaluation with the dataset was performed by comparing the actual temperature curves against the estimated temperature in the experimental range from 25 °C to 200 °C used during training.
The neural network was trained using Dataset 1, which comprised 1752 specklegram pattern images captured across a temperature range of 25 °C to 200 °C, with temperature increments of approximately 0.175 °C. The data were partitioned following standard machine learning practices, with 80% allocated for training and the remaining 20% equally split between validation and testing sets to ensure comprehensive model evaluation. The implementation was carried out in Python 3.9.16, leveraging the Keras 2.11.0 framework with TensorFlow 2.11.0 backend. Training parameters were optimized through experimentation, utilizing a learning rate of 8 × 10−5 over 300 epochs, while implementing a 50% dropout rate to prevent overfitting and enhance model generalization.
After training, temperature predictions were compared against ground-truth measurements in the 25 °C to 200 °C range. As shown in
Figure 4, the estimated temperature values align closely with the actual temperature. Additionally, the Root Mean Square Error (RMSE) was found to be 0.94 °C. These results demonstrate robust model behavior across the entire temperature spectrum, thus indicating the potential of CNN-based architectures for high-accuracy temperature interrogation in FSS applications.
5. User Notes
Dataset Access: the dataset is publicly available under a CC-BY license, allowing use and modification with proper attribution.
Potential Applications: The dataset supports a range of applications, including the development and validation of deep learning models for temperature sensing, comparative analysis between experimental and synthetic specklegram data, optimization of fiber optic sensing systems, and advancement of intelligent sensing technologies. It serves as a benchmark resource for evaluating novel machine learning approaches and validating computational models in optical fiber sensing. Additionally, it can aid in the study of multimode fiber behavior under thermal variations, improving the understanding of mode interference dynamics and enhancing the design of new sensing architectures.
Limitations: This dataset is tailored to the specified acquisition parameters, which may limit its direct applicability to different experimental configurations. Adaptations may be required to ensure compatibility with alternative sensing applications or optical setups. Users should consider variations in fiber type, laser wavelength, and environmental conditions when applying the dataset to different experimental scenarios.
Future Work: Future research will focus on hybrid modeling approaches that integrate both synthetic and experimental datasets. This methodology aims to enhance model generalization by leveraging the controlled conditions of synthetic data while incorporating the complexity of real-world experimental measurements. Additionally, expanding the dataset to include new sensing parameters, such as fiber deformation and curvature, will further extend the applicability of Fiber Optic Specklegram Sensors (FSSs) beyond temperature monitoring. These advancements will contribute to the development of more robust and versatile deep learning models for fiber optic sensing applications.
Author Contributions
Conceptualization, F.J.V. and J.A.H.-R.; methodology, F.J.V., J.D.A. and V.H.A.; validation, F.J.V., V.H.A. and J.A.H.-R.; database curation, J.D.A. and J.A.H.-R.; writing—original draft preparation, F.J.V.; writing—review and editing, J.A.H.-R. and C.T.; supervision, C.T. and J.A.H.-R.; funding acquisition, F.J.V., C.T. and J.A.H.-R. All authors have read and agreed to the published version of the manuscript.
Funding
This work was partially funded by Universidad Cooperativa de Colombia (UCC) (INV3612); Instituto Tecnológico Metropolitano (ITM) (P20222), EAFIT University and MINCIENCIAS National Doctorates program.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The original data presented in the study are openly available for academic research in Open Science Framework OSF repository at
https://doi.org/10.17605/OSF.IO/8NXVK under Creative Commons licence CC-BY-SA 4.0.
Conflicts of Interest
The authors declare no conflicts of interest related to this work.
Abbreviations
The following abbreviations are used in this manuscript:
FSSs | Fiber Optic Specklegram Sensors |
PID | Proportional–Integral–Derivative |
CCD | Charge Coupled Device |
MMF | Multi-Mode Fiber |
CNNs | Convolutional Neural Networks |
References
- Yu, F.T.S. Fiber Specklegram Sensors. Fiber Opt. Sens. 2018, 201–252. [Google Scholar] [CrossRef]
- Leal-Junior, A.G.; Frizera, A.; Marques, C.; Pontes, M.J. Optical Fiber Specklegram Sensors for Mechanical Measurements: A Review. IEEE Sens. J. 2020, 20, 569–576. [Google Scholar] [CrossRef]
- Liu, Y.; Li, G.; Qin, Q.; Tan, Z.; Wang, M.; Yan, F. Bending Recognition Based on the Analysis of Fiber Specklegrams Using Deep Learning. Opt. Laser Technol. 2020, 131, 106424. [Google Scholar] [CrossRef]
- Efendioglu, H.S. A Review of Fiber-Optic Modal Modulated Sensors: Specklegram and Modal Power Distribution Sensing. IEEE Sens. J. 2017, 17, 2055–2064. [Google Scholar] [CrossRef]
- Udd, E. Overview of Fiber Optic Sensors. Fiber Opt. Sens. 2018, 1–34. [Google Scholar] [CrossRef]
- Pieper, D.; Donnell, K.M.; Abdelkarim, O.; Elgawady, M.A. Embedded FSS Sensing for Structural Health Monitoring of Bridge Columns. In Proceedings of the Conference Record-IEEE Instrumentation and Measurement Technology Conference, Taipei, Taiwan, 23–26 May 2016; Institute of Electrical and Electronics Engineers Inc.: New York, NY, USA, 2016; Volume 2016. [Google Scholar]
- Lu, S.; Tan, Z.; Ji, W.; Zhang, D. A Spatial Domain Multiplexing Technology for Fiber Specklegram Sensor. Opt. Fiber Technol. 2023, 81, 103505. [Google Scholar] [CrossRef]
- Li, G.; Liu, Y.; Pang, L.; Yuan, H.; Wang, M. A Novel Structure with Ultra Short Multimode Fiber for Fiber Specklegram Sensor and Its Application in Multi-Bending Sensing. Proof and Concept. J. Light. Technol. 2024, 42, 8966–8974. [Google Scholar] [CrossRef]
- Fujiwara, E.; Marques dos Santos, M.F.; Suzuki, C.K. Optical Fiber Specklegram Sensor Analysis by Speckle Pattern Division. Appl. Opt. 2017, 56, 1585. [Google Scholar] [CrossRef] [PubMed]
- Gubarev, F.; Li, L.; Klenovskii, M.; Glotov, A. Speckle Pattern Processing by Digital Image Correlation. In Proceedings of the MATEC Web of Conferences, Tomsk, Russia, 12–14 April 2016; Volume 48. [Google Scholar]
- Vélez, F.J.; Arango, J.D.; Aristizábal, V.H.; Trujillo, C.A.; Herrera-Ramírez, J. Comparative Performance Evaluation of Classical Methods and a Deep Learning Approach for Temperature Prediction in Fiber Optic Specklegram Sensors. Comput. Opt. 2024, 48, 689–695. [Google Scholar] [CrossRef]
- Gao, X.; Wu, J.; Song, B.; Liu, H.; Duan, S.; Zhang, Z.; Liu, X.; Sun, H. Deep Learning for Temperature Sensing with Microstructure Fiber in Noise Perturbation Environment. IEEE Photonics Technol. Lett. 2023, 35, 1247–1250. [Google Scholar] [CrossRef]
- Smith, D.L.; Nguyen, L.V.; Ottaway, D.J.; Cabral, T.D.; Cabral, T.D.; Fujiwara, E.; Cordeiro, C.M.B.; Cordeiro, C.M.B.; Warren-Smith, S.C.; Warren-Smith, S.C.; et al. Machine Learning for Sensing with a Multimode Exposed Core Fiber Specklegram Sensor. Opt. Express 2022, 30, 10443–10455. [Google Scholar] [CrossRef] [PubMed]
- Li, G.; Liu, Y.; Qin, Q.; Zou, X.; Wang, M.; Yan, F. Deep Learning Based Optical Curvature Sensor through Specklegram Detection of Multimode Fiber. Opt. Laser Technol. 2022, 149, 107873. [Google Scholar] [CrossRef]
- Arango, J.; Aristizabal, V.; Vélez, F.; Carrasquilla, J.; Gomez, J.; Quijano, J.; Herrera-Ramirez, J. Synthetic Dataset of Speckle Images for Fiber Optic Temperature Sensor. Data Br. 2023, 48, 109134. [Google Scholar] [CrossRef] [PubMed]
- Arístizabal, V.H.; Vélez, F.J.; Rueda, E.; Gómez, N.D.; Gómez, J.A. Numerical Modeling of Fiber Specklegram Sensors by Using Finite Element Method (FEM). Opt. Express 2016, 24, 27225. [Google Scholar] [CrossRef] [PubMed]
- Razmyar, S.; Mostafavi, M.T. Deep Learning for Estimating Deflection Direction of a Multimode Fiber from Specklegram. J. Light. Technol. 2021, 39, 1850–1857. [Google Scholar] [CrossRef]
- Sun, H.; Wu, J.; Song, B.; Song, B.; Wang, J.; Liu, X. Speckle-Decoded Temperature-Insensitive Strain Identification in a Multimode Optical Fiber. Opt. Lett. 2024, 49, 6185–6188. [Google Scholar] [CrossRef] [PubMed]
- Li, G.; Liu, Y.; Qin, Q.; Zou, X.; Wang, M.; Ren, W. Feature Extraction Enabled Deep Learning From Specklegram for Optical Fiber Curvature Sensing. IEEE Sens. J. 2022, 22, 15974–15984. [Google Scholar] [CrossRef]
- Arango, J.; Aristizabal, V.; Carrasquilla, J.; Gomez, J.; Quijano, J.; Vélez, F.; Gomez, M.; Herrera-Ramirez, J. Automatic Acquisition System of Fiber Optic Speckle Patterns with Temperature Variations. In Proceedings of the Optica Imaging Congress (3D, COSI, DH, FLatOptics, IS, pcAOP), Boston, MA, USA, 14–17 August 2023. paper ITh2E.3. [Google Scholar] [CrossRef]
- Arango, J.D.; Vélez, Y.A.; Aristizabal, V.H.; Vélez, F.J.; Gómez, J.A.; Quijano, J.C.; Herrera-Ramirez, J. Numerical Study Using Finite Element Method for the Thermal Response of Fiber Specklegram Sensors with Changes in the Length of the Sensing Zone. Comput. Opt. 2021, 45, 534–540. [Google Scholar] [CrossRef]
- Chitrapu, P.; Kalluri, H.K. MobileNet-Powered Deep Learning for Efficient Face Classification. In Proceedings of the 2024 IEEE International Students’ Conference on Electrical, Electronics and Computer Science (SCEECS), Bhopal, India, 24–25 February 2024. [Google Scholar] [CrossRef]
| Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).