AUTOMATED MODELS OF SOFTWARE SYSTEMS FOR VEHICLE DIAGNOSTICS: APPROACH TO DATA INTEGRATION
DOI: 10.31673/2409-7292.2025.017899
DOI:
https://doi.org/10.31673/2409-7292.2025.017899Abstract
The introduction of the OBD-2 interface provided standardized access to vehicle diagnostic data, enabling realtime monitoring of the system’s status. Effective utilization of this data requires the development of intelligent algorithms
capable of analyzing the obtained information while considering signal variability and the probability of faults. One of
the approaches to improving analysis accuracy is the use of finite state machines (FSMs), which allow structuring the
decision-making process based on a set of defined states and transitions between them. This study explores the method
of integrating FSM into OBD-2 data analysis processes to create an automated diagnostic system that enhances fault
detection accuracy and reduces the number of false-positive results. The proposed diagnostic model employs FSMs to
build a flexible and scalable logic for analyzing a vehicle's condition. As part of the research, a mathematical FSM model
was developed, considering the temporal variation of OBD-2 parameters and identifying critical deviations based on
signal timing characteristics. A software package for system modeling and testing was created, allowing the verification
of its effectiveness based on both synthetic data obtained in the MATLAB/Simulink environment and simulated scenarios.
A comparative analysis of fault detection accuracy using the proposed FSM model versus traditional threshold methods
demonstrated an increase in diagnostic reliability. The testing results showed that fault detection accuracy increased to
92.2%, while the false-positive rate decreased to 4.1% compared to classical OBD-2 data analysis methods. The proposed
approach reduced processing delay to 250 milliseconds per diagnostic cycle, making it applicable for real-time fault
detection.
Keywords: finite state machine, automotive diagnostics, OBD-2, software architecture, data integration,
simulation
References
1. Yadav, A., & Swetapadma, A. (2015). A finite-state machine-based approach for fault detection and
classification in transmission lines. Electric Power Components and Systems, 44(1), 43–59. https://doi.org/10.1080/
15325008.2015.1091862
2. Solov’ev, V. V. (2023). Structural models for failure detection of Moore finite-state machines. Journal of
Computer and Systems Sciences International, 62, 977–990. https://doi.org/10.1134/S1064230723060102
3. Köhl, M. A., & Hermanns, H. (2023). Model-based diagnosis of real-time systems: Robustness against varying
latency, clock drift, and out-of-order observations. ACM Transactions on Embedded Computing Systems, 22(4), Article
68, 1–48. https://doi.org/10.1145/3597209
4. Górski, T., & Stecz, W. (2024). A method for modeling and testing near-real-time system scenarios. Applied
Sciences, 14(5), 2023. https://doi.org/10.3390/app14052023
5. MIT OpenCourseWare. (2011). Lecture notes: State machines in system design. Retrieved February 16, 2025,
from https: //ocw.mit.edu /courses/6-01sc-introduction-to-electrical-engineering-and-computer-science-i-spring-2011/
pages/unit-1-software-engineering/state-machines/
6. Fuicu, S., Avramescu, A., Lascu, D., Padurariu, R., & Marcu, M. (2015). Real-time monitoring using finite statemachine algorithms. In R. Giaffreda et al. (Eds.), Internet of Things. User-Centric IoT. IoT360 2014. Lecture Notes of the
Institute for Computer Sciences, Social Informatics and Telecommunications Engineering (Vol. 150). Springer, Cham.
https://doi.org/10.1007/978-3-319-19656-5_27
7. Gong, C.-S. A., Su, C.-H. S., Chen, Y.-H., & Guu, D.-Y. (2022). How to implement automotive fault diagnosis
using artificial intelligence scheme. Micromachines, 13(9), 1380. https://doi.org/10.3390/mi13091380
8. Rasheed, R., Qazi, F., Dur e Shawar Agha, Ahmed, A., Asif, A., & Shams, H. (2024). Machine learning
approaches for in-vehicle failure prognosis in automobiles: A review. VFAST Transactions on Software Engineering,
12(1), 169–182. https://doi.org/10.21015/vtse.v12i1.1713
9. Wagner, F., Schmuki, R., Wagner, T., & Wolstenholme, P. (2006). Modeling software with finite state machines:
A practical approach (1st ed.). New York, USA: Auerbach Publications. https://doi.org/10.1201/9781420013641
10. Embedded Staff. (2016). Implementing finite state machines in embedded systems. Retrieved February 19,
2025, from https://www.embedded.com/implementing-finite-state-machines-in-embedded-systems/
11. Chen, J., & S, R. (2021). Model-based validation of diagnostic software with application in automotive
systems. IET Cyber-Systems and Robotics, 3(3), 140–149. https://doi.org/10.1049/csy2.12016
12. Kim, K., & Roush, F. W. (2003). Algebra, abstract. In R. A. Meyers (Ed.), Encyclopedia of physical science
and technology (3rd ed.). Academic Press. https://doi.org/10.1016/B0-12-227410-5/00019-3