EVERGREEN

Joint Journal of Novel Carbon Resource Sciences and Green Asia Strategy

ISSN:2189-0420 (Print until Mar 2020)
ISSN:2432-5953 (Online)

SCImago Journal & Country Rank

Open Access
Scopus
Google Scholar
Crossref
SCImago Journal & Country Rank
4.3
2024CiteScore
 
69th percentile
Powered by Scopus
Metrics by SCOPUS 2024
CiteScore
4.3
SJR
0.391
SNIP
1.192


IoT-Based CNC Coolant Quality Detection using Photodiode and Gas Sensors with Incremental Learning Algorithms

Ardani Cesario Zuhri1, Mario Ardhany1,*, Agus Widodo1, Ratna Mayasari2, Albertus Rianto Suryaningrat1, Galang Ilman Islami1, Ahmad Musthofa1, Nasril1, Danny Mokhammad Gandana1, Cecep Sujana1
1Research Center for Manufacturing Technology of Production Machinery, National Research and Innovation Agency, Indonesia
2Research Center for Sustainable Industrial and Manufacturing Systems, National Research and Innovation Agency, Indonesia
*Author to whom correspondence should be addressed:
E-mail: mari026@brin.go.id (MA)
Received: May 27, 2025 | Revised: July 04, 2025 | Accepted: December 22, 2025 | Published: March 2026
Abstract
The use of coolant in CNC machining for a certain period affects the quality of coolant liquid and requires maintenance and replacement schedules. A coolant that is no longer suitable for use can pollute the surrounding air, water, and soil. The feasibility of using a coolant currently depends on manual observations by the operator. In this research, a sensor system was designed to identify critical change anomalies in coolant in a fast, precise, and nondestructive manner. The system was implemented on a Raspberry Pi equipped with photodiode and gas sensors to identify coolant conditions using IoT and cloud-based machine learning. The use of several gas sensors and one light sensor from this system can obtain different patterns for three coolant quality categories, namely very bad, bad, and good, based on pH testing and microbiological analysis. As new testing data may arrive gradually, this study emphasizes the use of incremental learning algorithms. Our experimental results indicate that the identification of coolant quality has a high success rate, with the highest average accuracy of 96.17% achieved by stochastic gradient descent-logistic regression, followed closely by stochastic gradient descent-SVM at 96.16%, gaussian naive bayes at 94.93%, passive-aggressive at 92.72%, and perceptron at 92.45%. The implementation of this system is expected to replace traditional measurement with the use of human nose and eye senses to obtain the same measurements as different human examiners obtain different results.
Keywords
classification; cnc; coolant quality; incremental learning; machine learning
Available Repositories
Share Article
Article Metrics
--
Views
--
Downloads
--
Citations
Full Text
Download PDF
References
  1. 1) A. Chandra, A. Yadav, S. Singh, and P.K. Arora, "Optimisation of machining parameters for cnc milling of fibre reinforced polymers," Evergreen, (2023) doi:10.5109/6792826
  2. 2) M. Kuruc, T. Vopát, J. Peterka, M. Necpal, V. Šimna, J. Milde, and F. Jurina, "The influence of cutting parameters on plastic deformation and chip compression during the turning of c45 medium carbon steel and 62simncr4 tool steel," Materials (Basel)., (2022) doi:10.3390/ma15020585
  3. 3) A.R. Suryaningrat, Nasril, A. Musthofa, H. Purnama, M. Ardhany, and M. Al Huda, "Optimization of dynamic characteristics of boring bar for chatter mitigation in boring process," AIP Conf. Proc., 3069 (1) 20032 (2024) doi:10.1063/5.0206651
  4. 4) M.S.H. Ador, S. Kabir, F. Ahmed, F. Ahmad, and S. Adil, "Effects of minimum quantity lubrication (mql) on surface roughness in milling al alloy 383 / adc 12 using nano hybrid cutting fluid," Evergreen, (2022) doi:10.5109/6625790
  5. 5) A.M. Sabri, N. Talib, A.S.A. Sani, S. Kunar, and K. Kamdani, "Investigation of modified rbd palm oil-based hybrid nanofluids as metalworking fluid," Evergreen, 11 (2) 797-805 (2024) doi:10.5109/7183360
  6. 6) S. Roy, R. Kumar, A.K. Sahoo, and R.K. Das, "A brief review on effects of conventional and nano particle based machining fluid on machining performance of minimum quantity lubrication machining," in: Mater. Today Proc., 2019 doi:10.1016/j.matpr.2019.07.571
  7. 7) H. Wang, T. Reponen, S.A. Lee, E. White, and S.A. Grinshpun, "Size distribution of airborne mist and endotoxin-containing particles in metalworking fluid environments," J. Occup. Environ. Hyg., (2007) doi:10.1080/15459620601144883
  8. 8) J. Józwik, M. Zawada-Michałowska, G. Budzik, S. Legutko, and M. Kupczyk, "Microbiological analysis of coolant used in machining," Adv. Sci. Technol. Res. J., (2023) doi:10.12913/22998624/157421
  9. 9) F.E. Mirer, "New evidence on the health hazards and control of metalworking fluids since completion of the osha advisory committee report," Am. J. Ind. Med., 53 (8) 792-801 (2010) doi:10.1002/ajim.20853
  10. 10) Y. Kondo, M. Yamaguchi, S. Sakamoto, and K. Yamagchi, "A dynamic observation concept to keep water-soluble coolant in normal condition for long-time," in: Adv. Mater. Res., 2013 doi:10.4028/www.scientific.net/AMR.652-654.2119
  11. 11) H.M. Liu, Y.H. Lin, M.Y. Tsai, and W.H. Lin, "Occurrence and characterization of culturable bacteria and fungi in metalworking environments," Aerobiologia (Bologna)., (2010) doi:10.1007/s10453-010-9169-8
  12. 12) R.T. Chander, P.S. Chakraborty, S. Nallusamy, and V.S. Hariharan, "Precision maintenance strategies : understanding and addressing coolant oil contamination ’ s influence on grinding machine bearing integrity," 45 (2) 4465-4479 (2024) doi:10.52783/tjjpt.v45.i02.6664
  13. 13) K. Li, F. Aghazadeh, S. Hatipkarasulu, and T.G. Ray, "Health risks from exposure to metal-working fluids in machining and grinding operations," Int. J. Occup. Saf. Ergon., (2003) doi:10.1080/10803548.2003.11076555
  14. 14) J.P. Byers, "Metalworking fluids (2nd Ed.)," 2006 doi:10.1201/9781420017731
  15. 15) M. Opachak, "Industrial Fluids: Controls, Concerns and Costs," Society of Manufacturing Engineers, Marketing Services Department, 1982
  16. 16) F.J. Passman, "Metalworking fluid microbes—what we need to know to successfully understand cause-and-effect relationships," Tribol. Trans., 51 (1) 107-117 (2008) doi:10.1080/10402000701691720
  17. 17) Y. Kondo, and Y. Miyake, "A study on anomaly detection of water-soluble coolant using internal-sensors," Int. J. Autom. Technol., (2022) doi:10.20965/ijat.2022.p0175
  18. 18) G.E. Adjovu, H. Stephen, D. James, and S. Ahmad, "Measurement of total dissolved solids and total suspended solids in water systems: a review of the issues, conventional, and remote sensing techniques," Remote Sens., (2023) doi:10.3390/rs15143534
  19. 19) M. Veillette, P.S. Thorne, T. Gordon, and C. Duchaine, "Six month tracking of microbial growth in a metalworking fluid after system cleaning and recharging," Ann. Occup. Hyg., (2004) doi:10.1093/annhyg/meh043
  20. 20) N. Bulatov, A. Uvaliyeva, K. Kassymzhanova, M. Izteleuova, and I. Saukenova, "Intelligent systems for managing and monitoring the collection, sorting, and transportation of solid waste for processing," Evergreen, 11 (2) 938-948 (2024) doi:10.5109/7183376
  21. 21) Y. Duan, J.S. Edwards, and Y.K. Dwivedi, "Artificial intelligence for decision making in the era of big data – evolution, challenges and research agenda," Int. J. Inf. Manage., 48 63-71 (2019) doi:10.1016/j.ijinfomgt.2019.01.021
  22. 22) L. Erhan, M. Ndubuaku, M. Di Mauro, W. Song, M. Chen, G. Fortino, O. Bagdasar, and A. Liotta, "Smart anomaly detection in sensor systems: a multi-perspective review," Inf. Fusion, 67 64-79 (2021) doi:10.1016/j.inffus.2020.10.001
  23. 23) P. Visconti, G. Rausa, C. Del-Valle-Soto, R. Velázquez, D. Cafagna, and R. De Fazio, "Machine learning and iot-based solutions in industrial applications for smart manufacturing: a critical review," Futur. Internet, 16 (11) (2024) doi:10.3390/fi16110394
  24. 24) D. Singh, and A. Singh, "Role of building automation technology in creating a smart and sustainable built environment," Evergreen, (2023) doi:10.5109/6781101
  25. 25) M.S. Sumathi, J. Shruthi, V. Jain, G.K. Kumar, and Z.Z. Khan, "Using artificial intelligence (ai) and internet of things (iot) for improving network security by hybrid cryptography approach," Evergreen, (2023) doi:10.5109/6793674
  26. 26) F. Jurina, J. Peterka, M. Vozar, B. Patoprsty, and T. Vopat, "Design of real-time monitoring system for cutting fluids," Designs, (2023) doi:10.3390/designs7020043
  27. 27) R. Fajar, K.F.A. Sukra, F. Hidiyanto, N.S. Octaviani, and D.A. Sugeng, "A data-driven machine learning approach to identify end-of-life vehicles in indonesia," Evergreen, 11 (3) 2504-2514 (2024) doi:10.5109/7236891
  28. 28) R. Huerta-Soto, F. Francis, M. Asís-López, and J. Panduro-Ramirez, "Implementation of machine learning in supply chain management process for sustainable development by multiple regression analysis approach (mraa)," Evergreen, (2023) doi:10.5109/6793671
  29. 29) Y. Luo, L. Yin, W. Bai, and K. Mao, "An appraisal of incremental learning methods," Entropy, (2020) doi:10.3390/e22111190
  30. 30) D. Nallaperuma, R. Nawaratne, T. Bandaragoda, A. Adikari, S. Nguyen, T. Kempitiya, D. De Silva, D. Alahakoon, and D. Pothuhera, "Online incremental machine learning platform for big data-driven smart traffic management," IEEE Trans. Intell. Transp. Syst., (2019) doi:10.1109/TITS.2019.2924883
  31. 31) B. Yu, L. Fang, Z. Wu, C. Shen, and X. Hu, "A study on short-term air consumption prediction model for air-jet looms combining sliding time window and incremental learning," Energies, 17 (16) (2024) doi:10.3390/en17164052
  32. 32) H.A. Gabbar, O.G. Adegboro, A. Chahid, and J. Ren, "Incremental learning-based algorithm for anomaly detection using computed tomography data," Computation, (2023) doi:10.3390/computation11070139
  33. 33) M. Sakthivel, and P. Pandiyan, "Stochastic modelling on new mixture distribution with properties and their application," Int. J. Math. Stat. Comput. Sci., 2 (SE-Original Research Articles) 259-275 (2024) doi:10.59543/ijmscs.v2i.9015
  34. 34) D. Ketseas, "Stochastic response of an airfoil and its effects on lco’s behavior under stall flutter regime," Int. J. Math. Stat. Comput. Sci., 2 (SE-Original Research Articles) 168-172 (2024) doi:10.59543/ijmscs.v2i.8663
  35. 35) E. Belouadah, A. Popescu, and I. Kanellos, "A comprehensive study of class incremental learning algorithms for visual tasks," Neural Networks, (2021) doi:10.1016/j.neunet.2020.12.003
  36. 36) J. Hu, C. Yan, X. Liu, Z. Li, C. Ren, J. Zhang, D. Peng, and Y. Yang, "An integrated classification model for incremental learning," Multimed. Tools Appl., (2021) doi:10.1007/s11042-020-10070-w
  37. 37) B. Nemade, and D. Shah, "An efficient iot based prediction system for classification of water using novel adaptive incremental learning framework," J. King Saud Univ. - Comput. Inf. Sci., 34 (8, Part A) 5121-5131 (2022) doi:10.1016/j.jksuci.2022.01.009
  38. 38) C. Monday, M.S. Zaghloul, D. Krishnamurthy, and G. Achari, "Incremental machine learning and genetic algorithm for optimization and dynamic aeration control in wastewater treatment plants," J. Water Process Eng., 69 106600 (2025) doi:10.1016/j.jwpe.2024.106600
  39. 39) J. Huang, "Organic photodetectors to monitor water contaminants," Nat. Water, 2 (6) 505-506 (2024) doi:10.1038/s44221-024-00259-w
  40. 40) I.A. Siahaan, G.A. Mutiara, and M.I. Sani, "A Low-Cost Water Quality Monitoring Based on Photodiode and LDR," in: 2021 IEEE Asia Pacific Conf. Wirel. Mob., 2021: pp. 141-146 doi:10.1109/APWiMob51111.2021.9435280
  41. 41) C.D. Fay, and A. Nattestad, "Advances in optical based turbidity sensing using led photometry (pedd)," Sensors, 22 (1) (2022) doi:10.3390/s22010254
  42. 42) Winsen, "MQ-2 flammable gas sensor, rev. 1.4," 7 (2015). https://www.winsen-sensor.com/d/files/PDF/Semiconductor Gas Sensor/MQ-2 (Ver1.4) - Manual.pdf (accessed February 18, 2025)
  43. 43) Thorlabs, "FD05D - ingaas photodiode, 17 ns rise time, 900-2600 nm, ø0.5 mm active area," 1 (2014). https://www.thorlabs.com/thorproduct.cfm?partnumber=FD05D (accessed February 18, 2025)
  44. 44) M. Henschke, X. Wei, and X. Zhang, "Data Visualization for Wireless Sensor Networks Using ThingsBoard," in: 2020 29th Wirel. Opt. Commun. Conf. WOCC 2020, 2020 doi:10.1109/WOCC48579.2020.9114929
  45. 45) V. Patel, A. Kapoor, A. Sharma, and S. Chakrabarti, "Taxonomy of outlier detection methods for power system measurements," Energy Convers. Econ., 4 (2) 73-88 (2023) doi:10.1049/enc2.12082
  46. 46) C.S.K. Dash, A.K. Behera, S. Dehuri, and A. Ghosh, "An outliers detection and elimination framework in classification task of data mining," Decis. Anal. J., 6 100164 (2023) doi:10.1016/j.dajour.2023.100164
  47. 47) A. Abuzaid, and I. Alkrunz, "A comparative study on univariate outlier winsorization methods in data science context," Stat. Appl., 36 (1) 85-99 (2024) doi:10.26398/IJAS.0036-004
  48. 48) S. Alelyani, J. Tang, and H. Liu, "Feature Selection for Clustering: A Review," in: Data Clust., Chapman and Hall/CRC, 2018: pp. 29-60 doi:10.1201/9781315373515-2
  49. 49) U. Stańczyk, "Feature evaluation by filter, wrapper and embedded approaches," Stud. Comput. Intell., (2015) doi:10.1007/978-3-662-45620-0_3
  50. 50) M. Ardhany, A.C. Zuhri, A. Widodo, A.R. Suryaningrat, G.I. Islami, A. Musthofa, Nasril, D.M. Gandana, S.A. Kunharyanto, and R. Mayasari, "Early detection of motor vehicle exhaust gas using a gas sensor array with multiple kernel learning," Evergreen, 11 (3) 2678-2690 (2024) doi:10.5109/7236907
  51. 51) Y. Meng, S.N. Qasem, M. Shokri, and S. S, "Dimension reduction of machine learning-based forecasting models employing principal component analysis," Mathematics, 8 (8) (2020) doi:10.3390/math8081233
  52. 52) Z. Rizgar, A. Abdulazeez, D. Zeebaree, D. Zebari, and J. Saeed, "A comprehensive review of dimensionality reduction techniques for feature selection and feature extraction," J. Appl. Sci. Technol. Trends, 1 (1) 56-70 (2020) doi:10.38094/jastt1224
  53. 53) Q. Jiang, X. Yan, and B. Huang, "Performance-driven distributed pca process monitoring based on fault-relevant variable selection and bayesian inference," IEEE Trans. Ind. Electron., 63 (1) 377-386 (2016) doi:10.1109/TIE.2015.2466557
  54. 54) R. Bro, and A.K. Smilde, "Principal component analysis," Anal. Methods, (2014) doi:10.1039/c3ay41907j
  55. 55) G. Zhu, and Q. Dai, "EnsPKDE&IncLKDE: a hybrid time series prediction algorithm integrating dynamic ensemble pruning, incremental learning, and kernel density estimation," Appl. Intell., (2021) doi:10.1007/s10489-020-01802-4
  56. 56) Z. Tan, J. Chen, Q. Kang, M. Zhou, A. Abusorrah, and K. Sedraoui, "Dynamic embedding projection-gated convolutional neural networks for text classification," IEEE Trans. Neural Networks Learn. Syst., (2022) doi:10.1109/TNNLS.2020.3036192
  57. 57) R.H. Al-Furaiji, and H. Abdulkader, "A comparison of the performance of six machine learning algorithms for fake news," EAI Endorsed Trans. AI Robot., 3 (SE-Research article) (2024) doi:10.4108/airo.4153
  58. 58) S. Naiem, A.E. Khedr, A.M. Idrees, and M.I. Marie, "Enhancing the efficiency of gaussian naïve bayes machine learning classifier in the detection of ddos in cloud computing," IEEE Access, (2023) doi:10.1109/ACCESS.2023.3328951
  59. 59) S. Morita, H. Iguchi, and T. Hoya, "A Class Incremental Learning Algorithm for a Compact-Sized Probabilistic Neural Network and Its Empirical Comparison with Multilayered Perceptron Neural Networks," in: Lect. Notes Comput. Sci. (Including Subser. Lect. Notes Artif. Intell. Lect. Notes Bioinformatics), 2023 doi:10.1007/978-3-031-47634-1_22
  60. 60) J. Lu, A. Liu, F. Dong, F. Gu, J. Gama, and G. Zhang, "Learning under concept drift: a review," IEEE Trans. Knowl. Data Eng., 31 (12) 2346-2363 (2019) doi:10.1109/TKDE.2018.2876857
  61. 61) R.S.M. Barros, D.R.L. Cabral, P.M. Gonçalves, and S.G.T.C. Santos, "RDDM: reactive drift detection method," Expert Syst. Appl., 90 344-355 (2017) doi:10.1016/j.eswa.2017.08.023
  62. 62) J. Gama, I. Žliobaitundefined, A. Bifet, M. Pechenizkiy, and A. Bouchachia, "A survey on concept drift adaptation," ACM Comput. Surv., 46 (4) (2014) doi:10.1145/2523813
  63. 63) W.X. Zhao, N. Zhou, W. Zhang, J.-R. Wen, S. Wang, and E.Y. Chang, "A probabilistic lifestyle-based trajectory model for social strength inference from human trajectory data," ACM Trans. Inf. Syst., 35 (1) (2016) doi:10.1145/2948064
  64. 64) R. Gavaldà, "Adaptive Windowing BT - Encyclopedia of Big Data Technologies," in: S. Sakr, A. Zomaya (Eds.), Springer International Publishing, Cham, 2018: pp. 1-6 doi:10.1007/978-3-319-63962-8_194-1
  65. 65) P. Geladi, and J. Linderholm, "2.03 - Principal Component Analysis☆," in: S. Brown, R. Tauler, B. Walczak (Eds.), Compr. Chemom. (Second Ed., Second Edi, Elsevier, Oxford, 2020: pp. 17-37 doi:10.1016/B978-0-12-409547-2.14892-9
  66. 66) İ.H. Gümüş, C. Karakuzulu, S. Güldal, and M. Yavaş, "Determining the number of principal components with schur's theorem in principal component analysis," Bitlis Eren Üniversitesi Fen Bilim. Derg., 12 (2) 299-306 (2023) doi:10.17798/bitlisfen.1144360
  67. 67) E. Morgado, L. Martino, and R.S. Millán-Castillo, "Universal and automatic elbow detection for learning the effective number of components in model selection problems," Digit. Signal Process., 140 104103 (2023) doi:10.1016/j.dsp.2023.104103
  68. 68) B. Bischl, M. Binder, M. Lang, T. Pielok, J. Richter, S. Coors, J. Thomas, T. Ullmann, M. Becker, A.-L. Boulesteix, D. Deng, and M. Lindauer, "Hyperparameter optimization: foundations, algorithms, best practices, and open challenges," WIREs Data Min. Knowl. Discov., 13 (2) e1484 (2023) doi:10.1002/widm.1484
  69. 69) M. Feurer, and F. Hutter, "Hyperparameter Optimization BT - Automated Machine Learning: Methods, Systems, Challenges," in: F. Hutter, L. Kotthoff, J. Vanschoren (Eds.), Springer International Publishing, Cham, 2019: pp. 3-33 doi:10.1007/978-3-030-05318-5_1
  70. 70) J. Frankle, and M. Carbin, "The lottery ticket hypothesis: Finding sparse, trainable neural networks," in: 7th Int. Conf. Learn. Represent. ICLR 2019, 2019
  71. 71) S. Raschka, Y. (Hayden) Liu, V. Mirjalili, and D. Dzhulgakov, "Machine Learning with PyTorch and Scikit-Learn: Develop machine learning and deep learning models with Python," Packt Publishing, 2022. http://ieeexplore.ieee.org/document/10162164
  72. 72) A. Géron, "Hands-on Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems," O’Reilly Media, Incorporated, 2019. https://books.google.co.id/books?id=OCS1twEACAAJ