Research on Time Difference Prediction of RTD Fluxgate Sensors Based on an Improved Transformer Neural Network
Abstract
1. Introduction
2. The Working Principle of the RTD-Type Fluxgate Sensor
3. Research on Time Difference Prediction Using Improved Transformer Model
3.1. Transformer Model Prediction Research
3.2. Construction of Time Difference Prediction Model Based on Transformer
4. Simulation Experiments and Analysis
5. Experiment and Preliminary Results
6. Conclusions and Discussion
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Ferro, C.; Graziani, S.; Mirabella, S.; Trigona, C.; Tuccitto, N.; Urso, M.; Bulsara, A.R.; Baglio, S. Implementing the RTD Fluxgate Magnetometer for Measurements of Kinematic Viscosity. In Proceedings of the IEEE Sensors Applications Symposium (SAS), Naples, Italy, 23–25 July 2024; IEEE: New York, NY, USA, 2024; pp. 1–5. [Google Scholar] [CrossRef] [Scilit]
- Yang, B. Theoretical Modeling and Experimental Research on Time-Difference Fluxgate Sensors. Ph.D. Thesis, Nanjing University of Science and Technology, Nanjing, China, 2015. [Google Scholar]
- Ferro, C.; Andò, B.; Trigona, C.; Bulsara, A.R.; Baglio, S. Residence Time Difference Fluxgate Magnetometer in “Horseshoe-Coupled” Configuration. IEEE Open J. Instrum. Meas. 2023, 2, 9500111. [Google Scholar] [CrossRef] [Scilit]
- Pang, N. Research on Low-Noise Techniques for Residence Time Difference Fluxgate Sensors. Ph.D. Thesis, Jilin University, Changchun, China, 2018. [Google Scholar]
- Han, P.; Ellefsen, A.L.; Li, G.; Holmeset, F.T.; Zhang, H. Fault Detection with LSTM-Based Variational Autoencoder for Maritime Components. IEEE Sens. J. 2021, 21, 21903–21912. [Google Scholar] [CrossRef] [Scilit]
- Haldimann, D.; Guerriero, M.; Maret, Y.; Bonavita, N.; Ciarlo, G.; Sabbadin, M. A Scalable Algorithm for Identifying Multiple-Sensor Faults Using Disentangled RNNs. IEEE Trans. Neural Netw. Learn. Syst. 2022, 33, 1093–1106. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ullah, K.; Ahsan, M.; Hasanat, S.M.; Haris, M.; Yousaf, H.; Raza, S.F.; Tandon, R.; Abid, S.; Ullah, Z. Short-Term Load Forecasting: A Comprehensive Review and Simulation Study with CNN-LSTM Hybrids Approach. IEEE Access 2024, 12, 111858–111881. [Google Scholar] [CrossRef] [Scilit]
- Dao, F.; Zeng, Y.; Qian, J. Fault Diagnosis of Hydro-Turbine via the Incorporation of Bayesian Algorithm Optimized CNN-LSTM Neural Network. Energy 2024, 290, 130326. [Google Scholar] [CrossRef] [Scilit]
- Yang, B.; Liang, T.; Xiong, J.; Zhong, C. Deep Reinforcement Learning Based on Transformer and U-Net Framework for Stock Trading. Knowl. Based Syst. 2023, 262, 110211. [Google Scholar] [CrossRef] [Scilit]
- Cheng, W.; Che, W. Research on Financial Time Series Prediction Algorithm Based on Secondary Decomposition and LSTM. J. Chongqing Univ. Posts Telecommun. 2022, 34, 638–645. [Google Scholar]
- Luo, Z.; Zhao, B.; Liu, W.; Zheng, J.; Chen, W. DBSCAN-PCA-INFORMER-Based Droplet Motion Time Prediction Model for Digital Microfluidic Systems. Micromachines 2025, 16, 594. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Che, T. Long Time Series Prediction of Exchange Rates Based on the Transformer Model. Ph.D. Thesis, East China Jiaotong University, Nanchang, China, 2023. [Google Scholar]
- Sun, S.; Zhuang, J. Design of an Intelligent Early Warning Model for Power Grid Lightning Based on LSTM-RNN. Electron. Des. Eng. 2023, 31, 118–122. [Google Scholar]
- Foumani, N.M.; Tan, C.W.; Webb, G.I.; Salehi, M. Improving position encoding of transformers for multivariate time series classification. Data Min. Knowl. Discov. 2024, 38, 22–48. [Google Scholar] [CrossRef] [Scilit]
- Guo, H.; Pang, N.; Hu, X.; Wang, R.; Li, G.; Li, F. Theoretical Simulation of Output Characteristics of an RTD-Fluxgate Sensor Under Sawtooth Wave Excitation. Micromachines 2025, 16, 388. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, J.; Zhang, X.; Shi, J.; Heidari, H.; Wang, Y. Performance Degradation Effect Countermeasures in Residence Times Difference (RTD) Fluxgate Magnetic Sensors. IEEE Sens. J. 2019, 19, 11819–11827. [Google Scholar] [CrossRef] [Scilit]
- Chen, S.; Wang, Y.; Li, J.; Piao, H.; Lin, J. Sensitivity Model for Residence Times Difference Fluxgate Magnetometers Near Zero Magnetic Field. IEEE Sens. J. 2020, 20, 868–875. [Google Scholar] [CrossRef] [Scilit]
- Li, M.; Li, H.; Shi, Y.; Meng, Y. A Novel Transformer Architecture for Scalable Perovskite Thin-Film Detection. Micromachines 2026, 17, 314. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Albeladi, K.; Zafar, B.; Mueen, A. Time Series Forecasting Using LSTM and ARIMA. Int. J. Adv. Comput. Sci. Appl. 2023, 14, 313–320. [Google Scholar] [CrossRef] [Scilit]
- Bentsen, L.Ø.; Warakagoda, N.D.; Stenbro, R.; Engelstad, P. Spatio-Temporal Wind Speed Forecasting Using Graph Networks and Novel Transformer Architectures. Appl. Energy 2023, 333, 120565. [Google Scholar] [CrossRef] [Scilit]
- Gao, Z. Application of Transformer in Multidimensional Images. Technol. Innov. Appl. 2023, 13, 5–8. [Google Scholar]
- Li, W.; Chen, J.; Liu, R.; Hou, Y.; Du, S. T-Transformer Model for Predicting Tensor Time Series. Comput. Eng. Appl. 2023, 59, 57–62. [Google Scholar] [CrossRef]
- Zheng, Z.; Li, Z.; Sun, Z.; Lin, Y. Research on Electromagnetic Signal Recognition Based on CNN-Transformer Network Fusion Model. Radio Commun. Technol. 2023, 49, 262–268. [Google Scholar] [CrossRef]
- Su, Y.; Cui, C.; Qu, H. Time Series Prediction Based on Self-Attention Moving Average. J. Nanjing Univ. 2022, 58, 649–657. [Google Scholar] [CrossRef]
- Ma, X.; Liang, Z.; Zhu, Y.; Wan, D. A No-Delay Method for Hydrological Time Series Prediction. Sci. Technol. Eng. 2022, 22, 9695–9702. [Google Scholar]
- Fan, M.; Xiao, M.; Hu, Y.; Wu, Y. Gastric Polyp Image Detection Based on Improved SSD Algorithm. Softw. Eng. 2023, 26, 30–35. [Google Scholar] [CrossRef]
- Wang, Y.; Wu, S.; Zhou, Z.; Cheng, D.; Pang, N.; Wan, Y. Research on the Dynamic Hysteresis Loop Model of the Residence Times Difference (RTD)-Fluxgate. Sensors 2013, 13, 11539–11552. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is All You Need. Adv. Neural Inf. Process. Syst. 2017, 30, 5998–6008. [Google Scholar]
- Srivastava, N.; Hinton, G.; Krizhevsky, A.; Sutskever, I.; Salakhutdinov, R. Dropout: A Simple Way to Prevent Neural Networks from Overfitting. J. Mach. Learn. Res. 2014, 15, 1929–1958. [Google Scholar]
- Gal, Y.; Ghahramani, Z. Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning. In Proceedings of the 33rd International Conference on Machine Learning, New York, NY, USA, 19–24 June 2016; pp. 1050–1059. [Google Scholar]
- Wang, L.; Xiao, X.; Wang, Y.; Liu, Y. Economic Loss Assessment Model for Voltage Sags Based on Deep Neural Networks. Electr. Power Autom. Equip. 2020, 40, 156–165. [Google Scholar] [CrossRef]










| MSE | CS | Fluctuation (μs) | Variance (μs2) | Mean (μs) | |
|---|---|---|---|---|---|
| simulation data | 8.644 | 10 | 800 | ||
| FNN | 0.1293 | 0.6309 | 9.955 | 8.02 | 797.2 |
| LSTM | 0.0925 | 0.8317 | 8.036 | 8.76 | 801.2 |
| The improved Transformer | 0.0908 | 0.8674 | 8.332 | 9.57 | 799.5 |
| MSE | CS | Fluctuation (μs) | Variance (μs2) | Mean (μs) | |
|---|---|---|---|---|---|
| Original | 1.8567 | 0.0783 | 1649.69 | ||
| FNN | 0.1323 | 0.6336 | 0.9955 | 0.0597 | 1649.59 |
| LSTM | 0.1031 | 0.7751 | 0.7392 | 0.0382 | 1649.71 |
| Transformer | 0.0932 | 0.8038 | 0.6243 | 0.0371 | 1649.66 |
| The improved Transformer | 0.0903 | 0.8496 | 1.2108 | 0.0639 | 1649.68 |
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. |
© 2026 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.
Share and Cite
Li, G.; Pang, N.; Guo, H.; Yang, Y.; Hu, X. Research on Time Difference Prediction of RTD Fluxgate Sensors Based on an Improved Transformer Neural Network. Sensors 2026, 26, 4776. https://doi.org/10.3390/s26154776
Li G, Pang N, Guo H, Yang Y, Hu X. Research on Time Difference Prediction of RTD Fluxgate Sensors Based on an Improved Transformer Neural Network. Sensors. 2026; 26(15):4776. https://doi.org/10.3390/s26154776
Chicago/Turabian StyleLi, Guo, Na Pang, Haibo Guo, Yuhan Yang, and Xu Hu. 2026. "Research on Time Difference Prediction of RTD Fluxgate Sensors Based on an Improved Transformer Neural Network" Sensors 26, no. 15: 4776. https://doi.org/10.3390/s26154776
APA StyleLi, G., Pang, N., Guo, H., Yang, Y., & Hu, X. (2026). Research on Time Difference Prediction of RTD Fluxgate Sensors Based on an Improved Transformer Neural Network. Sensors, 26(15), 4776. https://doi.org/10.3390/s26154776

