The disclosure relates to a computer program product for detecting teeth grinding of a person. The computer program performs noise filtering of respective portions of the sound signal to determine a candidate grinding portion of the sound signal and detecting one or more candidate grinding events in the candidate grinding portion. An event feature vector of features of the candidate grinding event is generated and fed to a neural network trained for teeth grinding detection. Teeth grinding is detected for the candidate grinding event on the basis of at least one output of the neural network.