Due to its transferability, soil has been commonly used as evidence in criminal investigations. In this work, urban soil samples taken from five parks are subject of analysis. Infrared spectroscopy was used as experimental technique. Using this technique, a total number of 80 samples of urban soils were examined. The infrared spectra were properly pre‐processed and were further used for development of classification models based on supervised self‐organizing maps. In order to perform the variable selection and the optimization of the supervised self‐organizing maps in automated manner, genetic algorithms were employed. Using this approach, for three locations with our models, we are able to successfully predict all samples used for external validation, while for the remaining two locations, 96% of the samples, used for external validation, were successfully classified by the developed models. In addition to this, the developed models were used for examination of influence of the weather and the seasonal changes on the composition of the soil. For this purpose, 3 years after the initial soil samples were collected, additional 12 samples were analyzed. All these samples were correctly classified by the previously developed model.