{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,2]],"date-time":"2026-09-02T15:18:06Z","timestamp":1788362286369,"version":"build-2803163510"},"reference-count":36,"publisher":"MDPI AG","issue":"15","license":[{"start":{"date-parts":[[2025,8,4]],"date-time":"2025-08-04T00:00:00Z","timestamp":1754265600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Mathematics"],"abstract":"<jats:p>Automated quality control plays a critical role in modern industries, particularly in environments that handle large volumes of packaged products requiring fast, accurate, and consistent inspections. This work presents an anomaly detection system for candle jars commonly used in industrial and commercial applications, where obtaining labeled defective samples is challenging. Two anomaly detection strategies are explored: (1) a baseline model using convolutional neural networks (CNNs) as an end-to-end classifier and (2) a hybrid approach where features extracted by CNNs are fed into One-Class classification (OCC) algorithms, including One-Class SVM (OCSVM), One-Class Isolation Forest (OCIF), One-Class Local Outlier Factor (OCLOF), One-Class Elliptic Envelope (OCEE), One-Class Autoencoder (OCAutoencoder), and Support Vector Data Description (SVDD). Both strategies are trained primarily on non-defective samples, with only a limited number of anomalous examples used for evaluation. Experimental results show that both the pure CNN model and the hybrid methods achieve excellent classification performance. The end-to-end CNN reached 100% accuracy, precision, recall, F1-score, and AUC. The best-performing hybrid model CNN-based feature extraction followed by OCIF also achieved 100% across all evaluation metrics, confirming the effectiveness and robustness of the proposed approach. Other OCC algorithms consistently delivered strong results, with all metrics above 95%, indicating solid generalization from predominantly normal data. This approach demonstrates strong potential for quality inspection tasks in scenarios with scarce defective data. Its ability to generalize effectively from mostly normal samples makes it a practical and valuable solution for real-world industrial inspection systems. Future work will focus on optimizing real-time inference and exploring advanced feature extraction techniques to further enhance detection performance.<\/jats:p>","DOI":"10.3390\/math13152507","type":"journal-article","created":{"date-parts":[[2025,8,4]],"date-time":"2025-08-04T15:30:06Z","timestamp":1754321406000},"page":"2507","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":2,"title":["Automated Quality Control of Candle Jars via Anomaly Detection Using OCSVM and CNN-Based Feature Extraction"],"prefix":"10.3390","volume":"13","author":[{"ORCID":"https:\/\/orcid.org\/0009-0002-6078-7688","authenticated-orcid":false,"given":"Azeddine","family":"Mjahad","sequence":"first","affiliation":[{"name":"GDDP, Department Electronic Engineering, School of Engineering, University of Valencia, 46100 Burjassot, Valencia, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0429-0573","authenticated-orcid":false,"given":"Alfredo","family":"Rosado-Mu\u00f1oz","sequence":"additional","affiliation":[{"name":"GDDP, Department Electronic Engineering, School of Engineering, University of Valencia, 46100 Burjassot, Valencia, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2025,8,4]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Yin, Y., Wan, M., Xu, P., Zhang, R., Liu, Y., and Song, Y. (2023). Industrial Product Quality Analysis Based on Online Machine Learning. Sensors, 23.","DOI":"10.3390\/s23198167"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"4192","DOI":"10.12694\/scpe.v25i5.3191","article-title":"Optimizing Waste Reduction in Manufacturing Processes Utilizing IoT Data with Machine Learning Approach for Sustainable Production","volume":"25","author":"Altarazi","year":"2024","journal-title":"Scalable Comput. Pract. Exp."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Litvintseva, A., Evstafev, O., and Shavetov, S. (2021, January 23\u201327). Real-time Steel Surface Defect Recognition Based on CNN. Proceedings of the 2021 IEEE 17th International Conference on Automation Science and Engineering (CASE), Lyon, France.","DOI":"10.1109\/CASE49439.2021.9551414"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Khanam, R., Hussain, M., Hill, R., and Allen, P. (2023). A Comprehensive Review of Convolutional Neural Networks for Defect Detection in Industrial Applications. Comput. Ind., 154.","DOI":"10.1109\/ACCESS.2024.3425166"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"4639","DOI":"10.1007\/s00170-024-14403-z","article-title":"Resilient machine learning for steel surface defect detection based on lightweight convolution","volume":"134","author":"Liu","year":"2024","journal-title":"Int. J. Adv. Manuf. Technol."},{"key":"ref_6","unstructured":"Huang, Z., Zhou, Z., Zeng, D., Chen, X., Shi, F., and Yang, J. (2023). Deep Learning for Medical Image Analysis: Applications and Challenges. Med. Image Anal., 85."},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Chalapathy, R., and Chawla, S. (2019). Deep Learning for Anomaly Detection: A Survey. arXiv.","DOI":"10.1145\/3394486.3406704"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"756","DOI":"10.1109\/JPROC.2021.3052449","article-title":"A Unifying Review of Deep and Shallow Anomaly Detection","volume":"109","author":"Ruff","year":"2021","journal-title":"Proc. IEEE"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"1443","DOI":"10.1162\/089976601750264965","article-title":"Estimating the support of a high-dimensional distribution","volume":"13","author":"Platt","year":"2001","journal-title":"Neural Comput."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Liu, F.T., Ting, K.M., and Zhou, Z.H. (2008, January 15\u201319). Isolation forest. Proceedings of the 2008 Eighth IEEE International Conference on Data Mining, Pisa, Italy.","DOI":"10.1109\/ICDM.2008.17"},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Breunig, M.M., Kriegel, H.P., Ng, R.T., and Sander, J. (2000, January 16\u201318). LOF: Identifying density-based local outliers. Proceedings of the 2000 ACM SIGMOD International Conference on Management of Data, Dallas, TX, USA.","DOI":"10.1145\/342009.335388"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"212","DOI":"10.1080\/00401706.1999.10485670","article-title":"A fast algorithm for the minimum covariance determinant estimator","volume":"41","author":"Rousseeuw","year":"1999","journal-title":"Technometrics"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Sakurada, M., and Yairi, T. (2014, January 2). Anomaly detection using autoencoders with nonlinear dimensionality reduction. Proceedings of the ACM MLSDA 2014 2nd Workshop on Machine Learning for Sensory Data Analysis, Gold Coast, Australia.","DOI":"10.1145\/2689746.2689747"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"45","DOI":"10.1023\/B:MACH.0000008084.60811.49","article-title":"Support vector data description","volume":"54","author":"Tax","year":"2004","journal-title":"Mach. Learn."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Shorten, C., and Khoshgoftaar, T.M. (2019). A survey on image data augmentation for deep learning. J. Big Data, 6.","DOI":"10.1186\/s40537-019-0197-0"},{"key":"ref_16","unstructured":"Perez, L., and Wang, J. (2017). The effectiveness of data augmentation in image classification using deep learning. arXiv."},{"key":"ref_17","unstructured":"Dy, J., and Krause, A. (2018, January 4). BOHB: Robust and Efficient Hyperparameter Optimization at Scale. Proceedings of the 35th International Conference on Machine Learning Research, PMLR, Stockholm, Sweden."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Mamode, H.I., Hampson, G.J., and John, C.M. (2025). Do more with less: Exploring semi-supervised learning for geological image classification. Appl. Comput. Geosci., 25.","DOI":"10.1016\/j.acags.2024.100216"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Gunes, B., and Gunes, O. (2015). An Unsupervised Hybrid Approach for Detection of Damage with Autoencoder and One-Class Support Vector Machine. Appl. Sci., 15.","DOI":"10.3390\/app15084098"},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"436","DOI":"10.1038\/nature14539","article-title":"Deep Learning","volume":"521","author":"LeCun","year":"2015","journal-title":"Nature"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"(2025). Application of one-class classification using deep learning technique improves the classification of subvisible particles. J. Pharm. Sci., 114, 1117\u20131124.","DOI":"10.1016\/j.xphs.2024.11.023"},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Hou, L., and Huang, Q. (2025). A smart WSNs node with sensor computing and unsupervised One-Class SVM classifier for machine fault detection. Measurement, 242.","DOI":"10.1016\/j.measurement.2024.115843"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"12591","DOI":"10.1109\/TKDE.2023.3270293","article-title":"Deep Isolation Forest for Anomaly Detection","volume":"35","author":"Xu","year":"2023","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Saremi, M., Hezarkhani, A., Mirzabozorg, S.A.A.S., DehghanNiri, R., Shirazy, A., and Shirazi, A. (2025). Unsupervised Anomaly Detection for Mineral Prospectivity Mapping Using Isolation Forest and Extended Isolation Forest Algorithms. Minerals, 15.","DOI":"10.20944\/preprints202504.0410.v1"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Adesh, A., G, S., Shetty, J., and Xu, L. (2024). Local outlier factor for anomaly detection in HPCC systems. J. Parallel Distrib. Comput., 192.","DOI":"10.1016\/j.jpdc.2024.104923"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Rana Veer Samara Sihman Bharattej, R., Mhsnhasan, M., Sowmya, M., Prabhakara, M.V., and Ghamya, K. (2025, January 24\u201325). Anomaly Detection in Social Networks using Improved Local Outlier Factor. Proceedings of the 2025 International Conference on Intelligent Systems and Computational Networks (ICISCN), Bidar, India.","DOI":"10.1109\/ICISCN64258.2025.10934629"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Perumal, S., Sujatha, P.K., Krishnan, S., and Muralitharan, K. (2025). Clusters in chaos: A deep unsupervised learning paradigm for network anomaly detection. J. Netw. Comput. Appl., 235.","DOI":"10.1016\/j.jnca.2024.104083"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"1677","DOI":"10.1016\/j.procs.2025.04.402","article-title":"Heart Rate Anomaly Detection in Healthcare Using Elliptic Envelope and Local Forest","volume":"258","author":"Chandralekha","year":"2025","journal-title":"Procedia Comput. Sci."},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Kilickaya, S., Ahishali, M., Celebioglu, C., Sohrab, F., Eren, L., Ince, T., Askar, M., and Gabbouj, M. (2024). Audio-based Anomaly Detection in Industrial Machines Using Deep One-Class Support Vector Data Description. arXiv.","DOI":"10.1109\/CIESCompanion65073.2025.11010815"},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Mjahad, A., Polo-Aguado, A., Llorens-Serrano, L., and Rosado-Mu\u00f1oz, A. (2025). Optimizing Image Feature Extraction with Convolutional Neural Networks for Chicken Meat Detection Applications. Appl. Sci., 15.","DOI":"10.3390\/app15020733"},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Mjahad, A., Saban, M., Azarmdel, H., and Rosado-Mu\u00f1oz, A. (2023). Efficient Extraction of Deep Image Features Using a Convolutional Neural Network (CNN) for Detecting Ventricular Fibrillation and Tachycardia. J. Imaging, 9.","DOI":"10.3390\/jimaging9090190"},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Liu, J., Song, K., Feng, M., Yan, Y., Tu, Z., and Zhu, L. (2021). Semi-supervised anomaly detection with dual prototypes autoencoder for industrial surface inspection. Opt. Lasers Eng., 136.","DOI":"10.1016\/j.optlaseng.2020.106324"},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Bergmann, P., L\u00f6we, S., Fauser, M., Sattlegger, D., and Steger, C. (2018). Improving Unsupervised Defect Segmentation by Applying Structural Similarity to Autoencoders. arXiv.","DOI":"10.5220\/0007364500002108"},{"key":"ref_34","unstructured":"Kingma, D.P., and Welling, M. (2013). Auto-Encoding Variational Bayes. arXiv."},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"30","DOI":"10.1016\/j.media.2019.01.010","article-title":"f-AnoGAN: Fast unsupervised anomaly detection with generative adversarial networks","volume":"54","author":"Schlegl","year":"2019","journal-title":"Med. Image Anal."},{"key":"ref_36","first-page":"622","article-title":"GANomaly: Semi-supervised Anomaly Detection via Adversarial Training","volume":"Volume 11363","author":"Jawahar","year":"2019","journal-title":"Proceedings of the Computer Vision\u2014ACCV 2018, Lecture Notes in Computer Science"}],"container-title":["Mathematics"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2227-7390\/13\/15\/2507\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,9]],"date-time":"2025-10-09T18:22:58Z","timestamp":1760034178000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2227-7390\/13\/15\/2507"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,8,4]]},"references-count":36,"journal-issue":{"issue":"15","published-online":{"date-parts":[[2025,8]]}},"alternative-id":["math13152507"],"URL":"https:\/\/doi.org\/10.3390\/math13152507","relation":{},"ISSN":["2227-7390"],"issn-type":[{"value":"2227-7390","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,8,4]]}}}