The object of the invention relates to a method for creating a statistical database for controlling a thermal therapy device (10), the essence of which is providing a remote server (200) suitable for sending and receiving data through an electronic communication channel, and for storing and processing the received data, and: - measuring temperature ensured with the thermal therapy device (10), and a duration of treatment, and - receiving via an electronic data input unit (301) from the user: • user data relating to physical parameters of the user, • data relating to a position of the skin surface treated by the thermal therapy device (10), • data suitable for characterising a pathological condition treated with the thermal therapy device (10) - linking the measured data and the received data to each other, and sending them to a remote server (200) through an electronic communication channel with a user interface (300), then - processing the sent data with the remote server (200), and building a statistical database using the results of the processing, and for subsequent treatments performed with the thermal therapy device (10) controlling the thermal therapy device (10) using the data of the statistical database.