**Abstract**

Artificial intelligence (AI) approaches have recently made major impacts in the healthcare field, igniting a heated discussion over whether AI physicians would eventually replace human doctors. Human doctors are unlikely to be replaced by machines anytime soon, but AI may assist physicians make better clinical decisions or even replace human judgment in certain areas of healthcare (e.g., radiology). The increased availability of healthcare data and the rapid development of big data analysis tools have made recent productive applications of AI in healthcare possible. When driven by appropriate clinical queries, powerful AI systems may find clinically valuable information hidden in enormous volumes of data, which can help clinical decision making. The internet of things (IoT) is a network of many interconnected things that may communicate with one another across a computer network. We may get information from this global network by connecting sensors to it. Thanks to the computer network, we can obtain this information from anywhere on the planet. The internet of things (IoT) enables physical objects to connect to the internet and create systems using various technologies such as near-field communication (NFC) and wireless sensor networks (WSN).

**Keywords:** WSN, artificial intelligence, deep learning, IoT and health sector

## **1. Introduction**

Wireless sensor networks (WSNs) have been shown in a range of applications during the past several years. A WSN is a collection of wireless devices that are typically small, battery-powered, and self-contained (also known as nodes). These devices include on-board computers, communication, and sensing capabilities, enabling them to monitor and transfer data on physical or environmental factors like temperature, sound, and pressure through a unidirectional or bidirectional network. The nodes are made up of a low-power CPU with limited processing, a memory device with limited storage capacity, a radio transceiver with low-power internal/external antenna, a low-data rate and limited range, sensors (scalar, cameras, microphones), and a power supply (batteries and solar cells). In most cases, each device is powered by a battery. Examining each of these gadgets individually may seem to be pointless.

WSNs play an important role in military applications. The increasing deployment of WSNs drives sensor network research. WSNs, on the other hand, maybe used for environmental monitoring, habitat monitoring, classroom/home monitoring, structural monitoring, and health monitoring, among other things. Based on its characteristics, each application has its own design concept and execution to meet its own demands. The qualities of WSN, together with technology improvements, give the greatest benefits to healthcare. A sensor network designed to identify human health indicators is known as a body sensor network (BSN). Because BSN nodes are directly attached to the human body, considerable vigilance is required. For many days, several healthcare applications need the BSN to collect patient data indefinitely without user intervention. Such applications must take into consideration the energy constraints of sensor networks [1–15].

The challenges of WBS networks healthcare is a need for everyone's quality of life in today's environment. The population of developed countries is growing at a pace that is proportional to the government's budget. Healthcare systems will face challenges as a result of this. One of the most difficult challenges is making healthcare more accessible to elderly people who live alone. In general, health monitoring is done on a check-in basis, with the patient remembering their symptoms; the doctor performs tests and develops a diagnosis, then monitors the patient's progress throughout therapy. Wireless sensor network applications in healthcare provide inhome assistance, smart nursing homes, clinical trials, and research advancement. Let's take a look at some of the challenges and basic features of BSNs before we get into the medical uses of this technology. In healthcare applications, low power, limited computing, security and interference, material restrictions, resilience, continuous operation, and regulatory requirements with elderly people are all issues.

Modern modelling approaches such as fuzzy logic (FL) and artificial neural networks (ANN) are frequently employed in hydrological modelling for a number of applications. The main benefit of these techniques is that they are not constrained by restrictive assumptions such as linearity, normality, or homoscedasticity and that they provide promising and acceptable alternatives to classical stochastic hydrological modelling in time series analysis, such as the auto regressive moving average exogenous (ARMAX) model (autoregressive moving average with exogenous inputs). When applied to hydrological systems, however, traditional stochastic models have many drawbacks, the most notable of which are short-time dependence and the normality assumption, as previously mentioned. Hydrological processes are well recognised for defying these assumptions. ANNs have been recognised as a tool for modelling difficult nonlinear systems and are widely used for hydrological prediction. Their applications range from forecasting hourly and daily river stages to further FL modelling applications in: rainfall-runoff groundwater; and time series modelling [6–10]. Fuzzy neural networks (FNN) are a unique approach for river flow prediction that blends FL and ANNs.

Because they can estimate any continuous function to any degree of accuracy, the Mamdani and tidal sequence (TS) systems are referred to as universal approximators. The smaller the error tolerance, the more fuzzy rules are necessary. In practise, fuzzy models can always yield nonlinear modelling solutions when the required number of fuzzy sets and rules are provided. In comparison to the TS approximator, the Mamdani approximator has the benefit of being able to use both numerical and verbal data produced from human knowledge and experience.

When nontrapezoidal/nontriangular input fuzzy sets are used, TS fuzzy systems may be more cost-effective than Mamdani fuzzy systems in terms of input fuzzy sets and fuzzy rules. They discovered that TS and Mamdani fuzzy systems have comparable minimal system configurations when trapezoidal or triangular input fuzzy sets are used. The performance of Mamdani (linguistic) and TS (clusteringbased) fuzzy models was examined in the spatial interpolation of mechanical features of rocks. In terms of prediction performance, the clustering-based TS fuzzy modelling technique beats the Mamdani model, according to their results. The main purpose of this study is to develop a hybrid model for streamflow forecasting

#### *Artificial Intelligence and IoT: Past, Present and Future DOI: http://dx.doi.org/10.5772/intechopen.101758*

that incorporates both a genetic algorithm and fuzzy logic. Genetic algorithms and neural networks (NNs) were used to train the Mamdani and Takagi-Sugeno fuzzy logic modelling systems, respectively. According to the comparison, the Mamdani approach beats standard methods in terms of avoiding restrictive assumptions, insight into the modelling structure, and modelling accuracy.

Health is always a major concern as the human race improves in terms of technology. The current coronavirus outbreak, which has hurt China's economy to some extent, exemplifies how healthcare has become more vital. In areas where the pandemic has spread, it is always preferable to monitor these people using remote health monitoring equipment. As a consequence, the current solution is a health monitoring system based on the IoT. Remote patient monitoring provides for patient monitoring outside of typical clinical settings (for example, at home), increasing accessibility to human services offices while cutting expenses. This project's primary purpose is to design and build a smart patienthealth monitoring system that uses sensors to monitor patient health and the internet to alert loved ones if there are any issues. The purpose of developing monitoring systems is to reduce healthcare costs by reducing the number of needed inspections. In an IOT-based framework, different consumers may be able to see sensitive aspects of the patient's blooming. Because the information should be double-checked by visiting a website or URL, this is the case. In GSMbased patient observation, the rising parameters are communicated utilising GSM through SMS techniques.

In most rural areas, the medical facility would not be within walking distance of the residents. As a consequence, the majority of people must attend doctor's visits, stay in hospitals, and undergo diagnostic testing procedures. Each of our bodies uses temperature and pulse recognition to determine our overall health. The sensors are linked to a microcontroller that monitors the state and, as a result, is interfaced to an liquid crystal display (LCD) as well as a remote connection that may send alarms. If the framework detects any unusual changes in heart rate or body temperature, it warns the client through IoT and also shows subtle features of the patient's pulse and temperature on the web in real-time. An IoT-based tolerant wellness monitoring framework efficiently leverages the web to monitor quiet wellbeing metrics and save time in this manner. There is a significant ability to disregard any form of minor health concern, as shown by changes in important components such as body temperature, pulse rate, and so on in the early stages.

When a person's health condition has developed to the point that his or her life is in peril, they seek medical assistance, perhaps wasting money. This is crucial to consider, especially if an epidemic spreads to a place where doctors are unavailable. Giving patients a smart sensor that can be monitored from afar to avoid the spread of sickness would be a realistic solution that might save many lives. Sensors monitor physiological signs, which are transformed into electrical impulses when a patient enters the healing centre. The basic electrical flag is then updated to an advanced flag (computerised data), which is then stored in RFID. To transfer computerised data to a local server, the Zigbee Protocol is employed. For this framework, Zigbee is a good choice. In this location, there are the most cell hubs. It's better for gadgets that are smaller and use less energy. A nearby server sends information to the therapeutic server through WLAN.

When the data is transmitted to the therapeutic server, it checks to see whether the patient already has a medical record, then adds the new information to that record and sends it to the specialist. If the patient has not had any prior treatment records, the server creates a new ID and stores the data in its database. The IoT is becoming more widely recognised as a feasible solution for distant value tracking, notably in the field of health monitoring. It permits the secure cloud storage of

individual health parameter data, the decrease of hospital visits for routine checks, and, most critically, the remote monitoring and diagnosis of sickness by any doctor. In this research, an IoT-based health monitoring system was developed. Body temperature, pulse rate, and room humidity and temperature were all measured by sensors and shown on an LCD. The sensor data is then wirelessly sent to a medical server. These data are then delivered to a smartphone with an IoT platform that belongs to an authorised person. Based on the findings, the doctor diagnoses the condition and the patient's current state of health.

The advantages of AI have been extensively researched in the medical literature. Using complicated algorithms, AI can 'learn' characteristics from a large quantity of healthcare data and then apply the results to clinical practise. It might potentially include learning and self-correcting capabilities to improve accuracy as input changes. AI systems that give up-to-date medical information from journals, textbooks, and clinical practises may support physicians in providing proper patient care. In addition, an AI system might help to reduce diagnostic and therapeutic errors, which are inevitable in human clinical practise. Furthermore, an AI system extracts important data from a large patient population to assist in the generation of real-time health risk warnings and prediction findings [11–15].

In this chapter, we look at the current level of AI in healthcare and predict its future. First, we will go over four crucial factors from a medical researcher's perspective: (1) Justifications for AI use in healthcare, and (2) The sorts of data that AI systems have examined AI devices may be classified into two classes, according to the previous description. The first category includes machine learning (ML) approaches that analyse structured data such as imaging, genomics, and EP data. ML algorithms are used in medical applications to cluster people' traits or forecast the probability of sickness consequences. The second category includes natural language processing (NLP) tools, which extract information from unstructured data such as clinical notes and medical journals to supplement and enrich organised medical data. Texts are converted into machine-readable structured data, which may then be analysed using ML algorithms.

### **2. Artificial intelligence in health sector**

Lung- and heart-related ailments are at the top of the list of health-related problems/complications. Wireless technology, which is a relatively new concept, may be used to track one's health. Wireless health monitoring systems make use of wearable sensors, portable remote health systems, wireless communications, and expert systems, among other technologies. Life is valuable, even a single life is valuable, but people are dying due to the lack of health facilities, sickness awareness, and sufficient access to healthcare systems. In all conditions, the IoT assists in the identification of diseases and the treatment of patients. In IoT healthcare systems, there are wireless systems in which different applications and sensors are linked to patients, information is gathered, and the information is communicated to a doctor or specialist through an expert system. Medical devices for the Internet of Things (MD-IoT) are connected to the Internet and use sensors, actuators, and other communication devices to monitor patient health. The expert system uses these devices to transfer patient data and information to a secure cloud-based platform, where it is stored and analysed.

Telemedicine is the practise of caring for a clinician and a patient while they are not physically present with each other. 'The delivery of healthcare services at a distance' is how telemedicine is defined. Telemedicine provides a variety of benefits, but it also has many disadvantages. Providers, payers, and politicians

#### *Artificial Intelligence and IoT: Past, Present and Future DOI: http://dx.doi.org/10.5772/intechopen.101758*

all recognise the difficulty of navigating some grey zones. While the sector will rapidly develop over the next decade, it will also provide practical and technological challenges. IoT is the most trustworthy and cost-effective alternative in certain circumstances, and the connection between different devices and interactive communication systems also need further formal examination. By communicating information to healthcare teams such as doctors, nurses, and specialists, IoT (Internet of Things) and mobile technologies make it easier to monitor a patient's health. Professionals would benefit from using the store and forward method to save and collect patient data that could be accessed at any time.

A smart healthcare system is a piece of technology that enables patients to be treated while also improving their overall quality of life. The smart health concept incorporates the e-health concept, which emphasises a number of technologies such as electronic record management, smart home services, and intelligent and medically connected items. Sensors, smart devices, and expert systems all help to create a smart healthcare system. Healthcare facilities are a big concern in today's globe, especially in developing countries where rural areas lack access to high-quality hospitals and medical experts. Artificial intelligence has benefited health in the same way it has benefited other aspects of life. The IoT is expanding its capabilities in many areas, including smart cities and smart healthcare. The IoT is now being used in healthcare for remote monitoring and real-time health systems. Controlling and preventing catastrophic events, such as the one that happened in 2020 when the coronavirus disease (COVID-19) ravaged the world, maybe done via IoT technologies without imposing severe restrictions on people and enterprises. COVID-19, unlike SARS in 2003, causes respiratory symptoms and seems to be more contagious. One way to restrict viral transmission until a vaccine is developed is to keep a close eye on physical (or social) distance. Improved surveillance, healthcare, and transportation networks will make it less probable for contagious diseases to spread. An IoT system combined with artificial intelligence (AI) may give the following advantages when considering a pandemic: (1) utilising surveillance and image recognition technologies to enhance public security, (2) using drones for supply, transportation, or disinfection, and (3) leveraging AI-powered apps and platforms to monitor and limit people's access to public places.

In healthcare, an IoT system is often made up of a number of sensors that are all connected to a computer and allow real-time monitoring of the environment or patients. AI-assisted sensors might be employed in the case of a pandemic to help predict whether or not people are sick based on symptoms like body temperature, coughing patterns, and blood oxygen levels. The ability to monitor people's locations is another useful function. During an outbreak of severe disease, tracking the distance between people may provide vital information. Using technologies like Bluetooth, we can get a good estimate of how much distance people maintain when walking in public places. This information might be used to target people who are not physically separated by a specified distance, such as 2 m, to stop the virus from spreading further. To prevent the abuse of personal information, security and data management must be addressed throughout the development of such platforms. Following a pandemic, governments may try to use these platforms and data for long-term monitoring to control and monitor people's behaviour.

One of the problems with traditional medical diagnosis is its inaccuracy and imprecision, which has resulted in the deaths of thousands of people. The development of various algorithms, models, and technologies to ensure accuracy and precision has considerably reduced the number of people who die every day in hospitals, and fuzzy logic, a branch of artificial intelligence, is one of these technologies. Medical diagnostic processes are carried out with the use of computer-assisted

technologies, which are growing more common by the day. These systems are based on AI and are designed to diagnose as well as recommend treatments based on symptoms. Many decision support systems (DSSs) have been developed in the medical field, such as Aaphelp, Internist I, Mycin, Emycin, Casnet/Glaucoma, Pip, Dxplain, Quick Medical Reference, Isabel, Refiner Series System, and PMA, to assist medical practitioners in their decisions for diagnosis and treatment of various diseases.

The medical diagnostic System (MDS) is used to diagnose various ailments in an expert system like this. Fuzzy logic was chosen as the AI tool in the recommended system since it is one of the most efficient qualitative computational approaches. Fuzzy logic has been proved to be one of the most effective techniques to offer clarity to the medical field. Medical applications include CADIAG, MILORD, DOCTORMOON, TxDENT, MedFrame/CADIAG-IV, FuzzyTempToxopert, and MDSS, to name a few.
