Research Article

Application of Machine Learning in Glass Type Classification

Ruiqiao Zhu*
Guanghua Cambridge International School

* Corresponding author: [email protected]

Abstract

As an inorganic non-metallic material with a long history and wide application, glass has exerted a profound impact on the production, life and technological development process of human society since its birth. In order to investigate how the type of glass can be classified, this process is here to point out how to solve this kind of problem. This study addresses the inefficiencies of traditional glass classification methods by systematically evaluating four machine learning algorithms—Logistic Regression (LR), Random Forest (RF), K-Nearest Neighbors (KNN), and Support Vector Machine (SVM)—for accurate glass type identification. Leveraging glass’s chemical and physical properties as features, the research incorporates feature engineering and hyperparameter tuning to optimize model performance. Experiments on a dataset of 214 glass samples show that optimized SVM achieved the highest test accuracy (0.7632), followed by tuned KNN (0.7368), RF (0.7105), and LR (0.6842). Cross-validation confirms model generalization, while RF’s feature importance highlights magnesium and aluminum content as key classification drivers. This work provides a cost-effective, automated solution for glass classification, with value for both material science research and industrial applications like quality control and recycling.

Keywords: machine learning; glass type classification; K-Nearest Neighbors (KNN); and Support Vector Machine (SVM)
Published: October 28, 2025
DOI: 10.54254/2753-8818/2026.HZ28754
Volume: TNS Vol.145
pp. 97-101
Download PDF

References

  1. Hastie, T., Tibshirani, R., & Friedman, J. H. (2009).  The Elements of Statistical Learning  (2nd ed.). Springer.  https: //doi.org/10.1007/978-0-387-84858-7
  2. Pedregosa, F., et al. (2011). Scikit-learn: Machine learning in Python.  Journal of Machine Learning Research, 12, 2825-2830.  https: //jmlr.org/papers/v12/pedregosa11a.html
  3. Breiman, L. (2001). Random forests.  Machine Learning, 45(1), 5-32.  https: //doi.org/10.1023/A: 1010933404324
  4. Islam, M. A., et al. (2020). Feature selection and classification of glass types using machine learning.  Materials Today: Proceedings, 33, 4788-4793.  https: //doi.org/10.1016/j.matpr.2020.07.641
  5. Cover, T., & Hart, P. (1967). Nearest neighbor pattern classification.  IEEE Transactions on Information Theory, 13(1), 21-27.  https: //doi.org/10.1109/TIT.1967.1053964
  6. Fix, E., & Hodges, J. L. (1951). Discriminatory analysis: Nonparametric discrimination: Consistency properties. USAF School of Aviation Medicine, Technical Report No. 4, pp. 1-32.
  7. Cortes, C., & Vapnik, V. (1995). Support-vector networks.  Machine Learning, 20(3), 273-297.  https: //doi.org/10.1007/BF00994018
  8. Schölkopf, B., & Smola, A. J. (2002). Learning with Kernels: Support Vector Machines, Regularization, Optimization, and Beyond. MIT Press.
  9. Sokolova, M., & Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks.  Information Processing & Management, 45(4), 427-437.  https: //doi.org/10.1016/j.ipm.2009.03.002
  10. Chicco, D., & Jurman, G. (2020). The confusion matrix: A review.  arXiv preprint arXiv: 2005.10497.  https: //arxiv.org/abs/2005.10497