Capsule Defect Detection and Classification Using Enhanced MobileNet Model
Wenqing Bian1, Yongzhi Huang2, Baolian Shan2 & Yanting Chang3 Show affiliations
- Department of Intelligent Medical Engineering, Academy of Medical Engineering and Translational Medicine, Tianjin University, 92 Weijin Road, Weijin Road Campus, Nankai District, Tianjin, China
- Department of Intelligent Medical Engineering, Academy of Medical Engineering and Translational Medicine, Tianjin University, 92 Weijin Road, Weijin Road Campus, Nankai District, Tianjin, China
- Tianjin Changqing Technology Development Co., Ltd., No. 7, Changtu Road, Hongqiao District, Tianjin, China
American Journal of Biochemistry and Biotechnology, Volume 20, Issue 4, pp. 356–364 · doi.org/10.3844/ajbbsp.2024.356.364
Abstract
The quality of capsules has a direct impact on human health. However, defects inevitably arise during the capsule manufacturing process, and manual sorting is required. Most studies on capsule defects focus on detecting surface imperfections and those on internal capsule defects remain relatively limited. This study classifies four types of capsules using the deep learning model MobileNet, aiming to accurately identify surface and internal defects. A total of 2872 capsule images are used to evaluate the model's classification performance prior to and following optimization. The MobileNet model categorizes capsule images into four types: Normal capsules, deformed capsules, impure capsules, and bubbled capsules. Stratified cross-validation is applied to partition the dataset into 80% training, 10% validation, and 10% testing sets for ten-fold cross-validation. The model's performance is evaluated using three metrics: Precision, recall, and F1-score. The results are compared with two classic deep learning models, four traditional machine learning models (VGG16, ResNet101, KNN, and SVM), as well as decision trees and random forests. The findings demonstrate that the MobileNet model exceeds the performance of the other models, achieving precision, recall, and F1 scores of 94.24, 94.75 and 94.23%, respectively. Through transfer learning and improving the top layers of the MobileNet model with dropout, L2 regularization, Batch Normalization (BN), and average pooling, the model accuracy is improved by 7.95%, indicating promising performance and potential in detecting capsule defects.
Licence and reuse
Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.
How to reuse this articleResponses (0)
About this article
Bian, W., Huang, Y., Shan, B. & Chang, Y. (2024). Capsule Defect Detection and Classification Using Enhanced MobileNet Model. American Journal of Biochemistry and Biotechnology, 20(4), 356–364. https://doi.org/10.3844/ajbbsp.2024.356.364
- Licence
- CC BY 4.0
- Issue
- Volume 20, Issue 4
- Policies
- Editorial independenceUse of generative AIData availabilityAppeals and complaints
- Version
- Version of record
