With advances in vehicle emission control technology, updating source profiles to meet the current requirements of source apportionment has become increasingly crucial. In this study, on-road and non-road vehicle particles were collected, and then the chemical compositions of individual particles were analyzed using single particle aerosol mass spectrometry. The data were grouped using an adaptive resonance theory neural network to identify signatures and establish a mass spectral database of mobile sources. In addition, a deep learning-based model (DeepAerosolClassifier) for classifying aerosol particles was established. The objective of this model was to accomplish source apportionment. During the training process, the model achieved an accuracy of 98.49 % for the validation set and an accuracy of 93.36 % for the testing set. Regarding the model interpretation, ideal spectra were generated using the model, verifying its accurate recognition of the characteristic patterns in the mass spectra. In a practical application, the model performed hourly source apportionment at three specific field monitoring sites. The effectiveness of the model in field measurement was validated by combining traffic flow and spatial information with the model results. Compared with other machine learning methods, our model achieved highly automated source apportionment while eliminating the need for feature selection, and it enables end-to-end operation. Thus, in the future, it can be applied in refined and online source apportionment of particulate matter.