An Intelligent IoT Based Healthcare System Using Fuzzy Neural Networks

Healthcare facilities in modern age are key challenge especially in developing countries where remote areas face lack of highquality hospitals and medical experts. As artificial intelligence has revolutionized various fields of life, health has also benefited from it. +e existing architecture of store-and-forward method of conventional telemedicine is facing some problems, some of which are the need for a local health center with dedicated staff, need for medical equipment to prepare patient reports, time constraint of 24–48 hours in receiving diagnosis and medication details from a medical expert in a main hospital, cost of local health centers, and need for Wi-Fi connection. In this paper, we introduce a novel and intelligent healthcare system that is based on modern technologies like Internet of things (IoT) and machine learning.+is system is intelligent enough to sense and process a patient’s data through a medical decision support system. +is system is low-cost solution for the people of remote areas; they can use it to find out whether they are suffering from a serious health issue and cure it accordingly by contacting near hospitals. +e results of the experiments also show that the proposed system is efficient and intelligent enough to provide health facilities. +e results presented in this paper are the proof of the concept.


Introduction
Internet of things (IoT) is a network in which many devices are connected, and these devices can communicate by computer network [1]. By this worldwide network, we can get information through sensors which relate to it. By using computer network, we can access this information anywhere in this world. Internet of things can connect physical objects to Internet and can provide opportunity of building systems which are based on various technologies such as near field communication (NFC) and wireless sensor network (WSN). In wireless sensor network, sensors sense the environment and send information to base station.
IoT has different methodologies such as smart dustbin, monitoring environment, IoT based irrigation system, smart healthcare system, and traffic control. In healthcare system, IoT brings gadget for monitoring health [2]. Health data can be accessed with the help of IoT by using sensors. Healthcare is a system which is used to improve health and help in treating diseases [3].
Health related issues/complications are increasing day by day, among which lung-and heart-related issues are toplisted. Health can be monitored by wireless technology, which is a modern concept. In wireless health monitoring systems, different technologies are used, including wearable sensors, portable remote health system, wireless communications, and expert systems. Life is precious; even a single life is also valuable, but due to lack of health facilities, awareness about diseases, and proper access to healthcare systems, people are dropping their lives. In all situations, Internet of things (IoT) helps in the indication of diseases and treatment of patients [4]. In IoT healthcare system, there exit wireless systems in which different applications and sensors are attached to patients, information is obtained, and this information is forwarded to a doctor or specialist through an expert system [5]. Medical devices for Internet of things (MD-IoT) are remotely accessed, where devices are connected to the Internet and sensors, actuators, and other communication devices can monitor patient health [6]. rough these devices, the patient information and data are transmitted by the expert system via gateway onto a secured cloud based platform where the information is stored and can be analyzed.
In developing countries like Pakistan, telemedicine is used to handle health issues. Telemedicine refers to the practice of caring for patients remotely when the provider and patient are not physically present with each other. Telemedicine is simply defined as "the remote delivery of healthcare services." Although telemedicine brings with it many benefits, it has some downsides as well. Providers, payers, and policymakers alike know that there are some gray areas that are difficult to keep up with. While the field will grow exponentially over the next decade, it will bring with it both practical and technological challenges.

Unclear Policies.
Because technology is growing at such a fast pace, it has been difficult for policymakers to keep up with the industry.
ere is great uncertainty regarding matters like reimbursement policies, privacy protection, and healthcare laws. In addition, telemedicine laws vary from state to state.
ere are currently 29 states with telemedicine parity laws, which require private payers to reimburse telemedicine services in the same way they would reimburse in-person visits. As additional states adopt parity laws, private payers may institute more guidelines and restrictions for telemedicine services. Although it is a step in the right direction, there is still uncertainty regarding reimbursement rates, billing procedures, and more.

Fewer
Face-to-Face Consultations. Several physicians and patients are finding it difficult to adapt to telemedicine, especially older adults. Physicians are very concerned about patient mismanagement. While advances in medicine have made it more efficient to use technology, there are times when system outages occur. ere is also the potential for error as technology cannot always capture what the human touch can.

Technology Is Expensive.
Healthcare systems that adopt telemedicine solutions can attest that they require a lot of time and money. Implementing a new system requires training, and sometimes staff members find it difficult to welcome this change. Practice managers, nurses, physicians, and more have to learn how to utilize the system so that practices can see the benefits. Although telemedicine is expensive in the beginning, healthcare systems should see a positive return on investment over time due to more patients and less staff. e major components of healthcare systems are identification, location, sensing, and connectivity as shown in Figure 1. Smart healthcare is implemented through a wide range of systems: emergency services, smart computing, sensors, lab on chips, remote monitoring, wearable devices, connectivity devices, and big data.
e IoT based systems are equipped with body sensor networks within telemedicine systems. ey include devices with special type of nodes that sense periodic difference of patient data; to check the ventilation conditions for the patients in rooms, sensors are used to collect data for different measures contributing to ventilation process of a room.
ese sensors are programmed to assess data of different ranges for temperature, pressure, humidity, and other significant environmental variables.
ese arrangements help to monitor the patient conditions remotely. e system can send periodic reports to the hospital and maintain the patient history. e hospital staff can view the data and prepare the treatment plan for the patient under observation. e second type of devices used in IoT healthcare systems is based on wireless sensor networks. e situation is more complex than the above scenario in terms of remote area patient monitoring and management task. In some situations, IoT is the most reliable and cheapest solution, and the relationship between different devices and interactive communication systems also needs to be investigated with more formal objectives.
Technology makes it easier to monitor the patient health by sending information to healthcare teams such as a doctor, nurses, and specialists through IoT (Internet of things) and mobile technologies. It would be helpful for professionals to save and gather patient data using storeand-forward method so that it is accessible at any time. e role and services of IoT in modern healthcare are depicted in Figure 2.
Internet of things (IoT) has different methodologies: smart healthcare, traffic control, smart dustbin, and vehicle parking. e health of patient is monitored by screen, so it is difficult to examine the patient all the time. erefore, here, patient's current status, i.e., pulse rate, temperature, position of body, blood glucose, and ECG, can be measured intensively by using sensors. e sensors are attached to Arduino UNO sensors that, when attached to the body Arduino board, get information and transmit it to the server. From this server, the information is forwarded to the doctor who advises for medicine.
Smart healthcare system is actually a technology in which treatments of patients are possible and can improve the standard of life [7]. In the concept of smart health, the e-health concept is also included which has commands on many technologies like electronic record management, smart home services, and intelligent and medical connected devices. Sensors, smart devices, and expert systems support the health practice for smart healthcare system.
Healthcare facilities in modern age are key challenge especially in developing countries where remote areas face lack of high-quality hospitals and medical experts. As artificial intelligence has revolutionized various fields of life, health has also benefited from it. e existing architecture of 2 Scientific Programming store-and-forward method of conventional telemedicine is facing some problems: (i) Need for a local health center with dedicated staff.
(ii) Need for medical equipment to prepare patient reports. (iii) Time constraint of 24-48 hours in receiving diagnosis and medication details from a medical expert in a main hospital. (iv) Cost of local health centers.
(v) Need for Wi-Fi connection.
In this paper, a novel and intelligent healthcare system is proposed; it is based on modern technologies like Internet of things (IoT) and machine learning. is system is intelligent enough to sense and process a patient's data through a medical decision support system. is system is low-cost solution for the people of remote areas; they can use it to find out whether they are suffering from a serious health issue and cure it accordingly by contacting near hospitals.

Related Work
e IoT term was initially coined in 1999 and got attention of community as one of the advanced technologies as it is a combination of sensors [8], imbedded electronics, and software components for decision support systems [9]. e IoT also supports smart systems with the help of lightweight networking connections and sensors data [10].
e IoT covers almost all domains such as home based smart systems like security, entertainment, and health; transport systems like smart parking, traffic, logistics emergency services, and highway management; community based systems like smart metering, business intelligence, surveillance, environment, and retail systems [10].
Healthcare is one of the primary concerns that need to be improved by IoT and related technologies [11]. IoT based healthcare consists of three stages of automation, namely, data collection by sensors, analytics based on the collected data, and decision making based on the collected data [12]. Healthcare systems have a lot of potential to be improved by IoT based systems.
ere are many different types of healthcare applications proposed by the researchers like e-health [13], community health [14], home health monitoring [15], telemedicine [16], and clinical support for doctors [17]. e primary contribution of this research is to provide devices that help in monitoring, management, and communication between different stakeholders in the healthcare domain. Table 1 shows the comparison of our work with related work. It shows that IoT based models provide much assistance to patients, but the time constraints can be reduced with the help of CDSS in the absence of medical staff. e methodology of IoTfor smart home, vehicle parking, and traffic control is different as compared to the health monitoring and management systems. e one obvious benefit is to monitor the patients 24/7 [26], which is almost impossible with manpower. e second goal achieved by IoT based solution is to monitor primary measures needs to determine the patient conditions, and treatment plan may include pulse rate, body temperature, respiratory rate, body position, blood pressure, ECG, and glucose level. ese sensor networks are connected through Arduino board to collect the information through attached sensors. e collected information can be transmitted to the server and further refined for decision making or decision support systems.
Investigational experiments are made with the assistance of sensors, and the patient's health is traced with Internet. What remains is the keen observation of pulse rate, eco of heart, pressure level, temperature, etc. If there is any disturbance or change in pulse rate or temperature, the system alerts the person taking care of the patient. rough the Internet, the system shows the pulse rate and temperature of the patient.
e IoT with mobile technology provides smart and easier ways to look after the patients under observation, their body movements, and health conditions and provides intelligent mechanisms to handle and share the relevant information with relevant stakeholders. e study [11] designed a system which collects patient data and sends it to cloud for further utilization by people investigating health domain. e multipurpose application may also provide the families of patients with regular updates regarding patient   [26] demonstrated a system to automatically gather data from patients and store the gathered data into cloud for permanent use to help health professionals. e system also helps the guardians of the patients to know the health information.
e study [27] proposes a system to track the patient records with the measures of pulse rate, ECO, blood pressure, and body temperature and maintain the patient history. If the system detects any abnormal behavior in the measures observed, it immediately alerts the emergency team to handle the situation.
e article [28] provides a survey on the smart healthcare. It discusses in detail the importance, application, requirements, and classification of healthcare along with the challenges, vulnerability, and security attacks. Healthcare system plays a vital role in increasing application by using connectivity technologies. e body sensor as a medical device is used to implement smart healthcare as shown in Figure 3. Smart telemedicine systems [15] are designed to monitor and manage the patient records by using sensors and microcontrollers. e system observes the body conditions and transmits the data to cloud servers. e patient condition is observed and stored on servers for further use and decision making. e study [29] investigates the challenges and consequences of remote health systems. e system comprises wireless transmission system which collects ECG, body temperature, and pulse rate of the patients in remote locations for severe problems like cardiogenic shock. e patient is monitored, and data is sent to the doctor to analyze them and prepare the treatment plan. is data also helps the supporting staff to take the necessary actions [30].
e study [31] states that health monitoring system is essential for a good health because health problems are increasing day by day like cardiac failure, lungs failure, and heart related diseases. Nowadays, IoT became a platform for many services and applications in which sensor nodes are used. e monitoring of patients that is continuously done by doctors is the base of revealed consequences of generic health monitoring system. e data analytics with big data enhanced the capacities of healthcare management system. e IoT healthcare is based on sensors, data collection devices, cloud services or connectivity provider devices, and mobile applications. e main concern of the physician is to separate the information of one patient from all other massive information of patients in the healthcare system. From such huge information, the physician makes critical decision about the patient health and suggests the treatment. He et al. concluded that altering patient information in real time is very important [32].
In order to build a smart system or application, the physical objects are connected by using IoT (Internet of things). e study used IoT for smart resource management system (SRMS) and intelligent chair system (ICS). An Arduino board is attached to the sensors, user ID is connected through RFID reader with the chairs, and chair allotment is managed and monitored by this system. e study [33] investigates the influence of medical system with remote patients. e patient monitoring is the main purpose of the system with a prototype application. e main service provided by this prototyping system is the monitoring of vital signs of patient health in ICU. e system is more effective for patients undergoing surgical procedures or other treatments that need intensive care and monitoring. e major benefits claimed by the authors of the study are low power profile sensor, wireless communication, and gateway for cheap communication. e system is also available on web domain for the patient caretakers to observe and be informed about the patient status.
A smart health monitoring system [34] is designed and implemented for ambulance coupled with communication channels.
e IoT was used with this smart healthcare system with the capability of low power sensors. e human body sensors are considered an efficient mode of communication for near field body sensor network application. e study [35] presents a generic model for IoT based healthcare system. e model identifies key components with an end-to-end IoT healthcare system. e authors claim that there was no end-to-end IoT based remote patient monitoring system. e system consists of five sensors, three of which were for monitoring patient conditions like pulse rate, respiratory rate, and body temperature. e other two sensors were used to monitor blood pressure and blood oxygen. e paper also identifies technological challenges and potential opportunities for remote healthcare monitoring and management system with IoT.
e study [36] presents the applications and potential usage of IoT in healthcare systems. e major task performed by this experimental study was to monitor the patient conditions and make it possible to use more optimized and accurate medical equipment. e basic architecture of 4 Scientific Programming the proposed system was based on sensor data and analyzes the patient data to make it possible to take basic decision for the purpose. e proposed system was collecting body temperature, respiration rate, and heartbeats and observing the patient body movements.
Wearable body devices [37] were used to design systems for monitoring and management of patients health. e study used body wearable sensors with IoT for smart patient monitoring and management. e focus of this study was to observe the patient health during surgical procedures, considering more useful and reliable data collection during such complex situations where human observational skills are not enough. e second major benefit was the reduction of equipment size for patient monitoring and wireless environment for patient care. Devices like Fitbit health monitor, Pebble smart watch, and Google glass are considered as modern devices for health monitoring and body care solutions. e important wearable devices are measuring the blood pressure which is used to assess the stress on a human mind. IoT imparts a valuable role to electronics and electrical devices to monitor and manage healthcare for humankind.

Architecture of Smart Healthcare System
e proposed smart healthcare system has the capability of decision making as per the observed conditions of the patient based on body temperature, pulse rate, and heartbeats.
is architecture is also energy efficient solution because it does not turn on all the sensors all the time. e algorithm used in the system will handle the usage of the sensors and control their cost and lifetime.
e proposed system addresses the issue of remote monitoring of patients and provides them with necessary treatment through experts in the hospital. e smart healthcare monitoring and patient management system proposed in this study consists of communication channels, embedded internal and external sensors, IoT server, and cloud storage and is supported by a gateway. ese activities are performed at different levels of refinement named application layer, management layer, network layer, and device layer. e architecture of the proposed system is presented in Figure 4. e architecture shown in Figure 4 is revised to show more details. e use of sensors and decision support system in telemedicine is a novel idea that improves working performance of telemedicine in rural areas.

Data Collection through Sensors for Smart Healthcare
System. With the help of IoT (Internet of things), the proposed system will be designed to implement a device in remote clinic. e device will take data of patient's heartbeats, body temperature, and blood pressure as input and will send it to the doctor concerned in the hospital. With the help of the data, the doctor will analyze the condition of the patient and will inform the remote area clinic crew about the necessary steps for patient's best treatment. e architecture presented in Figure 5 shows physical view with necessary components of the proposed system. e system consists of three sensors: body temperature sensor, pulse rate sensor, and heartbeat sensors. ese three sensors are connected through Arduino board to collect and classify the patient data. e data transmission is managed by communication and networking devices. e data analytics provides the decision-making facilities, and the fuzzy logic system is used in this arrangement to provide decision making. e doctor view provides the facility to hospital staff to monitor and communicate with the patient at remote place. e next subsection explains the fuzzy logic system implemented in this smart patient monitoring and management system for decision making. e fuzzy system is placed at the server and it will order the decisions regarding patient conditions and treatment and alert the doctor about the situation of the patient. e system is fully automated. e last subsection gives the technical details and description of the proposed system.  ere are the following problems: a single model is not enough, so two or more models are combined to solve that problem [38]. When different models are combined, they provide an effective solution to the problem, referred to as a hybrid system. A hybrid system is used to obtain indoor air quality using the fuzzy logic system and neural networks represented as the fuzzy neural network (FNN).
Neural networks focus on perceiving patterns, not on the logic of how the decision is made [39]. e fuzzy logic systems are good at explaining how the decision is made, but the inference rules are difficult task as prior knowledge is required [40].
ese limitations lead to the fuzzy neural network. Rules of fuzzy systems are acquired from the neural networks patterns [41].
is process begins with a "fuzzy neuron," and the process of the fuzzy neuron is divided into two steps as follows [42]: (i) Evolution of a fuzzy neuron model.
(ii) Development of the model and its algorithm that consolidate fuzziness into the neural system. Figure 6 indicates that neural inputs are provided for neural network that provides neural outputs. Neural outputs are the inference rules for the fuzzy interface that are stored in the system as a database and used for decision making and provide learning algorithms for the neural network as prior knowledge. Data of neural networks is gathered by propagation algorithm, so the procedure is slow. Including specific data into the neural network to clarify learning techniques is a difficult task. Fuzzy rules are explained, and they provide better performance, so fuzzy systems are used in restricted systems and knowledge acquisition is a difficult task. To solve these problems in solution design, the fuzzy rules are designed from numerical data. e neural network model named Approximate Reasoning Intelligent Control (ARIC) (see Figure 7) uses fuzzy neuron system. is fuzzy neuron system is trained by physical system forecast. It applies a fine-tuning refreshing data method to control the information base.  is is a perfect combination of fuzzy system with neural networks which boost the advantages of both decisionmaking methods. e framework can learn, and information utilized in the framework has the type of if-then fuzzy system. e rules are defined in advance, and the system can start without outside help, so it adapts quicker than a standard neural system. e framework named ARIC consists of AEN action position which is used to evaluate the network constructed through information base. e ARIC also contains ASN operation used for network selection. It is a multilayer neural network technique with fuzzy control system. e ASN component has two separate fuzzy interfaces in the first layer of the proposed system. e neural network is placed in the second layer. e neural system finds f [a, a + 1] operation, a part of confidence acquired through fuzzy inference. It should gain p (a + 1) using the amount of time denoted by t and the condition of framework t + 1. A modification module which is stochastic in nature improves the control with p(t) of fluffy part and the expected likelihood regrading decisions and produces the final output.
e unit c i of fuzzy inference is organized to assess the fuzzy guideline. e unit for information a j is a standard ancestor and acquires a unit u. e unit u communicates with the activity control. It is called defuzzified mixture which finishes the process. e information layer in this framework is fuzzified; it is monotonic in nature and has the capacities to utilize its components in ARIC model. e fuzzy tag is used in rules to balance local standards. e ancestor's enrolment is estimated by these standards and then duplicated and uses load joining with the association of information component. e qualities base of this system produces the final input. Each unit which was obscured is exceptional monotonic work communicating with final standard. e monotonicity of this function yields the output.
e process is effortlessly determined by the opposite capacity. is esteem is produced with the function of heaviness and with the association of hidden unit. e yield value is finally determined by weighted average method. e action operators used to evaluate the network, which tries to forecast the model activity.
e neural netowrk method used in this system is a typical feedforward neural network system. is feedforward neural network system is based on shrouded layer which collects the model states as information. It uses the blunder flag r from the physical model as a piece of helping data. e process gets v[t, t] of the proposed system produced as a forecast for future. is system relies on load of time t and the model constraints. e t is either t or t + 1. e conditions in this system are portrayed by fortification of higher values for information collected for decision making. e change in load is managed by support method that uses the output of the system states of the network and action state evaluation method. e engineering of ARIC was connected to postadjustment. It is also demonstrated that the model with the comprehension and its assignments. e signs and weights are real numbers with input neurons. e information does not change these signs. e yield is very much equivalent to the information. e signal a i may collaborate with the load to w i to construct these items.
(2) e input data d i is collected, by addition, to deliver the information, to the neuron. e neuron utilizes its exchange work f, which could be a sigmoidal function f(x) � (1 + e −x ) −1 , to figure out the output: is basic neural net, which utilizes duplication, addition, and sigmoidal f, will be called an ordinary neural net as shown in Figure 8.
In this event, we utilize different activities like a t-norm, or a t-conorm, to join the approaching information to a neuron; we get what we call hybrid neural net. ese modifications lead to fuzzy neural engineering dependent on fuzzy arithmetic tasks. is gives us a chance to express the sources of info a 1 , a 2 and the weights w 1 , w 2 over the unit intervals [0, 1]. e immediate fuzzification of regular neural Scientific Programming systems is to broaden association weights and additional inputs to fuzzy numbers as shown in Table 2.
A set of fuzzy rules were defined for the clinical decision support system used for IoT based telemedicine. ese rules are based on the facts and fuzzy data shown in Table 2.

Implementation Details.
A microcontroller board (Arduino) (see Figure 9), which has model number ATmega328, has 4 digital pins for input and output sources. e six i/o pins are PWM output. e microprocessor has 16 MHz with a power jack, USB connection. e other components on this microcontroller chip are analog input and reset button with ICSP header. e power is supplied by a USB interface, and Arduino is designed as open electronic platform. e basic settings on Arduino board are input/ output, set/reset button, sensor lights, and activating motor with output LED.
HC-05 Bluetooth module: To add wireless functionality of two ways (full duplex) to your project, HC-05 is very cool module. If communication is required between two microcontrollers, Bluetooth module is used as Arduino and can communicate with any device with the functionality of Bluetooth like a laptop or a phone. Bluetooth SSP (serial port protocol) module is designed for wireless transport. HC-05 can be used in a master or slave configuration that will be great solution for wireless communication.
Temperature sensor (see Figure 10) is used to detect heat stroke, body temperature, and fever. In wearable healthcare system, body temperature is used as a diagnostic tool. For the measurement of body temperature, thermistor type sensors are used. Temperature sensing accuracy is limited. e temperature sensor (see Figure 11) is integrated circuit which is used to measure the body temperature in centigrade. e temperature is shown as voltage output. e model number of this sensor is LM35. is model of body temperature sensor is considered better in performance than linear temperature sensor. e reason is that user need not convert Kelvin scale to centigrade scale by using this model. e sensor under this setup is very useful for remote sensing and calibrates Celsius scale.
e emergency conditions are measured through cardiac arrest, pulmonary embolism, vasovagal syncope, and pulse sensor. e pulse rate is primary measure for critical medical conditions and body fitness conditions. e pulse rate sensor is the most used and researched sensor in patient care and management domain. It is used to assess heartbeats and    8 Scientific Programming complex diseases like heart attack. e sensor works when the object places finger on input panel. e output is detected on output panel. e power required for this sensor is 5 volt direct current. e working principle of this module is based on blood flow rate through finger. e heartbeat sensor normal reading was 60-100 bpm. Figure 12 shows the used blood pressure sensor to measure the blood pressure of the patient and record it in an Excel sheet for further processing.

Experiment Setup.
e system is tested under the supervision of medical staff. Samples are collected from different areas of South Punjab using the proposed device. e data collected through sensors was forwarded to the server. e results are presented at the Arduino application and web browser. Table 3 shows the information about locations that we selected to test the proposed model. Almost eight different locations are selected for testing. e distance from BVH and testing period of selected locations are different. Table 4 shows the report sample of the patient that is generated on the server after receiving data collected through sensors and forwarded through smart device. e report has three sections: patient's data, sensor data, and symptoms of the patient. Table 5 shows the comparison of response time of the queries that are responded to by CDSS and by physician. Almost 270 queries were received on the server from selective areas. Most of the queries were treated by CDSS. Table 5 clearly shows that average response time of the queries that are responded to by CDSS is quite short as compared to the response time of the queries responded to by physician. e proposed system is low-cost and efficient solution for the people of remote areas; they can use it to find out whether they are suffering from a serious health issue and cure it accordingly by contacting near hospitals.

Dataset.
Using sensors and decision support system in telemedicine is a new idea, and Table 5 shows how it minimizes time constraint in comparison to the classical telemedicine method.

Used Tools and Data Analysis.
e use of analytics potentially improves the accuracy and permits early disease detection, personalization, and cost reduction in medical facilities. e following set of tools and libraries were used to process and interpret patient's symptoms and health data.
(i) Fuzzy neural networks based clinical decision support systems (ii) A set of three sensors to gauge patient's health data (iii) A GUI for recording input of patient's symptoms (iv) An Android mobile application for user interface e lab measurements and calculations are the primary concern and are important for current medical practice. On the other hand, wearable sensors have many advantages over lab and office measurements due to radial incorporation of multiple physiological measurements. is flexibility makes it possible to gather data. It is required with greater temporal    is arrangement provides vast and valuable opportunity for data analytics and machine learning methods. e machine learning algorithms identify correlations between data and clinical diagnoses trends.

Results and Discussion
e smart healthcare patient monitoring and management system is designed as intelligent system. e proposed system benefited from fuzzy logic system which is easy to use and implement for decision making. e organization of the proposed system is quite new by using sensors data and fuzzy based decision making. e implementation details are already presented in a previous section with the hardware used for this proposed system. e data collected through sensors was forwarded to the server. e results are presented at the Arduino application and web browser. e user may perform some actions against the information presented by the system. e three types of sensor data received from the sensors are further processed into output by fuzzy logic system. e classification is shown in Table 6; there were four classes of temperature measure (no fever, fever, high fever, very high fever) detected by different temperature ranges from 100°F to 105°F. Table 7 represents the three classes of pulse rate for a normal human being which are low, normal, and high. e pulse rate less than 60 per minute is considered as low pulse rate. e pulse rate between 60 and 100 is considered as normal pulse rate. e pulse rate greater than 100 is considered as high pulse rate. Table 8 represents the normal to abnormal range for blood pressure. e blood pressure 120/80 BP is considered as normal blood pressure. e blood pressure 129-140/ 81-89 BP is considered as high blood pressure. e blood pressure greater than 141/91 BP is considered as very high blood pressure. Table 9 represents the data collected through sensors at different intervals of a patient. e data ranges are also calibrated by Tables 6-8 Figure 13 represents the variation in data collected through temperature sensor, pulse rate sensor, and blood pressure sensor. e data ranges are also calibrated from Tables 6-9. e input data is collected and calibrated; in the second step, fuzzy logic is applied for the decision making for the determination of patient condition. Table 10 represents the calibrated output values for the inputted data. e fuzzy logic system takes the decision, and accuracy of the decision is measured (Figure 14). It is shown in Table 10 that accuracy of the system is from 94% to 100% for the proposed system. It shows that the proposed system is working as per the rules defined for the decision making of patient care and management system. e accuracy of the proposed system is measured by the formulae in e accuracy of the proposed system is calculated by (5). In (5), μ(ai) is the accuracy in the percentage for the data in experiment, and n is the number of experiments. e average accuracy achieved in this dataset is 97%.
e experimental results show that intelligent and smart decision making makes the sensor based IoT system convenient and feasible. e methodology used with IoT improves the performance and throughput of the system. e percent error of the results is calculated by using the formula shown in (6). Here, the accepted value is required accuracy, and experimental accuracy is achieved accuracy of the experiments.
e data depicted in Figures 15 and 16 show the accuracy and reliability of the achieved results.
Section 2 discussed many systems consisting of sensors with IoT.
e proposed system is the first patient care monitoring and management system which uses fuzzy logic system to determine the patient conditions and decide the possible treatments. e results in Tables 9 and 10 show that our approach performs better with the help of sensors and decision support systems. e fuzzy logic system decision making enhances the usefulness and the accuracy of the proposed system.
is system is novel in terms of using intelligent decision making with sensor and IoT based system. e results show that the proposed approach is more accurate, time saving, cheap, and easy to use. e proposed system has the following contributions.
is is the first approach that presents a smart irrigation system for tunnel farming.  -1  30  3  27  3  P-2  43  13  11  32  P-3  61  7  50  11  P-4  38  10  25  13  P-5  42  6  28  14  P-6  55  5  50  5 10 Scientific Programming     (i) e previous approaches for patient care and remote monitoring were using simplistic decision making while the proposed method is using fuzzy logic system for decision making. (ii) e proposed method uses sensors to collect data while most of the previous systems were using video data for monitoring and communication.
(iii) Previous methods were also using manual patient treatment with doctors for determination of patient conditions, while the proposed system uses intelligent decision-making approach for this purpose. (iv) A knowledge base is also established to determine patient conditions.

Conclusions and Future Work
e proposed method consists of sensors for body temperature, pulse rate, and blood pressure to assess the condition of the patient under observation. For determining the possible conditions and cure, the system used a knowledge base and fuzzy logic system for intelligent decision making for patient care, monitoring, and management. e proposed method also tries to improve the effectiveness of the system for patient care and monitoring in terms of time, cost, and manpower utilization. e proposed approach addresses the patient monitoring with sensors and shows reasonable accuracy and cost savings with respect to the systems in use. e study was tested on a small sample of the population and found to be effective, accurate, and efficient for the purpose. e proposed approach is generalized so far, and it is possible to customize it for more critical conditions like operation theatre, intensive care unit patients, newborn babies, and more complex patients. ere are three contributions of this work, summarized in Section 5: (1) e novel idea of using sensors with conventional telemedicine (2) e new and improved way of diagnosis using fuzzy neural networks based approach (3) e use of decision support system to minimize time constraint of conventional store-and-forward method of telemedicine in rural areas e results also show that fuzzy logic system is good choice for intelligent decision-making systems and it also provides a lightweight solution in terms of its devices and software components. In the future, we propose the use of more sensors to get more patient data for better and improved diagnosis.
Data Availability e datasets used in the experiments and discussed in the paper are available from the corresponding author on reasonable request.

Conflicts of Interest
None of the authors have conflicts of interest related to the research and results presented in this paper.