A method for detecting a context of a mobile device equipped with sensors (111, 121, 122, 131) and a context detection module in which - the sensors (111, 121, 122, 131) are assigned to at least two groups (110, 120, 130), each of which comprises at least one sensor (111, 121, 122, 131), - and each group (110, 120, 130) is allocated a group classifier (116, 126, 136) adapted to detect, in a form of a classification result, currently identified, by means of a given classifier, context of the device based on indications of the sensors (111, 121, 122, 131) belonging to the given group, - wherein the groups (110, 102, 130) of sensors are ordered hierarchically, characterized in that with a use of the context detection module, - the classification result is indicated as either positive or negative, wherein the positive classification result indicates that the identified context occurs and the negative classification results indicates that the identified context does not occur; - the device context is detected by reading classification results indicated by classifiers (116, 126, 136), wherein the classification is started from the classifier (116, 126, 136) of the group of the lowest level, wherein each time when the classification result indicated by the classifier (116, 126, 136) is positive or when the classification result indicated by the classifier is negative for a plurality of times in a row, switching on power supply of the sensors and activating classification by the classifier (116, 126, 136) allocated to a group (110, 120, 130) with a level higher by one level and reading the context indicated by said group's classifier (116, 126, 136); - and based on the results of the classification indicated by the higher groups' classifiers (116, 126, 136), executing adaptation of the configuration of lower groups' classifiers (116, 126, 136). - the sensors (111, 121, 122, 131) are assigned to at least two groups (110, 120, 130), each of which comprises at least one sensor (111, 121, 122, 131), - and each group (110, 120, 130) is allocated a group classifier (116, 126, 136) adapted to detect, in a form of a classification result, currently identified, by means of a given classifier, context of the device based on indications of the sensors (111, 121, 122, 131) belonging to the given group, - wherein the groups (110, 102, 130) of sensors are ordered hierarchically, characterized in that with a use of the context detection module, - the classification result is indicated as either positive or negative, wherein the positive classification result indicates that the identified context occurs and the negative classification results indicates that the identified context does not occur; - the device context is detected by reading classification results indicated by classifiers (116, 126, 136), wherein the classification is started from the classifier (116, 126, 136) of the group of the lowest level, wherein each time when the classification result indicated by the classifier (116, 126, 136) is positive or when the classification result indicated by the classifier is negative for a plurality of times in a row, switching on power supply of the sensors and activating classification by the classifier (116, 126, 136) allocated to a group (110, 120, 130) with a level higher by one level and reading the context indicated by said group's classifier (116, 126, 136); - and based on the results of the classification indicated by the higher groups' classifiers (116, 126, 136), executing adaptation of the configuration of lower groups' classifiers (116, 126, 136).