Next Article in Journal
VS-GRU: A Variable Sensitive Gated Recurrent Neural Network for Multivariate Time Series with Massive Missing Values
Next Article in Special Issue
Smart Footwear Insole for Recognition of Foot Pronation and Supination Using Neural Networks
Previous Article in Journal
Influence of the Nasometric Instrument Structure on Nasalance Score
Previous Article in Special Issue
Evaluating Information-Retrieval Models and Machine-Learning Classifiers for Measuring the Social Perception towards Infectious Diseases
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

PISIoT: A Machine Learning and IoT-Based Smart Health Platform for Overweight and Obesity Control

by
Isaac Machorro-Cano
1,
Giner Alor-Hernández
1,*,
Mario Andrés Paredes-Valverde
1,
Uriel Ramos-Deonati
1,
José Luis Sánchez-Cervantes
2 and
Lisbeth Rodríguez-Mazahua
1
1
Tecnológico Nacional de México/I. T. Orizaba, Av. Oriente 9, 852. Col. Emiliano Zapata, 94320 Orizaba, Veracruz, Mexico
2
CONACYT-Tecnológico Nacional de México/I. T. Orizaba, Av. Oriente 9,852. Col. Emiliano Zapata, 94320 Orizaba, Veracruz, Mexico
*
Author to whom correspondence should be addressed.
Appl. Sci. 2019, 9(15), 3037; https://doi.org/10.3390/app9153037
Submission received: 29 June 2019 / Revised: 20 July 2019 / Accepted: 24 July 2019 / Published: 28 July 2019
(This article belongs to the Special Issue Intelligent Health Services Based on Biomedical Smart Sensors)

Abstract

:
Overweight and obesity are affecting productivity and quality of life worldwide. The Internet of Things (IoT) makes it possible to interconnect, detect, identify, and process data between objects or services to fulfill a common objective. The main advantages of IoT in healthcare are the monitoring, analysis, diagnosis, and control of conditions such as overweight and obesity and the generation of recommendations to prevent them. However, the objects used in the IoT have limited resources, so it has become necessary to consider other alternatives to analyze the data generated from monitoring, analysis, diagnosis, control, and the generation of recommendations, such as machine learning. This work presents PISIoT: a machine learning and IoT-based smart health platform for the prevention, detection, treatment, and control of overweight and obesity, and other associated conditions or health problems. Weka API and the J48 machine learning algorithm were used to identify critical variables and classify patients, while Apache Mahout and RuleML were used to generate medical recommendations. Finally, to validate the PISIoT platform, we present a case study on the prevention of myocardial infarction in elderly patients with obesity by monitoring biomedical variables.

Graphical Abstract

1. Introduction

Worldwide obesity has nearly tripled since 1975. In 2016, more than 1.9 billion adults aged 18 years and older were overweight, and of these, over 650 million were obese. In percentage terms, 39% of adults aged 18 years and over were overweight, and 13% were obese. In addition, 41 million children under the age of 5 were overweight or obese, and over 340 million children and adolescents aged 5 to 19 were overweight or obese. Most of the world’s population lives in countries where being overweight and obese kills more people than being underweight. Overweight and obesity are defined as abnormal or excessive fat accumulation that impairs the health, productivity, and quality of life of people all over the world [1]. Likewise, the body mass index (BMI) is a simple weight index that takes into account height to determine overweight and obesity in adults. For adults, the BMI provides the most useful population-level measure of overweight and obesity, as it is the same for both sexes and all ages. Although considered characteristic of developed countries, this health problem is increasingly prevalent in underdeveloped countries, especially in urban environments. The fundamental cause of obesity and overweight is an energy imbalance between calories consumed and calories burned. Globally, people have increased their intake of energy-dense foods that are high in fat and engage in little or no physical activity due to the increasingly sedentary nature of many forms of work, changes in modes of transport, and growing urbanization. Fortunately, overweight and obesity, as well as their related noncommunicable diseases, are preventable [1].
Similarly, population aging has become significant due to its relationship with globalization, and especially with demographic change. Nowadays, population aging is of the utmost importance for developed countries, where rates of aging are highest, and it is estimated that in the coming years, the rate of aging will continue to increase [2]. Aging is a life process that, unfortunately, is associated with certain complications and diseases, in addition to pathologies that begin in childhood and continue in old age. In this sense, there is a trend toward an increasing population of older adults due to increased life expectancy, which has contributed to a rise in various diseases [3]. In addition, it is estimated that chronic noncommunicable diseases in older adults will tend to increase in coming years, as will healthcare costs, because these types of conditions are long-lasting and require treatment based on technologies, costly medication, and long and frequent periods of hospitalization, without any guarantee that this will prolong the life of older adults or improve their quality of life. This situation generates greater demand for health services by this population group, which has special needs that must be met [4]. On the other hand, it is important to point out that the older adults’ health conditions are mainly related to poor dietary habits, lack of physical activity, and addictions—mostly smoking and alcoholism [5]. This increase in longevity and chronic diseases has, along with other external causes, displaced communicable diseases as the main cause of death. Therefore, comprehensive actions are required for the prevention, detection, and timely treatment of various conditions such as overweight and obesity, which affect the health and quality of life of older adults [2].
In the IoT, healthcare is an important application area, because it helps to reduce costs and improve service quality. In addition, biomedical devices or sensors are used in the IoT to monitor biomedical variables such as heart rate, blood glucose level, blood pressure, and body temperature. The IoT’s current influence on healthcare is mainly due to the advances that have been made in terms of communications, sensors, and technologies for information processing, and in particular, the advent of wearables (portable body sensors) for real-time monitoring of parameters or biomedical variables [6]. The daily activities of people with chronic medical conditions and disabilities are easier thanks to assisted living environments, which provide diverse healthcare services to patients since they have sensors with greater capacity and efficiency to process information in real time. The IoT offers several benefits for healthcare, such as the ability to obtain biomedical variables from the patient through a network of smart devices linked to biomedical devices, the use of cloud services for the processing and storage of information, and the ubiquitous exchange of data between health professionals [7].
However, IoT smart devices have limited resources, so it is necessary to consider other alternatives to analyze data, such as machine learning. Machine learning is a subset of artificial intelligence that consists in studying the algorithms and statistical models used in computer systems in order to achieve specific objectives effectively, based on patterns and inferences [8]. In this context, there are several challenges in the health sector that provide areas of opportunity for the IoT and machine learning to provide solutions or alternatives that contribute to improving the healthcare or quality of life of patients. This work presents PISIoT: a machine learning and IoT based smart health platform for the prevention, detection, treatment, and control of overweight and obesity, and other diseases or health problems derived from these conditions. Machine learning techniques are essential in this work due to the need to classify patients based on their biomedical variables and behavior in order to provide the most appropriate recommendations to improve their health. Weka API and the machine learning algorithm J48 were used to identify critical variables and predict patients’ type of obesity based on these variables, while Apache Mahout and RuleML were used to generate medical recommendations. Finally, to validate the PISIoT platform, we present a case study on the prevention of myocardial infarction in elderly patients with obesity by monitoring biomedical variables. Engaging people in their own healthcare could reduce the problems currently caused by overweight or obesity, reducing the costs of preventive care.
The remainder of this paper is structured as follows: Section 2 discusses works related to obesity, chronic degenerative diseases, machine learning, and the IoT. Next, Section 3 presents the functional architecture of PISIoT. In addition, to validate the PISIoT platform, a case study is presented on the prevention of myocardial infarction in elderly patients with obesity by monitoring biomedical variables. Section 4 presents the results and a discussion. Finally, Section 5 presents research conclusions and suggestions for future work.

2. Related Work

The use of IoT-based devices is changing people’s lifestyles, particularly in activities related to healthcare. In this sense, IoT-based devices monitor, analyze, diagnose, and contribute to the generation of medical recommendations for various health conditions, such as overweight and obesity. For this reason, this topic has become the focus of much attention in recent research [9]. In this section, we present a review of the state of the art of research involving the IoT in healthcare, particularly with respect to overweight, obesity, and chronic degenerative diseases.
Vasquez et al. [10] proposed “mhealth”, a health platform that contributes to improving child nutrition by monitoring intake and sends notifications and informative messages based on the choice of food. In addition, Vilallonga et al. [11] presented a study conducted on a group of obese patients having undergone surgery, who found it very motivating to observe, easily and quickly, a consistent graphic representation of their activities. Mun-Lee and Ouyang [12] presented a study that sought to identify correlations between the risks of developing certain diseases and used healthcare devices in the context of the IoT. By contrast, Zaragozá et al. [13] presented a platform that uses intercommunicated sensors to monitor the activities of children with obesity problems.
Additionally, Mun-Lee and Ouyang [14] proposed a collaboration protocol to send risk notifications to smart devices used in the IoT, along with a new service application algorithm that was used in devices linked to patients with blood pressure problems, obesity, and diabetes. Hiremath et al. [15] presented a proposal for the conceptualization of wearable IoT (WIoT) in terms of applications, functions, and design. In addition, they proposed a system for WIoT that recommends new directions regarding clinical and operative procedures. Likewise, Vázquez et al. [16] proposed new mobile health architecture to prevent childhood obesity through healthy eating suggestions using mobile health alternatives. In addition, they considered messages and notifications for a healthy diet for adults. Kim et al. [17] presented the iN Touch mobile application to monitor the daily activities of underprivileged young people with overweight and obesity who participated in a health apprenticeship program.
Alloghani et al. [18] presented a mobile application to increase children’s and parents’ awareness of the consequences of being overweight and obese, while providing information on how to sustain a healthy and balanced diet. By contrast, Wibisono and Astawa [19] proposed a web page and a mobile application for the treatment of weight reduction through machine-to-machine (M2M) information exchange or communication, in which a specific proportion of weights was used to achieve a healthy diet. Dobbins et al. [20] proposed a method to obtain physiological data from devices linked to triaxial accelerometers and a heart rate monitor, in order to detect physical activity. Likewise, they evaluated the performance of the classifiers in relation to the physical activities of the patients. Additionally, Shin et al. [21] defined a new concept of IoT-learning, with which a health application was developed using a combination of the IoT and architecture supported by the IoT. Likewise, they proposed a patient-focused treatment using IoT-learning to maintain weight.
On the other hand, Aupetit et al. [22] described the design of a biometric data display board for a childhood obesity camp in Qatar. The dashboard was validated by a health expert, and the health status of one patient was evaluated against another individual from another group to identify activity recommendations to be improved. Additionally, Yang et al. [23] presented a study to evaluate the effectiveness of the prevention of obesity in children 10 to 12 years of age with a mobile platform system called HAPPY ME, a smartphone application together with a portable device designed to improve healthy behaviors to prevent childhood obesity. In addition, Laing et al. [24] presented a study on the effectiveness of an experimental intervention based on diet recommendations given by means of a smart application for weight loss in overweight and obese patients over 18 years of age. Ahmed et al. [25] presented an overview of existing health monitoring systems, taking into account the IoT approach, and discussed recent trends and the development of health monitoring systems in terms of health parameters and frameworks, wireless communication, and security issues, while identifying limitations and advantages.
In addition, Fernández-Caballero and Fern [26] presented the project “Improvement of the Elderly Quality of Life and Care through Smart Emotion Regulation”, which sought solutions to improve the quality of life and care of elderly people using cameras, sensors and emotion regulation techniques. Chetty et al. [27] presented a new data analytic scheme for the smart recognition of human activities (e.g., activities by elderly people), using smartphone inertial sensors with classification algorithms based on information theory and classifiers based on random forests, learning by sets, and slow learning. Hussain et al. [28] presented a screening framework for medical care for the elderly and disabled. The platform made it possible to monitor the health of the elderly and disabled and provided an emergency alert in the event of a health condition outside normal values. Likewise, Muralidharan et al. [29] proposed a conceptual model to identify and classify the barriers to physical activity for patients with type 2 diabetes to establish the basis for the development of an ontology of diseases and patient activities.
Mathai et al. [30] presented a scenario-based design approach to develop new cases for better diabetes management. The approach identified the patient’s exercise, food, and emotional habits using mobile devices and sensors. Miah et al. [31] designed and evaluated an innovative mobile decision support solution (MDSS) to support the health decisions of rural citizens and the dissemination of information. The solution was developed using a design science approach, allowing general practitioners, based on consultation and information support, to virtually assess patient conditions and provide a diagnosis or treatment. In addition, Lim et al. [32] proposed an unsupervised machine learning model that has the ability to identify latent infectious diseases in the real world by extracting data from social media. Likewise, de Ramón-Fernández et al. [33] presented an integrative architecture that addresses the various deficiencies of current systems in terms of security, scalability, integration, flexibility, interoperability or data standardization to monitor hypertensive patients.
Jeong et al. [34] proposed the development of iotHEALTHCARE, describing its architecture as a smart alternative for healthcare. iotHEALTHCARE used sensors connected to a network to collect medical variables; later, the data were analyzed through algorithms validated by health personnel to generate recommendations. By contrast, Gupta et al. [35] proposed architecture supported by embedded sensors in the equipment, avoiding the use of wearable sensors or smartphone sensors, with the purpose of safeguarding basic health-related medical information. Chen et al. [36] proposed smart clothes, which, in combination with innovative procedures in clothes manufacturing, are used to monitor health status. In addition, Jung [37] proposed a framework to perform a context analysis of health parameters collected by WIoT devices that make it possible to monitor patients’ health. Santos et al. [38] presented a mobile gateway supported by the IoT and used in various cases directly related to m-Healthcare (mobile health).
Hossain and Muhammad [39] described a framework designed specifically for the healthcare industrial IoT (HealthIIoT), in which information was obtained through sensors and smart devices. Likewise, Ganzha et al. [40] presented research to create procedures and instruments that benefit semantic interoperability in mobile health through the “INTER-IOT” project. Raza et al. [41] provided a general overview of telehealth and considered new telehealth technologies and tools to increase the quality of healthcare services. In addition, Camara [42] described future trends in wireless communication with a focus on 5G networks, in which the benefits for the IoT and e-health are notable. Further, Ifrim et al. [43] presented a study focusing on the use of IoT in e-Health, along with future guidelines and the evolution of the IoT in the field of health.
This analysis of related work has shown that there are tools or applications in the IoT seeking to reduce the prevalence of overweight or obesity. Likewise, studies were found that use smart, mobile or sensor devices and machine learning algorithms to improve the healthcare of patients with chronic degenerative diseases such as diabetes and high blood pressure. However, we found that some studies use wearable devices to monitor biomedical variables. Likewise, some studies do not consider the connectivity, interoperability, and integration of heterogeneous devices, and few works use machine learning algorithms for data analysis. Moreover, only a few studies make medical recommendations. In this sense, PISIoT is a user-centered solution that provides access to and integrates information from various sources and device providers in the IoT. Likewise, it analyzes the information collected machine learning techniques and provides expert knowledge through recommendations, rules, and alerts. Furthermore, PISIoT performs patient monitoring in real time, provides medical recommendations based on the detection of risk values or situations and facilitates the relationship between patients and the specialists responsible for their health. PISIoT does not intend to replace the health specialist but rather serve as a support tool for healthcare. The following section describes the PISIoT architecture and functionality, as well as the case study used.

3. Materials and Methods

IoT-based healthcare applications improve the quality of patient care at a low cost. Currently, smart devices in the IoT are used to monitor patients’ biomedical variables. In addition, progress in telecommunications has significantly facilitated the use of IoT-based solutions in overweight and obesity [44]. Likewise, wearables allow biomedical variables to be collected in real time (for example, stress levels, sleep quality, blood sugar levels, heart rate, and calories burned) regardless of where the patient is located (at home or in the hospital) [45]. From this perspective, healthcare benefits greatly from the IoT because different solutions are linked to sensors or smart devices, improving patient care and the efficiency of health personnel [46]. In this section, we describe the PISIoT architecture and functionality and offer a case study for preventing myocardial infarction in elderly patients with obesity by monitoring biomedical variables.

3.1. Architecture Description

PISIoT is a smart healthcare platform that uses IoT-based devices and machine learning techniques to help manage weight and obesity. PISIoT allows real-time monitoring of a patient’s biomedical variables through wearables and smart devices. All the data collected are processed and analyzed using machine learning algorithms to identify critical variables and make relevant recommendations for the loss or control of patients’ weight.

3.2. PISIoT: Architecture and Functionality

PISIoT is based on a layered architecture, which provides a clear definition and description of the activities and functions of each module. This facilitates maintenance and allows for high scalability. Figure 1 presents the PISIoT architecture, which is made up of five layers: the presentation layer, monitoring network layer, integration layer, data management layer, and IoT-based services layer. Each layer is composed of various components with a specific functionality and relationship. A general description of the layers is presented below.
  • Presentation layer. Through this layer, communication is made between the patient and the platform, thus facilitating a web application and a mobile application through which patients are able to view and track their biomedical variables, available IoT-based services, medical history, and recommendations. In addition, the platform allows manual input of water and food consumed during the day. When patients enter food or drinks consumed using a smartphone or computer with Internet access linked to the wearable device, calories, carbohydrates, fat, and proteins are automatically obtained from the database of the device provider. Nevertheless, in PISIoT, it is possible to enter food or a beverage not included in the provider’s database, in addition to any physical activity performed by the patient.
  • Monitoring network layer. This layer is made up of different IoT-based devices such as wearable and smart devices linked to telecommunication equipment, which have communication interfaces that facilitate the exchange of information. These devices make it possible to collect information on the patient’s biomedical variables (heart rate, calories burned, sleep, minutes of physical activity and weight), based on the activities performed during a day. All the information collected is sent to the data management layer for further processing and analysis.
  • Integration layer. This layer is made up of the wearable and smart device providers and receives the patient’s data and consultations to generate the requested answers. In addition, this layer is responsible for requesting services from the IoT-based services layer based on the PISIoT recommendations.
  • Data analysis layer. This layer is responsible for identifying critical variables and generates medical recommendations. In addition, this layer protects useful information for the PISIoT and patients’ medical history.
  • IoT-based services layer. This layer is responsible for linking, invoking, selecting and confirming the availability of IoT-based services.
  • Data management layer. This layer is responsible for the storage and backup of the patient’s medical history and the data collected by the devices used.
The following subsections describe the most important aspects of the PISIoT, as a fundamental part of this work.

3.2.1. Monitoring Network Layer

The availability of a reliable platform, the particular device characteristics (brand, model, and battery life) and data access permissions by suppliers must all be considered in order to guarantee optimal monitoring of patients’ biomedical variables. On the other hand, data acquisition by smart devices depends on various factors such as compatibility between the devices used, the wearable device’s portability during the day, the correct positioning of the wearable device at night, continual reporting of weight, and patients’ honesty in reporting food and water ingested. For this reason, a monitoring network is required that allows PISIoT to monitor and collect patients’ biomedical variables and identify daily eating habits and physical activity with the purpose of motivating patients to maintain or reduce their weight, thus contributing to reducing the prevalence of overweight and obesity. Therefore, PISIoT uses an IoT-based monitoring network that allows smart devices to link up and communicate. The main purpose of the monitoring network is to collect patients’ biomedical and other variables from wearable devices. In particular, the monitoring network is made up of IoT-based smart devices that are divided into three categories:
  • Wearable devices. Wearable devices are responsible for monitoring and collecting most of the biomedical variables, as well as other variables generated from the patient’s actions. The wearable devices in the IoT provide a high-tech infrastructure that enables communication and links between portable sensors to monitor a person’s activities, including but not limited to the person’s biomedical variables, behavior, and welfare, with the purpose of improving quality of life [15]. Wearable devices are classified according to their appearance, functionality, portability on the body, characteristics, and functional capacity in order to provide a better description of different sectors. For this reason, the authors of [47] classified wearable devices into smartwatch, smart eyewear, fitness tracker, smart clothing, wearable camera, and wearable biomedical device. PISIoT works with devices from some suppliers, but its scalability makes it possible to consider wearable devices from other suppliers.
  • Smart devices. These devices are responsible for the smart collection of weight or other variables not identified by wearable devices (e.g., smart scale, temperature sensor, motion sensor). Smart devices are the driving force of the IoT because they provide fast and accurate information in real time and identify various patterns. In this sense, PISIoT includes some smart device suppliers but ensures that other smart device providers can be incorporated.
  • Smartphones. Smartphones are in charge of maintaining communication between the devices, the providers, and PISIoT. The wearable devices used in the IoT lack an operating system as such; therefore, they must be linked to a smartphone or a computer with Internet access because the information collected by the devices must be safeguarded by the storage and support scheme of PISIoT and of its suppliers. PISIoT is multiplatform; however, depending on the model and provider of the wearable device that you wish to use, there are specific compatible smartphone models.

3.2.2. Data Analysis Layer

This layer identifies critical variables and classifies patients according to their level of obesity through Weka API based on version 3.8 of Java, since this is the latest stable version and is open-source software that is easy to integrate with PISIoT and meets the required functionality parameters. In addition, to perform the BMI classification, identify critical variables, and generate medical recommendations, PISIoT uses the machine learning algorithm J48, which is an open-source implementation in Java of the C4.5 algorithm. This means that both C4.5 and J48 are classification algorithms used to generate decision trees. The classification algorithms are useful for the diagnosis of hepatitis [48], cancer of the biliary tract [49], and lung cancer [50]; support vector machines used for the prediction of cancer growth [51] and stage I ovarian cancer [52]; for the prediction of cardiac diseases [53] and classification of eye disease [54]; to differentiate malignant, benign, and advanced pulmonary nodules [55]; and in the classification of tumors in digital mammograms [56] and diagnosis of pancreatic cancer [57]. In addition, J48 was selected because it has been used to build predictive models in similar classification problems and has shown better performance than other algorithms. For instance, in [58], J48 produced meaningful and useful predictions with better performance (larger area under the curve) than other decision tree algorithms like random forest and CART (classification and regression tree) models. Moreover, in [59], a J48 decision tree was used to classify users into different categories, and experimental results showed that the J48 decision tree classifier has higher accuracy and a lower response time in determining the category of a user compared to other classification algorithms like REPTree, fuzzy C-means, and random tree. By contrast, PISIoT was developed and implemented modularly and generically, with a view to high performance, ease of implementation, and better extensibility of the application. Figure 2 presents the four classes developed for the machine learning module.
  • ClsModel.java serves primarily to generate the model from the training set. In addition, it contains two methods, one to receive the data set and another to generate the model based on the data set received. The class starts with an instance of the “Instances” type called “train”. Likewise, the ClsModel constructor is sent, which, through the generateModel method, indicates the destination and the algorithm used. In addition, the searchAlgorithm method is invoked.
  • InstanceAlgorithm.java contains the selection of the algorithm to be used. The method search Algorithm receives the algorithm selection and the model path.
  • Clsalgorithms.java processes the data set, the model, and the incoming information to apply the corresponding algorithm, in addition to providing a timely response to the request. This class starts with a classifier of the “Classifier” type, train of the “Instances” type, and data object of the “Instances” type. In addition, it uses the applyInstance method to apply the changes made and designate the information to be analyzed. The ClsAlgorithms method also receives the model, the data set, and the algorithm to process the information and generate a response.
  • ClsInstanceWeka.java generates an instance based on incoming information; this class is responsible for selecting the set of parameters to be processed. The CreateInstance method uses the Instances object and the number of elements contained in the data set, ignoring the class label.
To carry out the recommendations, the daily values and the weekly averages of each variable are considered. This makes it possible to establish the rules (maximum and minimum values allowed per variable) in the algorithm. Therefore, each day, the patient is classified based on BMI as normal, overweight, obese 1, obese 2 or obese 3. Once the type of classification has been identified using J48, the established rules are selected depending on the type of obesity. In addition, the person’s ideal weight is calculated based on age and height, in order to generate recommendations from health professionals according to pre-established rules. The rules generated identify and describe how the recommendation process operates, which aims to improve quality of life in a simple, progressive, and non-invasive manner using values obtained by the devices and entered by the patient. Apache Mahout and RuleML were used to generate medical recommendations. Apache Mahout is a free software library that offers scalable implementations of machine learning algorithms. RuleML is an XML-based language that serves to specify the immediate exchange of rules. In addition, together with the recommendations, suggested medical services are displayed depending on the patient’s progress or health status.

3.2.3. IoT-Based Services Layer

This layer describes the set of representational state transfer (REST) services developed with the purpose of providing the platform with information for those who request it and have access permissions. This facilitates the development of future applications using the information provided by the platform. The services are divided into downloadable information from wearable device providers and biomedical variable services, recommendations, IoT-based services, and services associated with other patient variables stored in the platform.
The principal REST services developed to download data from providers were “downloadSleep” for sleep, “downloadWeight” for weight, “downloadSteps” for steps, and “downloadHeart” for heart rate. In the same way, other REST services were developed to download the data for each variable monitored by the smart devices. To invoke the services, the jQuery library is used for asynchronous calls, which generates a response in JSON format that is made up of two nodes. One node corresponds to the error and takes the value of “0” if everything was satisfactory and “1” if an error occurred. The second is a message node that indicates why the error, if any, occurred, or provides a complete process notice when the operation is satisfactory.

3.2.4. Integration Layer

This layer is responsible for making the request for monitoring data obtained by the wearable device or the smart device to the corresponding provider. This is achieved through an access token and following the access and permissions policies of each provider, in order to then send the data to the data management layer for analysis and storage. Figure 3 shows the general workflow of PISIoT implemented in this layer.
As can be seen, wearable devices play an important role in monitoring several variables, particularly biomedical variables, since they collect data in real time and non-invasively, allowing the analysis and identification of critical variables to later generate medical recommendations and invoke medical services (clinical analysis, nutritionist, cardiologist, and general doctor). Patients are thus able to view, at any time, their progress or the day’s data and can adjust and optimize their consumption of food or physical activity according to the recommendations provided by the platform. Additionally, in this layer, the patient’s consultations are received, meaning that each time the patient accesses the PISIoT platform, a request for information is generated to visualize the biomedical variables and all other variables monitored by wearables and smart devices. In addition, based on the recommendations of medical services made in the data management layer, this layer is in charge of requesting available medical services from the IoT-based services layer to display them to patients so they can select the most appropriate based on availability of time, confidence, and cost.

3.2.5. Presentation Layer

PISIoT provides a mobile application that allows patients to interact with the platform. Figure 4a shows the main interface where the calories consumed, calories burned, heart rate, steps, and minutes of activity variables can be viewed. Additionally, it has a menu to access the patient profile, the types of synchronized devices or the option to add a new one, an option to view the biomedical variables monitored, recommendations, and IoT-based services. Figure 4b shows the recommendations generated for each of the biomedical variables (heart rate, sleep, calories burned, minutes of physical activity, and weight).
Additionally, Figure 5a shows a graph displaying the correlation of the biomedical variables (heart rate, sleep, calories burned, weight, and minutes of physical activity) with other variables collected by the wearable device and the smart device (steps, floors, and water consumed). Additionally, a button is displayed to enter the patient’s medical service. Figure 5b shows the medical services available (clinical analysis, nutritionist, cardiologist, and general doctor). Thanks to the use of IoT technologies and machine learning techniques, PISIoT allows patients to visualize in an easy, user-friendly way and in real time their biomedical variables and classification, together with medical recommendations for weight loss or control. Additionally, the mobile application also provides a set of user interfaces that allow patients to view and request available medical services in the IoT, such as clinical analysis services or nutritionist, cardiologist or general practitioner services.
In addition, patients can be monitored by a trusted doctor and a relative they link to their profile.

3.3. Case Study: Prevention of Myocardial Infarction in Elderly Patients with Obesity by Monitoring Biomedical Variables

In this section, we present a case study to validate the contribution of PISIoT to weight control or loss in elderly patients with obesity, who are more prone to myocardial infarction. The case study focused on monitoring biomedical variables in obese elderly patients with a view to weight loss, thus reducing the likelihood of myocardial infarction. The scenario is as follows:
  • Elderly people with obesity need to know the number of calories ingested, calories burned, sleep, heart rate, the amount of water consumed, daily steps, and necessary physical activity to achieve gradual weight loss without health complications, helping to avoid myocardial infarction.
According to the WHO [60], cardiovascular diseases (CVDs) are disorders of the heart and blood vessels and include coronary heart disease, cerebrovascular disease, rheumatic heart disease, myocardial infarction, and other conditions. Individuals at risk of CVD have exhibited raised blood pressure, glucose, and lipids, as well as overweight and obesity. Identifying those at highest risk of CVDs and ensuring they receive appropriate treatment can prevent premature deaths, yet CVDs continue to cause many deaths worldwide. Figure 6 shows the scenario of elderly people with obesity who exhibit symptoms associated with myocardial infarction or have already had a myocardial infarction and who need to lose weight. The biomedical variables (heart rate, sleep, calories burned, weight, and minutes of physical activity) and other variables (steps, floors, calories consumed, distance traveled, water consumed, and exercise) are collected through a wearable device and a smart scale, which are linked to and synchronized with a smartphone. Through the smartphone linked to each patient, the wearable device and smart scale send the collected data to the corresponding provider. PISIoT requests each patient’s data from the device providers for analysis in order to identify possible critical variables, generate the recommendations, and present the additional IoT-based services (clinical analysis, nutritionist or cardiologist) that the patient requires to achieve their weight loss goal.
PISIoT provides the possibility to establish a link with a private doctor and a relative of the patient for constant monitoring of the patient’s achievement of daily objectives.

Methodology

This case study was conducted to monitor 40 obese elderly people from 60 to 80 years old (20 female and 20 male) who showed symptoms associated with myocardial infarction (e.g., pain in the center of the chest, difficulty breathing, numbness or pain in the right arm, sweating, paleness, dizziness) or had already experienced a myocardial infarction, and who needed to lose weight. A wearable device was assigned to each patient to obtain the biomedical variables (heart rate, sleep, calories burned, weight, and minutes of physical activity) and other variables (steps, floors, calories consumed, distance traveled, water consumed, and exercise). In addition, a smart scale was assigned to each patient to periodically record weight. For the purposes of this case study, it was necessary to obtain information about eating habits, water consumption, minutes of activity, calories burned, sleep, number of steps per day, and heart rate, both before and after implementation of PISIoT. For this reason, we followed the methodology described below:
  • Initial monitoring was performed over a period of two months (August—September 2018) using the wearable device; at the end of that period, weight was obtained with the smart scale. Both devices were linked to a smartphone to send the data to the device provider. A relative of the patient recorded food and water consumption using the platform for the wearable device. During this period, only the mobile application for the wearable device and smart scale were used. These focused only on monitoring the patient’s biomedical variables and did not provide any type of alert or medical recommendation to lose weight.
  • Implementation of PISIoT. Afterwards, a second monitoring period ran for four months (October 2018—January 2019); the biomedical variables of the elderly people were requested from the device providers. Subsequently, the elderly patients’ BMI was calculated using the formula BMI = weight (kg) ÷ height2 (m) [1,61]. Then, the patients were classified to predict obesity with the classes ClsModel.java, Clsalgorithms.java, ClsInstanceWeka.java, and InstanceAlgorithm.java using the machine learning algorithm J48. Table 1 shows the classification used to determine the type of obesity according to the World Health Organization (WHO) [61]. In addition, the patient’s biomedical variables (heart rate, calories burned, sleep, minutes of physical activity, and weight) and other variables (steps, floors, calories consumed, distance traveled, water consumed, and exercise) were considered in the classification to describe the behavior of elderly patients with obesity. With the data obtained by the wearable device and smart scale, a dataset was created with 17 predictor attributes (calories consumed, calories burned, carbohydrates, fat, proteins, water consumed, exercise duration, heart rate during exercise, resting heart rate, minutes of physical activity at peak level, minutes at cardio level, minutes at fat burning level, steps, floors, distance traveled, sleep duration, and weight), one class label attribute (obesity), and 7200 instances; daily data were registered for each patient and classified as the type of obesity that patients will exhibit, according to the values of the predictor attributes, if they maintain this behavior.
  • This made it possible to perform an analysis to identify possible critical variables that influence the emergence of obesity in elderly people, generate recommendations, and propose the IoT-based medical services that patients require to lose weight. The J48 algorithm has been adopted in PISIoT using the data set to obtain the predictive model with the 10-fold cross-validation technique. This kind of validation was used because, in general, it is recommended for estimation accuracy (even if computational power enables the use of more folds) due to its relatively low bias and variance [62]. Moreover, the J48 algorithm was selected since it was proven in previous studies to have performed better than other algorithms [63,64,65,66].
  • Once the type of classification has been identified, the established rules are selected depending on the type of obesity. Likewise, with the formula weight = (height − 40)/2 [2], the patient’s ideal weight is identified, which serves as a basis to identify critical variables that are greater or smaller than the values permitted in each classification. Figure 7 shows the classification rules for obesity 1 and also includes recommendations based on the critical variables detected on a daily basis.
  • The medical recommendations section is complex, as they influence different factors. For this reason, the decrease in calories should be gradual, that is, portions of 500 kcal every 2 weeks to avoid any decompensation. Patients should not attempt to accelerate the process or exceed the limits established by the PISIoT.
  • If the patient does not follow the daily recommendations issued by the PISIoT, after a period of time, a greater medical recommendation is generated. Table 2 presents the rules for recommendations for patients with any type of obesity, which were made by specialized healthcare personnel (two doctors, a nutritionist with a master’s degree in food and nutritional health, and a nurse with a master’s degree in public health). The table includes the column “Variable”, which gives the variable used; “Rule”, which specifies the rule for the recommendation; “Frequency”, which is how often the analysis is made; and “Recommendation”, which contains the recommendation to be given if the rule is not met. The rules described above identify and describe the operation of the medical recommendation process, which aims to improve quality of life in a manner that is simple, gradual and non-invasive, and the use of the values obtained by the smart devices and those entered by the patient or the patient’s family member.
  • These recommendations also include the medical services that patients require to achieve their goal of weight control or loss (clinical analysis, nutritionist or cardiologist). The medical recommendations and suggested medical services were validated by specialized healthcare personnel. The elderly patients monitored in this second period showed progress in weight loss from using PISIoT, which performs real-time monitoring, identifies critical variables that lead to weight gain, analyzes biomedical variables through machine learning techniques, provides recommendations for weight loss, and is monitored and supported by experts in healthcare.
  • Finally, the elderly people were monitored again for four more months (February–May 2019) to evaluate PISIoT’s contribution and impact on the elderly patients’ weight loss and health. This third period was proposed to verify PISIoT’s contribution to weight loss and/or an improvement to elderly people’s health, reducing the risk of a myocardial infarction or obesity-related diseases. In addition, in this period, the increase in elderly people’s outlook and quality of life was evaluated following the recommendations provided by PISIoT.

4. Results and Discussion

The IoT and machine learning allow PISIoT to obtain and analyze biomedical variables and other variables collected by the smart devices in the monitoring network with the purpose of contributing to overweight and obesity control. In the case study, the data collected by the smart devices were analyzed in order to gain insight into the patients’ eating habits, determine the patients’ status according to their BMI, and identify critical variables and possible recommendations that help patients to control or lose weight and improve their health. This section discusses the results and the findings from this case study.

4.1. Monitoring Analysis

The data obtained from the elderly people were analyzed to identify critical variables according to the values of the biomedical variables (heart rate, sleep, calories burned, weight, and minutes of physical activity) and other variables (steps, floors, calories consumed, distance traveled, water consumed, and exercise) collected by the wearable device and smart scale. In addition, the information was analyzed to gain an insight into the eating patterns and physical activity of the elderly people. For this reason, three periods were established for patient monitoring.
In the first period (August–September 2018), only the smart device (wearable device and smart scale) providers’ platform was used to understand the data collection process and the variables collected by each device, as well as to identify food intake, the amount of water ingested by the elderly people, and the values generated for each variable. An exploratory analysis of the data collected identified some disadvantages or limitations in the providers’ devices and platforms. For example, when the wearable device battery is empty, data collection is lost during power charging and due to device inactivity; this is reported as sleep time. The same happens when the patient takes a shower and the device is not water-resistant, as it must be removed. In addition, the device providers’ platforms only show the data obtained and do not generate any kind of medical recommendation. At the beginning of this first period, 100% of the elderly people had a high weight and a BMI between 30 and 35, and unfortunately, at the end of the period, none of the elderly people presented a weight decrease. Figure 8 shows the weekly average for each variable for each of the 40 elders monitored in the last week of the first period.
In the second period (October 2018–January 2019), PISIoT was introduced to monitor the elderly people. In the first instance, PISIoT requested, through the REST services developed, the data collected by the smart devices from each provider for the first period for each patient (August–September 2018). Based on this, PISIoT obtained the elders’ BMI, which was between 30 and 35, classifying them at obesity level 1, and the second monitoring period began. Figure 9a shows the biomedical and other variables monitored by the smart devices in PISIoT during one week for a 76-year-old obese elder with a height of 1.66 m, weight of 91 kg, and a BMI of 33.1, in which high values were observed in calorie consumption and daily average resting heart rate. Additionally, low values were identified for physical activity, daily steps, floors, calories burned, sleep, and water consumption. Based on the recommendation rule tree for obesity 1 presented in Figure 7, PISIoT provided the recommendations according to the critical variables identified each day. When the daily recommendations made for certain variables were not fulfilled for three days, PISIoT generated a greater medical recommendation. Figure 9b shows the weight-related recommendations for the 76-year-old obese elder.
Additionally, in the case of the 76-year-old obese elder, PISIoT recommended requesting clinical analysis and nutritionist services. The IoT-based medical services are automatically suggested by PISIoT to allow elders to select the service they prefer based on time availability, location, cost, and confidence. Likewise, PISIoT notifies the doctor associated with the patient. The clinical analysis results were high due to poor diet and poor mobility. For this reason, the elder received his new diet plan in the first week of the second period of monitoring, with the purpose of reducing his weight, BMI, and the likelihood of a myocardial infarction. Subsequently, following the new nutritional plan and PISIoT recommendations, the monitoring process was continued. By the end of the second period, the 76-year-old elder managed to lose 5 kg, achieving a weight of 86 kg and a BMI of 31.2.
On the other hand, at the end of the second period, it was identified that 100% of the elderly people monitored managed to lose weight (from 1 to 5 kg) and lower their BMI. Figure 10 presents the weekly average for each variable for each of the 40 elderly people in the last week of the second period.
Additionally, it was found that weight loss was achieved largely thanks to real-time monitoring and the recommendations by health professionals that were generated by PISIoT, once the risk variables of weight gain had been identified. In addition, after data analysis, it was found that the patients fulfilled some or most of the recommendations issued by PISIoT, which was subsequently reflected in a positive change in the variables related to the recommendations.
In the third period (February–May 2019), although the weight and BMI of the elderly people decreased, they remained at obesity level 1. Figure 11a shows the biomedical and other variables monitored in this period for the 76-year-old obese elder (now weighing 86 kg), in which it can be observed that there was a decrease in caloric intake and an improvement in the average resting heart rate. Additionally, an increase in daily steps, calories burned, minutes of activity and water consumption was identified. However, it was also observed that the elder got less than eight hours of sleep. Again, PISIoT provided the corresponding recommendations based on the recommendation rule tree for obesity 1.
On the other hand, upon failure to meet certain daily recommendations for certain variables in a three-day period, PISIoT generated new recommendations. The sleep-related recommendations for the 76-year-old obese elder are presented in Figure 11b. PISIoT recommended the nutritionist’s service in order to draw up a new eating plan.
In the first week of the third period of monitoring, the obese elder received his new diet with the aim of continuing to lose weight, lowering his BMI, and reducing the likelihood of a myocardial infarction, thereby improving his health. Therefore, monitoring continued using PISIoT, and at the end of the third period, the elder lost another 7 kg, achieving a new weight of 79 kg and a BMI of 28.7. As a result, PISIoT reclassified him as overweight.
PISIoT recommended clinical analysis and nutritionist services for the 76-year-old elder to confirm he was in good health for his new weight and to draw up a new nutritional plan in order to maintain this weight, as drastic changes in weight in such a short time are not recommended due to the risk of decompensation or other complications. Finally, at the end of the third period, it was identified that, fortunately, 40% of the elderly people monitored achieved weight loss (from 1 to 7 kg) and a lower BMI. Accordingly, PISIoT reclassified them; that is, they went from obesity 1 to overweight. Weight loss with PISIoT considerably reduced the probability of myocardial infarction for the elderly people, improved their health, and increased their quality of life.
This is a result of the fact that PISIoT uses a combination of wearable devices, smart devices, machine earning, and the IoT to prevent, treat, and monitor overweight, obesity, and associated diseases or health problems.

4.2. Findings

By using PISIoT in the case study presented, it was possible to identify a correlation between the biomedical variables (heart rate, sleep, calories burned, weight, and minutes of physical activity) and the other variables (steps, floors, calories consumed, distance traveled, water consumed, and exercise) detected by the smart devices (wearable device and smart scale). This correlation is presented in Table 3, where, in addition, the variables were placed in relation to the highest correlation identified for each biomedical variable. Some correlations are described below:
  • Weight gain in patients is due to an increase in calorie consumption, few or no minutes of physical activity, a reduction in the number of steps and floors, little exercise, little or no water consumption, and a decrease in calories burned, and this is likely to produce an increase in heart rate.
  • High cardiac frequency in patients correlates with other variables such as an increase in sleep and, hence, in weight due to a decrease in minutes of physical activity, exercise, steps, floors, and calories burned.
  • Little sleep correlates with an increase in heart rate and, consequently, increased calorie consumption. Likewise, there is a decrease in calories burned and, consequently, a possible increase in weight.
  • A lack of calories burned correlates with low physical activity, steps, and exercise, and there is an increase in heart rate, sleep, and possibly weight.
  • Increased physical activity contributes to an increase in the number of steps, floors, and exercise, and an improvement in heart rate is possible. In addition, there is an increase in calories burned, and if the same calorie intake is maintained, weight decreases.
The elderly people’s weight loss was a result of their discipline and readiness to follow the dietary plans and comply with PISIoT recommendations during the monitoring periods, and their honesty in reporting food and drinks consumed.
In this sense, it was found that support from family members is vital because members of this age group have difficulties using new technologies, especially applications of this type. In some other cases, elderly people might forget to record food. For this reason, family members recorded food and drinks, assisting the elders and providing greater motivation to achieve their loss weight objective and reduce the likelihood of experiencing a myocardial infarction or other diseases associated with overweight and obesity.

5. Conclusions

The human body is constantly providing information about one’s state of health. This information is obtained through systems or devices that measure, capture or detect values and variables at specific points of the body in an invasive or non-invasive manner. Healthcare personnel use the values of biomedical variables to make decisions on diagnoses and treatments in order to improve patients’ health. Across the world, quality of life, particularly among the elderly, is being affected considerably by overweight and obesity. The IoT makes it possible to interconnect, detect, identify, and process data between objects or services to fulfill a common objective. The main advantages of IoT in healthcare are the monitoring, analysis, diagnosis, and control of conditions such as overweight and obesity, and the generation of recommendations to prevent them. However, the objects used in the IoT have limited resources, so it is necessary to consider other alternatives for data analysis, such as machine learning. Machine learning is a subset of artificial intelligence that consists in studying the algorithms and statistical models used in computer systems in order to achieve specific objectives effectively, based on patterns and inferences.
At present, there are several challenges in the health sector that provide areas of opportunity for the IoT and machine learning to provide solutions or alternatives that contribute to improving healthcare and quality of life. In this work, we have presented PISIoT: a machine learning and IoT-based smart health platform for the prevention, detection, treatment, and monitoring of overweight and obesity. Weka API and the J48 machine learning algorithm were used to identify critical variables, while Apache Mahout and RuleML were used to generate medical recommendations. Finally, to validate the PISIoT platform, we presented a case study on the prevention of myocardial infarction in elderly patients with obesity by monitoring biomedical variables. The main limitations of PISIoT are that, at the moment, it focuses only on the detection, prevention, treatment, and monitoring of overweight and obesity. Likewise, it uses a type of wearable device and smart scale and only uses the J48 machine learning algorithm.
In the future, we intend to consider monitoring other chronic degenerative diseases and conditions associated with overweight and obesity, such as high blood pressure, diabetes, cardiovascular diseases, and cancer (of the endometrium, breasts, ovaries, prostate, liver, gallbladder, kidneys, and colon). Likewise, we intend to use other wearable and smart devices to collect various biomedical variables related to chronic degenerative diseases. In addition, we hope to use other machine learning algorithms in order to evaluate and identify those that perform best.

Author Contributions

Conceptualization, G.A.-H. and I.M.-C.; methodology, M.A.P.-V. and I.M.-C.; software, L.R.-M. and U.R.-D.; validation, I.M.-C., U.R.-D., L.R.-M., and G.A.-H.; formal analysis, L.R.-M.; investigation, J.L.S.-C.; resources, G.A.-H.; data curation, M.A.P.-V.; writing—original draft preparation, I.M.-C.; writing—review and editing, G.A.-H. and M.A.P.-V.; visualization, J.L.S.-C.; supervision, L.R.-M.; project administration, G.A.-H.; funding acquisition, G.A.-H. and J.L.S.-C.

Funding

This research was funded by the National Technological Institute of Mexico (TecNM), grant number 6544.18-P—Support program for scientific and technological research 2018.

Acknowledgments

This work was supported by the National Technological Institute of Mexico (TecNM) and sponsored by Mexico’s National Council of Science and Technology (CONACYT) and the Secretariat of Public Education (SEP) through the PRODEP project (Programa para el Desarrollo Profesional Docente). The authors wish to acknowledge the contribution of the health personnel and research professors of the Universidad del Papaloapan (UNPA) (Doctor Jolbert Jair Matus Manuel, nurse and M.S.P. Lina María Reyes Pérez, nutritionist and M.S.A.N. Sulik Saraí Luna Gómez Lechuga, M.C. Mónica Guadalupe Segura Ozuna, and Doctor and M.M.F Arnulfo Cárdenas Reyes).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. World Health Organization. Obesity and Overweight. Available online: https://www.who.int/en/news-room/fact-sheets/detail/obesity-and-overweight (accessed on 10 May 2019).
  2. D’Hyver, C.; Gutiérrez Robledo, L.M. Geriatrics, 3rd ed.; Modern Manual: Mexico City, Mexico, 2014; pp. 2–13. [Google Scholar]
  3. Health Secretary. Technical Guide for the National Health Book—Adults over 60 Years of Age or Older, 1st ed.; Health Secretary: Mexico City, Mexico, 2008; pp. 13–20. [Google Scholar]
  4. Lin, Q.; Zhang, D.; Connelly, K.; Ni, H.; Yu, Z.; Zhou, X. Disorientation detection by mining GPS trajectories for cognitively-impaired elders. Pervasive Mob. Comput. 2015, 19, 71–85. [Google Scholar] [CrossRef]
  5. Mexican Social Security Institute. Evaluation and Nutritional Monitoring Elderly in the Care First Level; Quick Reference Guide, IMSS-095-08; CENETEC: Mexico City, Mexico, 2014; pp. 2–13. [Google Scholar]
  6. Li, L.; Li, S.; Zhao, S. QoS-Aware Scheduling of Services-Oriented Internet of Things. IEEE Trans. Ind. Inform. 2014, 10, 1497–1505. [Google Scholar]
  7. Xu, L.D.; He, W.; Li, S. Internet of Things in Industries: A Survey. IEEE Trans. Ind. Inform. 2014, 10, 2233–2243. [Google Scholar] [CrossRef]
  8. Hantao, H.; Hao, Y. Compact and Fast Machine Learning Accelerator for IoT Devices; Computer Architecture and Design Methodologies; Springer: Singapore, 2019; pp. 9–11. [Google Scholar] [CrossRef]
  9. Bhatt, Y.; Bhatt, C. Internet of Things in HealthCare. In Internet of Things and Big Data Technologies for Next Generation Healthcare; Bhatt, C., Dey, N., Ashour, A.S., Eds.; Springer: Berlin/Heidelberg, Germany, 2017; Volume 23, pp. 13–33. [Google Scholar] [CrossRef]
  10. Vazquez-Briseno, M.; Navarro-Cota, C.; Nieto-Hipólito, J.; Jiménez-García, E.; Sanchez-Lopez, J. A proposal for using the internet of things concept to increase children’s health awareness. In Proceedings of the CONIELECOMP 2012, 22nd International Conference on Electrical Communications and Computers, Puebla, Mexico, 27–29 February 2012; pp. 168–172. [Google Scholar]
  11. Vilallonga, R.; Lecube, A.; Fort, J.M.; Boleko, M.A.; Hidalgo, M.; Armengol, M. Internet of Things and bariatric surgery follow-up: Comparative study of standard and IoT follow-up. Minim. Invasive Ther. Allied Technol. 2013, 22, 304–311. [Google Scholar] [CrossRef] [PubMed]
  12. Lee, B.M.; Ouyang, J. Application Protocol adapted to Health Awareness for Smart Healthcare Service. Adv. Sci. Technol. Lett. 2013, 43, 101–104. [Google Scholar]
  13. Zaragozá, I.; Guixeres, J.; Alcañiz, M.; Cebolla, A.; Saiz, J.; Álvarez, J. Ubiquitous monitoring and assessment of childhood obesity. Pers. Ubiquit. Comput. 2013, 17, 1147–1157. [Google Scholar] [CrossRef]
  14. Lee, B.M.; Ouyang, J. Intelligent Healthcare Service by using Collaborations between IoT Personal Health Devices. Int. J. Bio-Sci. Bio-Technol. 2014, 6, 155–164. [Google Scholar] [CrossRef]
  15. Hiremath, S.; Yang, G.; Mankodiya, K. Wearable Internet of Things: Concept, Architectural Components and Promises for Person-Centered Healthcare. In Proceedings of the 4th International Conference on Wireless Mobile Communication and Healthcare—Transforming Healthcare Through Innovations in Mobile and Wireless Technologies (MOBIHEALTH), Athens, Greece, 3–5 November 2014; pp. 304–307. [Google Scholar]
  16. Vázquez, M.; Jimenez, E.; Nieto, J.I.; Sánchez, J.D.D.; Garcia, A.; Torres, J.P. Development of a Mobile Health Architecture to Prevent Childhood Obesity. IEEE Lat. Am. Trans. 2015, 13, 1520–1527. [Google Scholar] [CrossRef]
  17. Kim, K.K.; Logan, H.C.; Young, E.; Sabee, C.M. Youth-centered design and usage results of the iN Touch mobile self-management program for overweight/obesity. Pers. Ubiquit. Comput. 2015, 9, 59–68. [Google Scholar] [CrossRef]
  18. Alloghani, M.; Hussain, A.; AI-Jumeily, D.; Fergus, P.; Abuelma’atti, O.; Hamden, H. A Mobile Health Monitoring Application for Obesity Management and Control Using the Intemet-of-Things. In Proceedings of the 2016 Sixth International Conference on Digital Information Processing and Communications (ICDIPC), Beirut, Lebanon, 21–23 April 2016; pp. 19–24. [Google Scholar] [CrossRef]
  19. Wibisono, G.; Astawa, I.G.B. Designing Machine-to-Machine (M2M) Prototype System for Weight Loss Program for Obesity and Overweight Patients. In Proceedings of the 2016 7th International Conference on Intelligent Systems, Modelling and Simulation (ISMS), Bangkok, Thailand, 25–27 January 2016; pp. 138–143. [Google Scholar]
  20. Dobbins, C.; Rawassizadeh, R.; Momeni, E. Detecting physical activity within lifelogs towards preventing obesity and aiding ambient assisted living. Neurocomputing 2016, 230, 1–23. [Google Scholar] [CrossRef]
  21. Shin, S.-A.; Lee, N.-Y.; Park, J.-H. Empirical study of the IoT-learning for obese patients that require personal training. In Advances in Computer Science and Ubiquitous Computing; Park, J.J., Pan, Y., Yi, G., Loia, V., Eds.; Springer: Singapore, 2017; Volume 421, pp. 1005–1012. [Google Scholar] [CrossRef]
  22. Aupetit, M.; Fernandez-Luque, L.; Singh, M.; Srivastava, J. Visualization of Wearable Data and Biometrics for Analysis and Recommendations in Childhood Obesity. In Proceedings of the 2017 IEEE 30th International Symposium on Computer-Based Medical Systems (CBMS), Thessaloniki, Greece, 22–24 June 2017; pp. 678–679. [Google Scholar]
  23. Yang, H.J.; Kang, J.-H.; Kim, O.H.; Choi, M.; Oh, M.; Nam, J.; Sung, E. Interventions for Preventing Childhood Obesity with Smartphones and Wearable Device: A Protocol for a Non-Randomized Controlled Trial. Int. J. Environ. Res. Public Health 2017, 14, 184. [Google Scholar] [CrossRef] [PubMed]
  24. Laing, B.; Mangione, C.; Tseng, C.; Leng, M.; Vaisberg, E.; Mahida, M.; Bholat, M.; Glazier, E.; Morisky, D.; Bell, D. Effectiveness of a Smartphone Application for Weight Loss Compared with Usual Care in Overweight Primary Care Patients. Ann. Intern. Med. 2014, 161, S5–S12. [Google Scholar] [CrossRef] [PubMed]
  25. Ahmed, M.U.; Bjorkman, M.; Causevic, A.; Fotouhi, H.; Lindén, M. An Overview on the Internet of Things for Health Monitoring Systems. Internet Things IoT Infrastruct. 2016, 429–436. [Google Scholar] [CrossRef]
  26. Fernández-Caballero, A.; Fern, A. Improvement of the Elderly Quality of Life and Care through Smart Emotion Regulation Improvement of the Elderly Quality of Life and Care through Smart Emotion Regulation. In Proceedings of the 6th International Work-Conference, IWAAL 2014, Belfast, UK, 2–5 December 2014; pp. 348–355. [Google Scholar] [CrossRef]
  27. Chetty, G.; White, M.; Akther, F. Smart Phone Based Data Mining for Human Activity Recognition. Procedia Comput. Sci. 2015, 46, 1181–1187. [Google Scholar] [CrossRef] [Green Version]
  28. Hussain, A.; Wenbi, R.; Da Silva, A.L.; Nadher, M.; Mudhish, M. Health and emergency-care platform for the elderly and disabled people in the Smart City. J. Syst. Softw. 2015, 110, 253–263. [Google Scholar] [CrossRef]
  29. Muralidharan, S.; Ranjani, H.; Anjana, R.M.; Allender, S.; Mohan, V. Mobile Health Technology in the Prevention and Management of Type 2 Diabetes. Indian J. Endocrinol. Metab. 2017, 21, 334–340. [Google Scholar] [PubMed]
  30. Mathai, M.; Ginige, A.; Srinivasan, U.; Girosi, F.; Au, M.H.A.; Castiglione, A.; Choo, K.-K.R.; Palmieri, F.; Li, K.-C. Digital Knowledge Ecosystem for Empowering Users to Self-manage Diabetes through Context Specific Actionable Information. In Green, Pervasive, and Cloud Computing: 12th International Conference, GPC 2017, Cetara, Italy; Au, A., Castiglione, A., Choo, K.-K.R., Palmieri, F., Li, K.-C., Eds.; Springer: Berlin/Heidelberg, Germany, 2017; pp. 672–684. [Google Scholar] [CrossRef]
  31. Miah, S.J.; Hasan, N.; Hasan, R.; Gammack, J. Healthcare support for underserved communities using a mobile social media platform. Inf. Syst. 2017, 66, 1–12. [Google Scholar] [CrossRef]
  32. Lim, S.; Tucker, C.S.; Kumara, S. An unsupervised machine learning model for discovering latent infectious diseases using social media data. J. Biomed. Inform. 2017, 66, 82–94. [Google Scholar] [CrossRef]
  33. De Ramón-Fernández, A.; Ruiz-Fernández, D.; Ramírez-Navarro, J.; Marcos-Jorquera, D.; Gilart-Iglesias, V.; Soriano-Payá, A. Architecture of a Monitoring System for Hipertensive Patients. In Biomedical Applications Based on Natural and Artificial Computing: International Work-Conference on the Interplay between Natural and Artificial Computation, IWINAC 2017, Corunna, Spain, 19–23 June 2017, Proceedings, Part II; Vicente, J.M.F., Álvarez-Sánchez, J.R., López, F.D., Moreo, J.T., Adeli, H., Eds.; Springer: Berlin/Heidelberg, Germany, 2017; pp. 473–480. [Google Scholar] [CrossRef]
  34. Jeong, J.-S.; Han, O.; You, Y.-Y. A Design Characteristics of Smart Healthcare System as the IoT Application. Indian J. Sci. Technol. 2016, 9, 1–8. [Google Scholar] [CrossRef]
  35. Maharaj, B.T.; Gupta, P.K.; Malekian, R. A novel and secure IoT based cloud centric architecture to perform predictive analysis of users activities in sustainable health centres. Multimed. Tools Appl. 2016, 76, 18489–18512. [Google Scholar]
  36. Chen, M.; Ma, Y.; Song, J.; Lai, C.-F.; Hu, B. Smart Clothing: Connecting Human with Clouds and Big Data for Sustainable Health Monitoring. Mob. Netw. Appl. 2016, 21, 825–845. [Google Scholar] [CrossRef]
  37. Jung, H. A conceptual framework for trajectory-based medical analytics with IoT contexts. J. Comput. Syst. Sci. 2016, 82, 610–626. [Google Scholar] [CrossRef]
  38. Santos, J.; Rodrigues, J.P.C.; Silva, B.; Casal, J.; Saleem, K.; Denisov, V. An IoT-based mobile gateway for intelligent personal assistants on mobile health environments. J. Netw. Comput. Appl. 2016, 71, 194–204. [Google Scholar] [CrossRef] [Green Version]
  39. Hossain, M.S.; Muhammad, G. Cloud-assisted Industrial Internet of Things (IIoT)—Enabled framework for health monitoring. Comput. Netw. 2016, 101, 192–202. [Google Scholar] [CrossRef]
  40. Ganzha, M.; Paprzycki, M.; Pawłowski, W.; Szmeja, P.; Wasielewska, K. Semantic interoperability in the Internet of Things: An overview from the INTER-IoT perspective. J. Netw. Comput. Appl. 2016, 81, 1–23. [Google Scholar] [CrossRef]
  41. Raza, M.; Hoa Le, M.; Aslam, N.; Hieu Le, C.; Tam Le, N.; Ly Le, T. Telehealth Technology: Potentials, Challenges and Research Directions for Developing Countries. IFMBE Proc. 2017, 63, 523–528. [Google Scholar]
  42. Camara-Brito, J.M. Trends in wireless communications towards 5G networks—The influence of e-health and IoT applications. In Proceedings of the International Multidisciplinary Conference on Computer and Energy Science (SpliTech), Split, Croatia, 13–15 July 2016; pp. 1–7. [Google Scholar] [CrossRef]
  43. Ifrim, C.; Pintilie, A.-M.; Apostol, E.; Dobre, C.; Pop, F. The art of advanced healthcare applications in big data and IoT systems. In Advances in Mobile Cloud Computing and Big Data in the 5G Era; Mavromoustakis, C.X., Mastorakis, G., Dobre, C., Eds.; Springer: Berlin/Heidelberg, Germany, 2017; Volume 22, pp. 133–149. [Google Scholar] [CrossRef]
  44. Ouaddah, A.; Mousannif, H.; Elkalam, A.A.; Ouahman, A.A. Access control in the Internet of Things: Big challenges and new opportunities. Comput. Netw. 2017, 112, 237–262. [Google Scholar] [CrossRef]
  45. Goudos, S.K.; Dallas, P.I.; Chatziefthymiou, S.; Kyriazakos, S. A Survey of IoT Key Enabling and Future Technologies: 5G, Mobile IoT, Sematic Web and Applications. Wirel. Pers. Commun. 2017, 97, 1645–1675. [Google Scholar] [CrossRef]
  46. Trappey, A.J.; Trappey, C.V.; Govindarajan, U.H.; Chuang, A.C.; Sun, J.J. A review of essential standards and patent landscapes for the Internet of Things: A key enabler for Industry 4.0. Adv. Eng. Inform. 2017, 33, 208–229. [Google Scholar] [CrossRef]
  47. Mardonova, M.; Choi, Y. Review of Wearable Device Technology and Its Applications to the Mining Industry. Energies 2018, 11, 547. [Google Scholar] [CrossRef]
  48. Sathyadevi, G. Application of CART algorithm in hepatitis disease diagnosis. In Proceedings of the 2011 International Conference on Recent Trends in Information Technology (ICRTIT), Tamil Nadu, India, 3–5 June 2011; pp. 1283–1287. [Google Scholar]
  49. Pattanapairoj, S.; Silsirivanit, A.; Muisuk, K.; Seubwai, W.; Cha’On, U.; Vaeteewoottacharn, K.; Sawanyawisuth, K.; Chetchotsak, D.; Wongkham, S. Improve discrimination power of serum markers for diagnosis of cholangiocarcinoma using data mining-based approach. Clin. Biochem. 2015, 48, 668–673. [Google Scholar] [CrossRef] [PubMed]
  50. Tartar, A.; Kilic, N.; Akan, A. A new method for pulmonary nodule detection using decision trees. In Proceedings of the 2013 35th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Osaka, Japan, 3–7 July 2013; pp. 7355–7359. [Google Scholar] [CrossRef]
  51. Chen, X.; Ching, W.-K.; Aoki-Kinoshita, K.F.; Furuta, K. Support Vector Machine Methods for the Prediction of Cancer Growth. In Proceedings of the 2010 Third International Joint Conference on Computational Science and Optimization, Huangshan, China, 28–31 May 2010; pp. 229–232. [Google Scholar] [CrossRef]
  52. Shoaip, N.; Elmogy, M.M.; Riad, A.M.; Zaghloul, H.; Badria, F.A.; Giannoccaro, I.; Hassanien, A.E.; Gaber, T. Early-Stage Ovarian Cancer Diagnosis Using Fuzzy Rough Sets with SVM Classification. In Handbook of Research on Machine Learning Innovation and Trends; IGI Global: Hershey, PA, USA, 2017; pp. 43–60. [Google Scholar]
  53. Subbalakshmi, G.; Ramesh, K.; Rao, C. Decision Support in Hearth Disease Prediction System using Naive Bayes. Indian J. Comput. Sci. Eng. 2011, 2, 170–176. [Google Scholar]
  54. Fageeri, S.O.; Ahmed, S.M.M.; Almubarak, S.A.; Mu’Azu, A.A. Eye refractive error classification using machine learning techniques. In Proceedings of the 2017 International Conference on Communication, Control, Computing and Electronics Engineering (ICCCCEE), Khartoum, Sudan, 16–18 January 2017; pp. 1–6. [Google Scholar] [CrossRef]
  55. Hashemi, A.; Pilevar, A.H.; Rafeh, R.; Moallem, P.; Karimizadeh, A.; Yazdchi, M. Mass Detection in Lung CT Images Using Region Growing Segmentation and Decision Making Based on Fuzzy Inference System and Artificial Neural Network. Int. J. Image Graph. Signal Process. 2013, 5, 16–24. [Google Scholar] [CrossRef] [Green Version]
  56. Abdalla, A.M.M.; Dress, S.; Zaki, N. Detection of Masses in Digital Mammogram Using Second Order Statistics and Artificial Neural Network. Int. J. Comput. Sci. Inf. Technol. 2011, 3, 176–186. [Google Scholar] [CrossRef]
  57. Yang, Y.; Chen, H.; Wang, D.; Luo, W.; Zhu, B.; Zhang, Z. Diagnosis of pancreatic carcinoma based on combined measurement of multiple serum tumor markers using artificial neural network analysis. Chin. Med. J. 2014, 127, 1891–1896. [Google Scholar] [PubMed]
  58. Kureshi, N.; Abidi, S.S.R.; Blouin, C. A Predictive Model for Personalized Therapeutic Interventions in Non-small Cell Lung Cancer. IEEE J. Biomed. Health Inform. 2016, 20, 424–431. [Google Scholar] [CrossRef] [PubMed]
  59. Sood, S.K.; Mahajan, I. A Fog-Based Healthcare Framework for Chikungunya. IEEE Internet Things J. 2018, 5, 794–801. [Google Scholar] [CrossRef]
  60. World Health Organization. Cardiovascular Disease. Available online: https://www.who.int/cardiovascular_diseases/en/ (accessed on 17 May 2019).
  61. World Health Organization. Global Strategy on Diet, Physical Activity and Health. Available online: https://www.who.int/dietphysicalactivity/childhood/en/ (accessed on 19 May 2019).
  62. Han, J.; Kamber, M.; Pei, J. Classification: Basic Concepts, Chapter 8, Data Mining: Concepts and Techniques, 3rd ed.; Elsevier: Amsterdam, The Netherlands, 2012; pp. 327–391. ISBN 978-0-12-381479-1. [Google Scholar]
  63. Dugan, T.M.; Mukhopadhyay, S.; Carroll, A.; Downs, S. Machine Learning Techniques for Prediction of Early Childhood Obesity. Appl. Clin. Inform. 2015, 6, 506–520. [Google Scholar] [Green Version]
  64. Abdullah, F.S.; Nor Manan, S.A.; Ahmad, A.; Wafa, S.W.; Shahril, M.R.; Zulaily, N.; Amin, R.M.; Ahmed, A. Data Mining Techniques for Classification of Childhood Obesity Among Year 6 School Children. In Proceedings of the Recent Advances on Soft Computing and Data Mining: The Second International Conference on Soft Computing and Data Mining (SCDM-2016), Bandung, Indonesia, 18–20 August 2016; pp. 465–474. [Google Scholar] [CrossRef]
  65. Daud, N.; Noor, N.L.M.; Aljunid, S.A.; Noordin, N.; Teng, N.I.M.F. Predictive Analytics: The Application of J48 Algorithm on Grocery Data to Predict Obesity. In Proceedings of the 2018 IEEE Conference on Big Data and Analytics (ICBDA), Langkawi Island, Malaysia, 21–22 November 2018; pp. 1–6. [Google Scholar] [CrossRef]
  66. De-La-Hoz-Correa, E.; Mendoza Palechor, F.; De-La-Hoz-Manotas, A.; Morales Ortega, R.; Sánchez Hernández, A.B. Obesity Level Estimation Software based on Decision Trees. J. Comput. Sci. 2019, 15, 1–11. [Google Scholar] [CrossRef]
Figure 1. General architecture of PISIoT.
Figure 1. General architecture of PISIoT.
Applsci 09 03037 g001
Figure 2. Classes of the machine learning module.
Figure 2. Classes of the machine learning module.
Applsci 09 03037 g002
Figure 3. General workflow implemented in PISIoT.
Figure 3. General workflow implemented in PISIoT.
Applsci 09 03037 g003
Figure 4. Main mobile user interfaces of PISIoT: (a) index; (b) recommendations.
Figure 4. Main mobile user interfaces of PISIoT: (a) index; (b) recommendations.
Applsci 09 03037 g004
Figure 5. Main mobile user interfaces of PISIoT: (a) monitoring; (b) IoT-based medical services.
Figure 5. Main mobile user interfaces of PISIoT: (a) monitoring; (b) IoT-based medical services.
Applsci 09 03037 g005
Figure 6. Scenario: monitoring elderly people with obesity.
Figure 6. Scenario: monitoring elderly people with obesity.
Applsci 09 03037 g006
Figure 7. Rules tree for recommendations for patients with obesity 1.
Figure 7. Rules tree for recommendations for patients with obesity 1.
Applsci 09 03037 g007
Figure 8. Elderly people monitored in the first period.
Figure 8. Elderly people monitored in the first period.
Applsci 09 03037 g008
Figure 9. Second period of monitoring: (a) variables; (b) weight recommendations.
Figure 9. Second period of monitoring: (a) variables; (b) weight recommendations.
Applsci 09 03037 g009
Figure 10. Elderly people monitored in the second period.
Figure 10. Elderly people monitored in the second period.
Applsci 09 03037 g010
Figure 11. Third period monitoring: (a) variables; (b) sleep recommendations.
Figure 11. Third period monitoring: (a) variables; (b) sleep recommendations.
Applsci 09 03037 g011
Table 1. Ranking rule according to BMI.
Table 1. Ranking rule according to BMI.
ClassificationMinimum ValueMaximum Value
Normal18.5024.99
Overweight25.0029.99
Obesity 130.0034.99
Obesity 235.0039.99
Obesity 340.00+
Table 2. Recommendation rules for patients with obesity.
Table 2. Recommendation rules for patients with obesity.
VariableRuleFrequencyRecommendation
Calories consumed>(20 * ideal weight)3 times per weekWatch food intake due to possible increase in BMI
Calories consumed<15003 times per weekRequest clinical analysis service and seek medical evaluation
Exercise<75Per weekPerform exercise
Heart rate>100 or <603 times per weekGo to medical assessment
Minutes at peak level>103 times per weekGo to medical assessment
Resting heart rate>120 or < 40At all timesRequest ambulance; possible tachycardia or infarction. Request cardiologist service
Weight(Weight)2 * 34.9Per monthRequest a nutritionist service for a new nutritional plan
Weight(Weight)2 * 30Per monthRequest a nutritionist service for a new nutritional plan
Sleep<6Every 3 daysYou should sleep at least 8 h a day
Sleep>8Every 3 daysStay active
Table 3. Correlation between biomedical and other variables.
Table 3. Correlation between biomedical and other variables.
Biomedical VariablesWeightHeart RateSleepCalories BurnedMinutes of Physical Activity
Variables correlationCalories consumedSleepHeart rateMinutes of physical activitySteps
Minutes of physical activity Minutes of physical activity Calories burnedStepsFloors
StepsExerciseCalories consumedFloorsExercise
FloorsStepsWeightExerciseHeart rate
ExerciseFloors Heart rateCalories burned
WaterCalories consumed WeightCalories consumed
Heart rateWeight SleepWeight
Calories burned

Share and Cite

MDPI and ACS Style

Machorro-Cano, I.; Alor-Hernández, G.; Paredes-Valverde, M.A.; Ramos-Deonati, U.; Sánchez-Cervantes, J.L.; Rodríguez-Mazahua, L. PISIoT: A Machine Learning and IoT-Based Smart Health Platform for Overweight and Obesity Control. Appl. Sci. 2019, 9, 3037. https://doi.org/10.3390/app9153037

AMA Style

Machorro-Cano I, Alor-Hernández G, Paredes-Valverde MA, Ramos-Deonati U, Sánchez-Cervantes JL, Rodríguez-Mazahua L. PISIoT: A Machine Learning and IoT-Based Smart Health Platform for Overweight and Obesity Control. Applied Sciences. 2019; 9(15):3037. https://doi.org/10.3390/app9153037

Chicago/Turabian Style

Machorro-Cano, Isaac, Giner Alor-Hernández, Mario Andrés Paredes-Valverde, Uriel Ramos-Deonati, José Luis Sánchez-Cervantes, and Lisbeth Rodríguez-Mazahua. 2019. "PISIoT: A Machine Learning and IoT-Based Smart Health Platform for Overweight and Obesity Control" Applied Sciences 9, no. 15: 3037. https://doi.org/10.3390/app9153037

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop