A computer program product comprising instructions stored in tangible non-transitory computer media which, when the computer program is executed by a processor of a computer, causes the computer to perform a method for providing an efficient communication in a hierarchical network of distributed devices comprising at least a master device, at least a first client device, wherein the at least first client device is connected via a first communication interface with the master device, the method comprising:
- collecting first data by the at least first client device sent by at least one sensor device via a second communication interface;
- storing the received first data in a data storage of the first client device;
- determining by the at least first client device metadata of the first data;
- receiving by the at least first client device a requirement information of the first data;
- generating a classification information of the received first data by the at least first client device according to the metadata and the requirement information of the first data, wherein the classification information is generated by using a prediction model or a machine learning model at the first client device, wherein the classification information is modified based on faulty data information;
- providing the classification information of the first data by the at least first client device to the master device and/or to at least a second client device according to a rule information;
- and
- updating the classification information when the first data is changed, wherein the updating of the classification information is triggered by the requirement information changing.