Post Training Quantization of a Compact 1D CNN for Bearing Fault Diagnosis
Abstract
This study evaluates the static post-training INT8 quantization in a compact one-dimensional convolutional neural network to diagnose bearing fault. The model has 9,188 trainable parameters, and the four bearing states are classified according to normalized vibration windows. CWRU records at 1 hp, 2 hp and 3 hp are used for training, validation and testing, respectively. Each partition has 472 windows. Five models are trained from scratch, and only training windows are used for calibration. The saved state size is reduced from 38.75 KiB to 18.95 KiB after quantization, a decrease of 51.11%. The accuracy of the test decreases from 99.45% to 96.44%. After quantization, test accuracy varies more across training seeds. Newly introduced errors are concentrated in the outer-race fault classification. The mean CPU latency per window increases from 0.316 milliseconds to 0.623 milliseconds. The test results show storage benefits, but there is no speed improvement in the tested configuration. The shared bearing configuration and limited recording limit the generalization claim. Quantization needs separate evaluation of storage, accuracy, and hardware latency, even if the starting model is relatively compact.
References
- Eren, L. (2017). Bearing fault detection by one-dimensional convolutional neural networks.Mathematical Problems in Engineering, 8617315. https://doi.org/10.1155/2017/8617315
- Lin, M., Chen, Q., & Yan, S. (2014). Network in network. ICLR. https://arxiv.org/abs/1312.4400
- Ruan, D., Han, J., Yan, J., & Gühmann, C. (2023). Light convolutional neural network by neural architecture search and model pruning for bearing fault diagnosis and remaining useful life prediction.Scientific Reports, 13, 5484. https://doi.org/10.1038/s41598-023-31532-9
- Han, S., Mao, H., & Dally, W. J. (2016). Deep compression: Compressing deep neural networks with pruning, trained quantization and Huffman coding. ICLR. https://arxiv.org/abs/1510.00149
- Hinton, G., Vinyals, O., & Dean, J. (2015). Distilling the knowledge in a neural network. arXiv:1503.02531. https://arxiv.org/abs/1503.02531
- Jacob, B., Kligys, S., Chen, B., Zhu, M., Tang, M., Howard, A., Adam, H., & Kalenichenko, D. (2018). Quantization and training of neural networks for efficient integer-arithmetic-only inference.CVPR, 2704–2713. https://doi.org/10.1109/CVPR.2018.00286
- Krishnamoorthi, R. (2018). Quantizing deep convolutional networks for efficient inference: A whitepaper. arXiv:1806.08342. https://arxiv.org/abs/1806.08342
- Rosa, R. K., Braga, D., & Silva, D. (2024). Benchmarking deep learning models for bearing fault diagnosis using the CWRU dataset: A multi-label approach. arXiv:2407.14625v1. https://arxiv.org/html/2407.14625v1
- Case Western Reserve University. 12k drive end bearing fault data. https://engineering.case.edu/bearingdatacenter/12k-drive-end-bearing-fault-data
- Case Western Reserve University. Normal baseline data. https://engineering.case.edu/bearingdatacenter/normal-baseline-data