Starting in 2014, the International diabetes federation estimates that 387 million people worldwide have diabetes. The aim of DIM is to develop a m-health system that allows patients suffering from diabetes to download in real time the information contained in glucometers and insulin pumps, of any brand and model, making the data transfer operation from the devices as simple and fast as possible, so as to encourage their use. The M-health system will also contain the food diary for calculating carbohydrates and calories consumed by comparing the input values with the values obtainable using the nutritional tables present in the literature (gold standard) and will also collect physical activity data from the accelerometer if available (bracelet and / or cell phone and / or wearable sensor tag). Data will be concentrated on servers, and data and their analysis will be made available to the medical staff, to the patient and to the caregivers in a way that is easy to read and interpret, both for the patient and for the doctor, also through graphic representations on the mobile device. An artificial intelligence layer will also be developed that can: (a) generate alarms (on-line); (b) correlate blood glucose data with physical activity and diet data; (c) profiling and clustering patients to facilitate the identification of similar cases; (e) giving personalized recommendations to patients; (d) support the calculation of insulin doses.