ALL Metrics
-
Views
-
Downloads
Get PDF
Get XML
Cite
Export
Track
Method Article

Turning any bed into an intensive care unit with the Internet of things and artificial intelligence technology. Presenting the enhanced mechanical ventilator

[version 1; peer review: 1 approved, 2 approved with reservations]
PUBLISHED 23 Dec 2022
Author details Author details
OPEN PEER REVIEW
REVIEWER STATUS

This article is included in the Bioinformatics gateway.

This article is included in the Artificial Intelligence and Machine Learning gateway.

Abstract

The recent Coronavirus disease 2019 (COVID-19) pandemic displayed weaknesses in the healthcare infrastructures worldwide and exposed a lack of specialized personnel to cover the demands of a massive calamity. We have developed a portable ventilator that uses real-time vitals read from the patient to estimate -- through artificial intelligence -- the optimal operation point. The ventilator has redundant telecommunication capabilities; therefore, the remote assistance model can protect specialists and relatives from highly contagious agents. Additionally, we have designed a system that automatically publishes information in a proprietary cloud centralizer to keep physicians and relatives informed. The system was tested in a residential last-mile connection, and transaction times below the second were registered. The timing scheme allows us to operate up to 200 devices concurrently on these lowest-specification transmission control protocol/internet protocol (TCP/IP) services, promptly transmitting data for online processing and reporting. The ventilator is a proof of concept of automation that has behavioral and cognitive inputs to cheaply, yet reliably, extend the installed capacity of the healthcare systems and multiply the response of the skilled medical personnel to cover high-demanding scenarios and improve service quality.

Keywords

Technology in healthcare, Artificial intelligence in medicine, Covid 19 mitigation, Intense care units everywhere, mechanical ventilators, AWS implementations, Evalu@ implementations, Artificial Neuronal Networks in medicine

Introduction

Currently, the world population is passing through one of the most significant viral outbreaks in the modern era. The infectious agent, severe acute respiratory syndrome Coronavirus 2 (SARS-CoV-2), spreads fast and uses humans as vectors, a threat to our kind never seen before.1

SARS-CoV-2 produces Coronavirus disease 2019 (COVID-19), a health condition characterized by respiratory infections. The level of affliction ranges from simple cold symptoms to severe illnesses that lead to general failure and death.2

The Centers for Disease Control and Prevention (CDC) reported 624,088,072 confirmed cases and 6,552,725 deaths caused by COVID-19 worldwide by October 4th, 2022.3

Approximately 80% of the world’s positive cases for COVID-19 recover from the disease without medical treatment.4 The other 20%, including young individuals without pre-existing conditions, the elderly, and people with chronic illnesses, might present a severe affliction that could compromise the immune system and organs such as the lungs, heart, kidneys, liver, and brain.5,6

The rapid spreadability of SARS-CoV-2 made contamination intensify over time, with exponential growth trending.7 No country or health system in the world proved to have the infrastructure, resources, and response capacity to attend to the demand for care during contagion peaks.8 With the intense care units (ICU) filled and medical personnel exhausted, any bed turned into a potential care unit; however, ventilators and specialized professionals are more challenging to find.9 The scarcity of ventilators and specialized personnel repeated with every peak suffered worldwide.

When developing this work, South Korea, Vietnam, and Germany passed through a new peak of contamination with more than 200,000 new cases per day and more than 70 causalities in the same period, even when the cited countries reported vaccination done to 100% of the population.10

This research reviewed mechanical setups, programmable electronics, embedded telecommunications, application programming interface (API) services, artificial intelligence (AI) implementations, and human respiratory variables to build a low-cost and highly reliable mechanical ventilator (MV). After reading the sensors, the device integrates a neuronal network capable of making control decisions in a closed loop that modifies the range and operating frequency of the device.

Additionally, the device reports the readings and control actions wirelessly to a data centralizer that can display the variables in real-time to any screen – including cell phones – lessening the need for dedicated and specialized personnel working in close contact with the infectious patients.

Methods

This section describes the construction of a non-invasive MV controlled by a feedback artificial neural network (ANN). The developed MV reads the patient’s heart rate, oxygenation percentage, and respiratory pressure; and dynamically defines the working frequency of the ventilator and, consequently, the amount of oxygen to deliver.

Since low-cost sensors are involved in the MV’s operation, we trained an ANN with preconceived ‘true’ data to correct the outputs; therefore, the ANN makes the right decisions with an acceptable low rate of uncertainty regarding oxygen supply. The ventilator and the ANN are connected wirelessly within an AD-HOC network in a star topology that facilitates data transferring between a theoretically unlimited number of nodes. In addition, the effort to link new devices is low compared with firmware-based protocols such as the message queuing telemetry transport (MQTT).11 Since the system uses the transmission control protocol/internet protocol (TCP/IP) protocol, the number of available nodes depends on the IP address class, the most common being the C class with 254 available nodes (assuming no subnetting). Recall that TCP/IP uses 32 bits logic addresses classified in A, B, C, D and E depending on how many octets are employed for allocating hosts and their purpose. Class C addresses are the ones with less hosting allocation capabilities and give Internet access to household residences. Since C class addresses reserve one octet for hosts, the current residential infrastructure can allocate nd = 254 devices (nd = 28 − 2).

Ventilator’s general description

A programmable device like BeagleBone Black (BBB) is the local brain of the system, synchronizing the sensors (inputs) and the actuator (output). This local brain interchanges information with the Amazon Web Service (AWS)[1] that allocates the ANN and returns operating configurations. The BBB and the AWS use an ESP32 chip as a data gateway with a universal asynchronous receiver transmitter (UART) to connect the BBB and TCP/IP on the side of the ANN. Using a homemade API, the gateway also pushes the estimated operation points, and the patient’s vitals to the Evalu@ service.12 Since medical applications do not admit information lost (insufficient information or delayed data due to packets lost will affect the decision stage and eventually the patient’s health), we sacrificed speed and preferred reliability by choosing TCP instead of the user datagram protocol (UDP). Recall that UDP is a faster protocol with no recovery mechanisms in case information packets are corrupted or lost.13 The firmware is written in C, ensuring faster operation than other programming platforms.14 See a general diagram of the AI-based ventilator in Figure 1.

80acbb39-f317-4469-93e5-4ec8ba43153c_figure1.gif

Figure 1. General diagram of the mechanical ventilator.  The system has access to Amazon Web Service (AWS) for on-demand intelligent setup and Evalu@ for warning and reporting purposes to the side of the specialists and patient's relatives. ANN, UART, DB, and L# stand for artificial neuronal network, universal asynchronous receiver-transmitter, Database, and Lambda specification in AWS, respectively.

Device mechanics and interfaces

We designed the core structure of the ventilator with a plastic resin to provide resistance to the mobile parts while making the device portable and durable. A servomotor connected to the scissors-like levers activates the degree of freedom associated with the scissors’ opening angle that ultimately presses a flexible container. A predefined rotation setup exerted by the servomotor pushes the needed air to the pumping container, thus, to the patient. The system controls the air’s volume and delivery frequency with this arrangement. The ventilator has a buzzer, lighting, and a 16x2 matrix screen to account for in-site alarms and state displaying. See the ventilator’s physical appearance in Figure 2.

80acbb39-f317-4469-93e5-4ec8ba43153c_figure2.gif

Figure 2. Front (panel A) and superior (panel B) views of the mechanical ventilator.

Device’s Sensors

The MPX2010 differential pressure sensor, developed by Freescale semiconductors ®, has a linear transfer function f = 2.5/1[mV/KPa], and an output voltage span of [0-25 mV].15 The sensor yields a pressure value (Pi) by subtracting the input (P1i) – connected indirectly through the pumping system to the patient’s airways – from the value exerted in the vacuum input (P2i). An adjusting factor Af = 0.17 affects every Pi in the P array to translate the readings from KPa to MBAR units (See Equation 1).

(1)
Pi=P1iP2iAfiP

The patient’s pulmonary pressure is calculated from the maximum values in the P array.

Regarding the heart rate (HR) and oxygen saturation, the MAX30100 chip developed by Maxim Integrated ®, reads both variables. It uses a visible red light (660 nm) and a receptor to capture intensity reflections after hemoglobin changes due to heart pulsation.16 As for the oxygen saturation, the chip implements a second source of light working at the near-infrared spectrum (880 nm). The module determines the absorption spectrum of oxygenated and deoxygenated hemoglobin with the two light sources that produce interchange reflection peaks at the respective wavelengths. The MAX30100 digitizes the reflections of both light beams with a resolution of V cc/216 and returns the sensed variables in human-readable format through the Inter-Integrated Circuit (I2C) interface.

Artificial neural network construction

We designed a six-layered ANN (See Figure 3). The input layer has three nodes to receive the heart rate, oxygenation percentage, and respiratory pressure. The output layer consists of one node, which provides the dynamic operation setup for the servomotor and ultimately controls the oxygen yield to the patient. The training data consisting of 1000 formulations with the three used features, and the supervising variable is available online here.17 The training data was gathered from ICU records performed by Instituto de Genetica (Genesis S.A.S). The data is fully anonymized and respect the health insurance portability and accountability act (HIPAA)18 directives.

80acbb39-f317-4469-93e5-4ec8ba43153c_figure3.gif

Figure 3. Artificial neural network (ANN) architecture.

The initial layer receives the three vitals of the patient, and the output node returns the operation point that controls the amount of delivered oxygen.

The ANN uses two activation functions, namely Sigmoid and Identity, consequently, the system has a dynamic input/output ratio. The activation functions simulate the evoked potential that controls the release of neurotransmitters within the neurons in alive subjects. In the ANN context, the identity function is a mathematical activation model governed by the expression f(x) = x; therefore, it transfers the input to the output in a range (,). The sigmoid or logistic activation function, also known as a binary transfer, is governed by the expression fx=11+ex and its range is (0, 1). The training process consists in adjusting the nodes’ outputs, so the combined work of the network yields numbers close to the supervising values. Backpropagation with a controlled gradient descent was implemented to modify the weights in the internal ANN layers while searching for optimization. The controlled gradient descent is accomplished using the Levenberg-Marquard strategy (trainlm)19 that converges fast to optimization even when a wrong initial optimization guess is selected and provides mechanisms to avoid oscillations around the optimal value. The trainlm, is a distance minimization algorithm that receives an initial guess from the user and interactively updates a variable β. The method is fully implemented in python and is available in https://github.com/jjhartmann/Levenberg-Marquardt-Algorithm

Data collection and integration

Sharing and processing the sensor data between the ESP32 and the AWS was accomplished through the lambda specification.20 We start by provisioning a Virtual Private Cloud (VPC)21 with the necessary utilities to connect and display the reports of the services to be consumed. Within the VPC architecture, one lambda triggers the microservice to establish the connection and feed the ANN with the three patient vitals. A second lambda triggers the microservice to obtain the ventilator setup yield by the ANN, which is delivered to the device’s hardware.

Data storage

Patients’ data and actions taken by the ANN are sent to the Evalu@ service for storing, querying, analysis and reporting. This centralizer allows custom reports creation and online analysis through intuitive Excel templates, providing the flexibility to produce, in real-time, material to healthcare providers and relatives of the patients as well. A copy of the control values yielded by the ANN is also stored in the Dynamo DB service22 of the AWS.

Testing process

After establishing the ANN architecture, we ran a standard validation process by comparing the supervisor factors with the outputs yielded by the ANN. For the validation, we performed a three-folded exercise using 30% on the training data referred to in section Artificial neural network construction. We randomly selected the data for each folding. We obtained a 95.79% accuracy during these testing sessions using a Sigmoid activation function. The accuracy index decreased to 94.01% when using the Rectified Linear Unit (ReLU),23 and the best performance regarding accuracy appeared when using a combination of Sigmoid and Identity functions among the ANN layers.

Evalu@ configuration

The Evalu@ service (here) provides an intuitive mechanism to configure any tracking/monitoring scheme. The platform interprets the entries of three editable Excel files to create containers for the items to be evaluated, the tracking instruments, and the analysis that should be performed with the gathered data. Figure 4 presents the configuration files for the current application and Evalu@’s starting interface once the setup is finished.

80acbb39-f317-4469-93e5-4ec8ba43153c_figure4.gif

Figure 4. Evalu@ configuration.

Panels A, B, and C show the configuration files used to create the containers, the tracking instruments, and the indexes’ visualization, respectively. Panel D displays the main screen after setup completion.

Evalu@ is needed to present the data appealingly to users other than developers. It can also allocate the services executed now in AWS. However we leave this to further developments. Readers can now reproduce our methods using AWS and the provided code. If requiring the use of Evalu@, code C08 in the Zenodo repository displays the API to do so, and users testing the presented methods can use the Evalu@ service for free.

Results

ANN performance and solution timings

The Table 1 shows the performance of the python ANN implementation with the selected configuration, using a combination of Sigmoid and Identity functions among the ANN layers.

Table 1. Artificial neural network performance.

OperationAccuracy (%)Error Rate (%)
Fold 193.36.6
Fold 294.06.0
Fold 395.84.1

We ran data processing tests on the services exposed on the ESP32 (gateway) regarding the AWS and Evalu@ services. The records in Table 2 are the response times for one ventilator.

Table 2. Device's response times. The response times include query preparation, request delivery, and processing with the ventilator connected to a residential network with 20.14 and 12.23 Mbps download and upload speeds, respectively. The registered time is the average of five readings. A human request triggers the services labeled with a * in Evalu@.

ServiceActionTime (ms)
AWSSend vitals323.00
Receive respirator setup361.05
Evalu@Send data (vitals, setup)311.15
Display data *458.35
Trigger alarm124.74
Report generation *1065.12
Setup alarms *298.06

With the records in Table 2, we estimated the bursting capacity of the solution by simulating 200 concurrent users, adding to a total latency of 12 seconds. Recall that Internet connectivity in residences, where this development is intended to work, can allocate a maximum of 254 devices; however, since wifi performs like having the devices connected through a hub, latency can exponentially deteriorate when the technical limit of connections is reached.

AWS records on a patient

The VPC at AWS presents an interface to visualize the system’s architecture and implemented jobs. Figure 5 shows the AWS API gateway flow map for processing the breathing frequency.

80acbb39-f317-4469-93e5-4ec8ba43153c_figure5.gif

Figure 5. Architecture of the system from the Amazon Web Service perspective to yield the breathing frequency.

The AWS produces control values to set the ventilator’s operation. We store the control setups produced by the ANN in the Dynamo DB as shown in Figure 6.

80acbb39-f317-4469-93e5-4ec8ba43153c_figure6.gif

Figure 6. In panel A, the configuration of the table in the AWS Dynamo DB to store the estimated operation points. In Panel B, some operation point records.

Evalu@ records on healthy volunteer

Although AWS can intuitively present the generated information, their displaying schemes are intended for development and debugging. Not to mention the commercial strategy that charges the user after reaching an established quota. Instead, Evalu@ has mechanisms to present the data to non-specialized users. We employ Evalu@ to present physicians and patients’ relatives with real-time information on vitals and control variables (see Figure 7).

80acbb39-f317-4469-93e5-4ec8ba43153c_figure7.gif

Figure 7. Evalu@ displaying vitals and the control signal in the timeline.

The vitals are presented without alarm levels. The control signal has all the levels activated. It generates mail alarms – in addition to those generated in-site – when the control signal is above or below the established levels.

Ventilator operation without exceptions

The Figure 8 resumes one loop operation of the system and provides step-by-step linking to the code deposited in https://doi.org/10.5281/zenodo.7400986. The system starts by configuring the ports and screen (C01). Then, it will read and process the patient’s vitals (C02-C03). The ventilator sends the vitals to the AWS using the ESP32 and the API (C04). The AWS uses the lambda specification to feed the ANN with the vitals and recovers the breathing-frequency variable (C05), which is saved in the DynamoDB (C06). The ESP consumes the API (C07) to recover the breathing frequency used by the ventilator to update the duty cycle of the Ambu system. The ESP also sends the vitals and control variables to the Evalu@ service using the API presented in C08. The authors encourage using the AWS S3 service, which will be enough to reproduce the results presented in this document. If an interface is needed to show the results to non-technical users, the authors warrant using Evalu@ at no cost for this particular application.

80acbb39-f317-4469-93e5-4ec8ba43153c_figure8.gif

Figure 8. One loop run for a single ventilator.

The rounded symbols refer to code supporting the functionality that has been presented as complementary material to assert reproducibility.

Discussion

During the SARS-CoV-2 outbreak and due to the high demand for mechanical respirators, developers responded with prototypes intended for intensive care unit (ICU) use.24,25 Additionally, medical personnel worked extended hours to cover the high demand for specialists and exposed themselves to the viral agent.26 Companies and independent developers rushed to build prototypes and devices to cover the primary necessity at the cost of the high demand. However, the shortage was not only in materials but in personnel.

The presented design aims to assist patients in any place where one can improvise a bed while accounting for the shortage of specialized personnel by providing the systems with autonomous decision capabilities based on artificial intelligence. We also propose using ad hoc. networks to maintain distance with aerial and rapid transmission agents. The proposed strategy does not exclude the healthcare specialists; instead, it suggests that a cooperative environment employing highly available systems with configurable alarms will enhance the working environment leading to higher productivity while protecting healthcare personnel from aerial pathogens.

The created ventilator exploits telemedicine and allows health professionals to assist several patients with a glance at the reporting screen provided by Evalu@ with worldwide coverage, authenticated access, and adherence to HIPAA regulations.18

The developed device can make autonomous decisions in real time. Professionals can attend to a larger group of people by monitoring their vital signs and prioritizing patients with more severe complications. In addition, the device can trigger alarms by value or trend so that care is no longer dedicated but demand-driven. Such a strategy positively impacts relevant aspects like efficiency and operating costs.

The proposed architecture uses standard telecommunications protocols, such as the TCP over WiFi (wireless fidelity) or GSM (global system for mobile communication) networks, assuring message integrity. Moreover, the SigFox27 protocol can be implemented as we did in a previous research-transferred development that reached commercialization28 to warrant operation in rural zones.

The implemented design is not rigid; therefore, we can add more sensors, and both the AWS and Evalu@ have the flexibility to afford the increase in processing and workload.

We are currently working on transferring the whole ANN processing to Evalu@ since the platform belongs to SBP Research and the research team led by author FYC. Evalu@ presents advantages regarding usability without incurring high costs derived from the expected massive use and long-term operation.

This development complements the devices created as proofs of concept supporting Patent No US20200273551A1.29 The patent claims healthcare can move from a curative/preventive perspective to a predictive scheme where we can anticipate maladies occurrences using AI, which increases survival rates while making more efficient use of healthcare funds. The patent protects the design of an architecture that enables massive data gathering intended for artificial intelligence implementations. How the data is produced – algorithms and feeding devices – is out of the patent’s scope.

Conclusions

In the apparent decline of the most recent pandemic, humanity learned – the hard way – several crucial lessons. We know now that pathogens can turn off worldwide activities, kill massively, and use humans as infectious vectors; a combination of factors compromising the existing infrastructure and rendering resources insufficient. The impact of further attacks would depend on how we optimize the resources. The inclusion of technology has the potential to place goods and means everywhere. Additionally, AI enables the reproduction of cognitive skills at a low budget to face difficulties with enhanced capabilities and be more efficient in calmed days. The presented ventilator is a proof of concept to demonstrate the feasibility of distributed healthcare that is assisted by reasonably cheap technology. It also automatically gathers reliable data that progressively empowers AI to derive verdicts and increase the accuracy of automated decisions.

Ethics and consent

The patient data presented is taken from an author who volunteered to test the equipment presented. Ethical approval was not sought out for this study as it is considered to be of low risk and is not an intrusive test. There were no drugs or contrast agent administered and the author was awake at all times.

Comments on this article Comments (0)

Version 1
VERSION 1 PUBLISHED 23 Dec 2022
Comment
Author details Author details
Competing interests
Grant information
Copyright
Download
 
Export To
metrics
Views Downloads
F1000Research - -
PubMed Central
Data from PMC are received and updated monthly.
- -
Citations
CITE
how to cite this article
Pulido Morales LL, Buitrago Romero JS, Ardila Sanchez IA and Yepes-Calderon F. Turning any bed into an intensive care unit with the Internet of things and artificial intelligence technology. Presenting the enhanced mechanical ventilator [version 1; peer review: 1 approved, 2 approved with reservations]. F1000Research 2022, 11:1570 (https://doi.org/10.12688/f1000research.127647.1)
NOTE: If applicable, it is important to ensure the information in square brackets after the title is included in all citations of this article.
track
receive updates on this article
Track an article to receive email alerts on any updates to this article.

Open Peer Review

Current Reviewer Status: ?
Key to Reviewer Statuses VIEW
ApprovedThe paper is scientifically sound in its current form and only minor, if any, improvements are suggested
Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit.
Not approvedFundamental flaws in the paper seriously undermine the findings and conclusions
Version 1
VERSION 1
PUBLISHED 23 Dec 2022
Views
9
Cite
Reviewer Report 13 Feb 2023
Maria Florencia Pollo-Cattaneo, Information System Methodologies Research Group (Grupo GEMIS), Universidad Tecnológica Nacional Facultad Regional Buenos Aires, Buenos Aires, Argentina 
Approved
VIEWS 9
This article proposes to provide a respiratory assistance service (portable mechanical ventilator) using technologies provided by artificial intelligence to optimize its operation. It includes the hardware and software architecture used, data management and interfaces.

The problem is ... Continue reading
CITE
CITE
HOW TO CITE THIS REPORT
Pollo-Cattaneo MF. Reviewer Report For: Turning any bed into an intensive care unit with the Internet of things and artificial intelligence technology. Presenting the enhanced mechanical ventilator [version 1; peer review: 1 approved, 2 approved with reservations]. F1000Research 2022, 11:1570 (https://doi.org/10.5256/f1000research.140177.r158686)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
Views
18
Cite
Reviewer Report 25 Jan 2023
Andres Felipe Montaño, TECNALIA - Basque Research and Technology Alliance (BRTA), Gipuzkoa, Spain 
Approved with Reservations
VIEWS 18
This paper describes the hardware and software architectures of a portable mechanical ventilator (including data management and the user interface) that uses artificial intelligence to estimate its optimal operation point. It is motivated by the need to provide high quality ... Continue reading
CITE
CITE
HOW TO CITE THIS REPORT
Montaño AF. Reviewer Report For: Turning any bed into an intensive care unit with the Internet of things and artificial intelligence technology. Presenting the enhanced mechanical ventilator [version 1; peer review: 1 approved, 2 approved with reservations]. F1000Research 2022, 11:1570 (https://doi.org/10.5256/f1000research.140177.r158687)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
Views
27
Cite
Reviewer Report 06 Jan 2023
Christian Grévisse, University of Luxembourg, Esch-sur-Alzette, Luxembourg 
Approved with Reservations
VIEWS 27
The authors describe a portable ventilator to enable remote monitoring and handling of patients in contexts of contagious agents. The motivation behind this is to cover both lack in specialists and material in high-demand settings such as the COVID-19 pandemic. ... Continue reading
CITE
CITE
HOW TO CITE THIS REPORT
Grévisse C. Reviewer Report For: Turning any bed into an intensive care unit with the Internet of things and artificial intelligence technology. Presenting the enhanced mechanical ventilator [version 1; peer review: 1 approved, 2 approved with reservations]. F1000Research 2022, 11:1570 (https://doi.org/10.5256/f1000research.140177.r158688)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.

Comments on this article Comments (0)

Version 1
VERSION 1 PUBLISHED 23 Dec 2022
Comment
Alongside their report, reviewers assign a status to the article:
Approved - the paper is scientifically sound in its current form and only minor, if any, improvements are suggested
Approved with reservations - A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit.
Not approved - fundamental flaws in the paper seriously undermine the findings and conclusions
Sign In
If you've forgotten your password, please enter your email address below and we'll send you instructions on how to reset your password.

The email address should be the one you originally registered with F1000.

Email address not valid, please try again

You registered with F1000 via Google, so we cannot reset your password.

To sign in, please click here.

If you still need help with your Google account password, please click here.

You registered with F1000 via Facebook, so we cannot reset your password.

To sign in, please click here.

If you still need help with your Facebook account password, please click here.

Code not correct, please try again
Email us for further assistance.
Server error, please try again.