Production Line Piston Position Control Based on Image Processing

Authors

  • Ahmetserdar Çoban Selcuk University
  • Hakan Işık Selcuk University

DOI:

https://doi.org/10.47134/jtsi.v3i1.5410

Keywords:

Image Processing, Piston Position Detection, Deep Learning, Raspberry Pi, YOLO

Abstract

This study presents a real-time vision-based system for detecting the open and closed positions of pneumatic pistons in industrial production lines without using physical sensors. Conventional magnetic and inductive sensors are often affected by cable damage, environmental contamination, vibration, and temperature variations, which can cause unplanned downtime and increased maintenance costs. To address these limitations, a camera-based monitoring approach is proposed as a reliable and low-maintenance alternative.The main objective of this work is to develop a low-cost, robust, and easily integrable sensorless position-detection system using deep learning–based object detection. A dataset consisting of 250 RGB images was collected from a production-like test platform and annotated into two classes representing open and closed piston states. The dataset was split into training and testing sets with ratios of 80% and 20%, respectively.A YOLOv8 object detection model was fine-tuned using transfer learning and deployed on a Raspberry Pi 4B for real-time operation. To improve reliability, a high confidence threshold and a frame-based stability filter requiring consistent predictions across multiple frames were applied. Detected piston states were converted into digital control signals via GPIO outputs.Experimental results show that the proposed system achieves over 97% detection accuracy with a processing latency of 25–40 ms per frame on embedded hardware. The stability filter effectively reduces false state transitions, ensuring reliable output. The results indicate that the proposed approach provides a practical visual backup solution for sensor failures and a scalable alternative for new production line designs.

References

Aydın, M. K., O. (2021). “Yapay Zeka Tabanlı Görüntü İşleme Tekniklerinin İnsansız Hava Araçları Üzerinde Uygulamaları.” Journal of Aviation, 5(1), 15–27.

Çelik, M. Ö., C. (2020). “Görüntü İşleme Teknikleri ile Bağ Yaprak Uyuzu Hasarının Belirlenmesi.” Tarım Bilimleri Dergisi, 26(4), 510–518.

Fang, Q. L., J., & Luo, H. (2020). “Real-Time Students’ Safety Helmet-Wearing Detection Based on Convolutional Neural Network.” Applied Sciences, 10 (MDPI).

Karaca, Y. U., H. (2018). “Görüntü İşleme Tekniklerinden Faydalanarak Elma Çeşitlerinin Türlerine Göre Sınıflandırılması.” Akademik Bilişim, 11, 223–231.

Kaya, S. A., E. (2019). “Fizyoterapi ve Rehabilitasyonda Güncel Yazılım Teknolojisi: Görüntü İşleme Tekniği.” Bilişim Teknolojileri Dergisi, 12, 45–52.

Lan, Y., Chen, M., Li, C., Wang, Q., & Liao, M. (2025). Metal Surface Defect Detection Using SLF-YOLO Enhanced YOLOv8. Scientific Reports (Nature Publishing Group), 15(4). https://doi.org/10.1038/s41598-025-94936-9

Li, P., Zhou, R., & Deng, Q. (2023). Industrial Metal Surface Defect Analysis with YOLOv5. Metals (MDPI), 13(9), 1439. https://doi.org/10.3390/met13091439

Liang, R., Sun, J., & Kang, Y. (2025). Edge AI for Industrial Visual Inspection: YOLOv8-Based Embedded Solution. Algorithms (MDPI), 18(5), 510. https://doi.org/10.3390/a18050510

Liu, H., et al. (2021). Defect Detection of NEU-DET Steel Surface Dataset. Scientific Reports (Nature Publishing Group), 11(1). https://doi.org/10.1038/s41598-021-01084-x

Liu, X. Z., S., & Chen, Y. (2022). “A High Precision YOLO Model for Surface Defect Detection Based on PyConv and CISBA.” Electronics, 11(3).

Mandal, S. M., J. (2018). “Eye Recognition System to Prevent Accidents on the Road.” IEEE, 132–137.

Rossi, F. B., L. (2023). “Edge AI for Industrial Visual Inspection: YOLOv8-Based Embedded Solution.” MDPI, 13(4), 2359.

Rubio-Romero, J. C. G.-d.-G., & J. M. (2020). “Detection of Elements of Personal Safety for the Prevention of Accidents at Work with Convolutional Neural Networks.” MDPI, 20.

Sharma, N. J., V. (2020). “Computer Vision and Image Processing: A Paper Review.” International Journal of Computer Applications, 176(20), 1–17.

Sun, J. Z., R. (2021). “Surface Defect Detection of Industrial Components Based on YOLOv5.” Measurement, 178, 109375.

Wang, T., Liu, P., Zhang, X., & Zhao, Y. (2023). Surface Defect Detection of Industrial Components Based on YOLOv5. Sensors (MDPI), 23(5), 2610. https://doi.org/10.3390/s23052610

Wang, T. L., Z. (2023). “Metal Surface Defect Detection Using SLF-YOLO Enhanced YOLOv8.” Expert Systems with Applications, 213, 118899.

Yılmaz, A. D., M. (2021). “Koruyucu Gözlük Kullanımının Görüntü İşleme Yöntemiyle Tespit Edilmesi.” Gazi Üniversitesi Mühendislik-Mimarlık Fakültesi Dergisi, 36, 745–756.

Yuanshuai, L., Mo, C., Chuan, L., Qian, W., & Min, L. (2025). A High Precision YOLO Model for Surface Defect Detection Based on PyConv and CISBA. Scientific Reports (Nature Publishing Group), 15(2), Article 91930. https://doi.org/10.1038/s41598-025-91930-z

Zhang, H., & Lee, J. (2022). Multi-Scale Surface Defect Analysis Using Deep Learning. Applied Sciences (MDPI), 12(7), 7235. https://doi.org/10.3390/app12077235

Zhang, L., Wei, P., & Chen, X. (2024). YOLO-RFF: An Industrial Defect Detection Method Based on Expanded Field of Feeling and Feature Fusion. Electronics (MDPI), 13(11), 4211. https://doi.org/10.3390/electronics13114211

Zhang, Y. L., H., & Wang, J. (2023). “Geliştirilmiş YOLOv8’e Dayalı Endüstriyel Güvenlik Kaskları İçin Küçük Hedef Algılama Yöntemi Üzerine Araştırma.” Neural Computing and Applications, 17631–17645.

Zhou, K. Y., L. (2022). “YOLO-RFF: An Industrial Defect Detection Method Based on Expanded Field of Feeling and Feature Fusion.” IEEE Access, 10(10), 84112–84125.

Downloads

Published

2026-01-24

How to Cite

Ahmetserdar Çoban, & Hakan Işık. (2026). Production Line Piston Position Control Based on Image Processing. Journal of Technology and System Information, 3(1), 17. https://doi.org/10.47134/jtsi.v3i1.5410

Issue

Section

Articles