Cartridge cases are commonly collected at crime scenes involving firearms. One of the stages in forensic examination is the determination of the type and model of firearms based on the class characteristics of these cartridge cases. A firearm examiner evaluates the class characteristics on the basis of their knowledge and experience, and by referring to collections of cartridge cases representing class characteristics of different firearms, special databases and reference books. However, this process is highly subjective. The novelty of this research is in developing objective methods of firearms determination by applying a machine learning approach. In this study, several Convolutional Neural Networks from Keras programming package were trained to determine the type/model of a firearm based on the class characteristics observed on cartridge cases from seven different categories of firearms. The prediction accuracies received by this method range from 71 to 81 percent for models based on different Convolutional Neural Networks, while using an ensemble of the machine learning models increased the accuracy to 88 %. The research demonstrates the efficacy of machine learning in enhancing accuracy and reducing subjectivity in firearm identification, highlighting its significant potential in forensic science applications.