Ancient glass artifacts were susceptible to weathering from the environment, causing changes in their chemical composition, which pose significant obstacles to the identification of glass products. Analyzing the chemical composition of ancient glass has been beneficial for evaluating their weathering status and proposing measures to reduce glass weathering. The objective of this study was to explore the optimal machine learning algorithm for glass type classification based on chemical composition. A set of glass artifact data including color, emblazonry, weathering, and chemical composition was employed and various methods including logistic regression and machine learning techniques were used. The results indicated that a significant correlation (p < 0.05) could only observed between surface weathering and the glass types (high-potassium and lead–barium). Based on the random forest and logistic regression models, the primary chemical components that signify glass types and weathering status were determined using PbO, K2O, BaO, SiO2, Al2O3, and P2O5. The random forest model presented a superior ability to identify glass types and weathering status, with a global accuracy of 96.3%. This study demonstrates the great potential of machine learning for glass chemical component estimation and glass type and weathering status identification, providing technical guidance for the appraisal of ancient glass artifacts.