Prompt-gamma imaging (PGI)-based range verification has been successfully implemented in clinical proton therapy recently and its sensitivity to detect treatment deviations is currently investigated. The cause of treatment deviations can be multiple - for example, computed tomography (CT)-based range prediction, patient setup, and anatomical changes. Hence, it would be beneficial, if PGI-based verification would not only detect a treatment deviation but would also be able to directly identify its most probable source. Here, we propose a heuristically derived decision tree approach to automatically classify the sources of range deviation in proton pencil-beam scanning (PBS) treatments of head and neck tumors based on range information obtained with a PGI slit camera. The decision tree model was iteratively generated on a training dataset of different anatomical complexities, for an anthropomorphic head phantom and patient CT data (planning and control CTs) from five patients. Different range prediction errors, setup changes and relevant and nonrelevant anatomical changes were introduced or derived from control CTs, summing up to a total of 98 training scenarios. Independent validation was performed for another 98 scenarios, derived solely from patient CT data of another seven patients. PBS head and neck treatment plans were generated for the nominal scenario. For all PBS spots in the investigated field, PGI profiles were simulated using a dedicated analytical model of the slit camera for the nominal as well as the different error scenarios. From comparison of PGI profiles for nominal and error scenarios, a spot-wise range shift after spot aggregation with a kernel of 7mm sigma was determined for each error scenario. The heuristic approach includes a prefiltering of the most suitable PBS spots for PGI treatment verification. From the validation, the accuracy, sensitivity, and specificity of the model were determined. A five-step consecutive filter was developed to preselect PBS spots. On average, 25% of spots (1044 spots) remained as input for the classification model. The derived heuristic decision tree model is based on five parameters: The coefficient of determination (R2 ), the slope and intercept of the linear regression between PGI-derived range shifts and the respectively predicted proton ranges for the investigated PBS spots, as well as the average and standard deviation of the PGI-derived shifts. With this approach, 94 of 98 error scenarios could be classified correctly in validation (accuracy of 96%). A sensitivity and specificity of 100% and 86% were reached. In this simulation study it was demonstrated that the source of a treatment deviation can be identified from simulated noiseless PGI information in head and neck tumor treatments with high sensitivity and specificity. The application, refinement, and evaluation of the approach on measured PGI data will be the next step to show the clinical feasibility of PGI-based error source classification.