You are on page 1of 7

Journal of Applied Science and Engineering, Vol.

24, No 5, Page 749 - 755 749

Automated Anesthesia Level Controller Using Fuzzy Logic for Injectable


Type
R. Bharath Kumar 1 , P. Suresh 1* , and Hemakumar VS 1
1 Dept of ECE, Vel Tech Rangarajan Dr.Sagunthala RD Institute of Science and Technology, Chennai, Tamil Nadu 600062
* Corresponding author. E-mail: suresh3982@yahoo.co.in

Received: Feb. 01, 2021, Accepted: Mar. 22, 2021

In this present paper we had implemented an actual control and monitoring of anesthesia level given to the patients
during surgery. To achieve this FUZZY LOGIC controller has been developed. It includes monitoring of patient’s
body variable such as heart rate, diastolic and systolic pressure precisely and dynamically. Controlling is done
by switching ON or OFF the pump using relay when there are any conflicts in set point values of the patient’s
body parameters. By using Fuzzy Logic, we can continuously monitor and measure three different parameters they
are pulse rate, systolic diastolic blood pressure and the dosage of stupor given to the patient varies linearly with
measured input parameters.

KEYWORDS: Fuzzy Logic; Stupor; Systolic; Diastolic


© The Author(’s). This is an open access article distributed under the terms of the Creative Commons Attribution License (CC BY
4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are
cited.
http://dx.doi.org/10.6180/jase.202110_24(5).0009

1. Introduction • The amount of anesthesia given to the patient is constant


and not varied, so the future side effects will not be occur.
Anesthesia is an important parameter in medical field, which
gives conformation that the patient’s body remains stable
and doesn’t respond to the other provocation during surgery.
It encompasses muscle loosening, insensibility and pain-
relieving. There are different approaches of numbness in-
2. Objective
fusion. There are two types of method in which anesthesia
The foremost goal up till progress a structure an assumed
can be given to the patient through injection (intravascular)
from fuzzy regulator that make use of set of fuzzy rules for
and through inhalator.
adjust the infusion rate of anesthesia levels with respect to
By comparing to the induction through inhalation method the input variable. The process parameters such as pulse
intravascular method is very simple. If the operation is done rate, systolic & diastolic arterial blood pressures are acquired
for few hours complete dose of anesthesia cannot be given to from the case model during surgery. The obtained estimated
the patient in a one dose itself. It may be whip up the patient quantity of these parameter fuzzy controllers distinct the
to demise. The major advantage of anesthesia through an amount of drug (isoflurane) must be given to the patient is
intake method is to reduce the usage of needle and is to the an output-controlled parameter. The controlled values are
pain of the patient during surgery. defined in the fuzzy set which represents median conditions
• The anesthesia person work pressure is reduced with respect to traditional logic.
750 R. Bharath Kumar et al.

3. Working 4.1. Anatomical Monitoring

The main objective is to monitor and control the flow of While giving drug, it is must to ensure the level of anesthetic
anesthesia into the patient during surgery. This can be done is given to the patient and it will not create any unconscious-
effectively using fuzzy logic. The patient body parameters ness throughout the operation. The parameter that are ob-
are read through varies sensors. These sensors are used to serve and examine to control anatomical state it includes
measure the body parameters like heart rate, systolic pressure, body temperature, Blood pressure, ECG, respiratory function
diastolic pressure. The sensors values are given as an input to (CO2 and O2 ) and blood gas value.
the pic microcontroller. The values read from the sensors are Blood pressure is important parameter to monitor through
calculated accordingly to the corresponding output values the operation.
are produced. Fuzzy logic is being programmed into the
4.2. Biological control
microcontroller.
The self-supervise of drug has received more importance of
The Liquid is slowly introduced into patient’s body and
last decade years. The main two scopes are control theory
the change in the Heart beat rate is observed. Then any
that has received this observation and arithmetical design
change in the Heart beat rate the Liquid is injected into the
[1, 2] and fuzzy logic [3–8]. In computational prototype ex-
body. The injecting process is controlled by the Stepper Motor
amine the subject’s physical and the conceptual response of
movement. Based on the determined value the servo motor
8 stimuli, and to estimate the anesthetic levels to produce
rotates to certain angle and that makes the piston to move
the physiologic reactions [8, 9]. Depends on the outcomes of
front and back to introduce the anesthesia into the patient’s
these estimates the amount of anesthesia is to be given to the
body.
patient, set of rules are emerged and used in a system.
The values read from the sensors are can be displayed
using a LED display and the change in the output values can
also be monitored using the same LED display. The basic
block diagram is shown in the Fig 1.

Fig. 2. Physiologic Control [2].

5. Experimental setup

Fig. 1. Block Diagram. In quantification of Bioscience framework is very important


procedure. The input variable governs the situation of the
sufferer. It is an important notable procedure in the balanced
of insensibility is to be controlled to the case. Depend upon
4. Component
the input variable the stepper motor is starting to rotate.
• Patients Ear Lobe – to measure heart rate based on digital
pulse from ear. 5.1. Heart Beat Rate Sensor
• Heart Beat Sensor- to measure pulse rate In Fig. 3 represents the Heart beat sensor (HRM2115). It is a
• PIC 16F877A – to master the all-inclusive performance mobile tracking device for measuring Heart rate. It measures
• Stepper Motor- to supervise the rotation of the Injection the disturbance occurs in the blood flow. The sensor consists
Pump. of both IR transmitter and receiver in the single compartment
• MAX 232-Absolute Maximum Voltage Rating placed in opposite side.
Journal of Applied Science and Engineering, Vol. 24, No 5, Page 749 - 755 751

It consists of two different versions the ‘E’ version used • Potential Supply: 9 volts accessory or 9 volt chargeable
to connect to the ear lobe and ‘B’ version is connecting to the accumulator (GF22).
finger. Depends upon the user convenience the sensor can be • It measures 10-300 pulse /min.
selected. • 3% precision in perusal.
• Model Number: PM1102
• Size: 40mm*16mm*19mm

6. Hardware Description
The Syringe is filled with anesthesia drugs and kept in the
mechanical arrangement. Then the heart beat sensor (IR
sensor) is fixed in the finger. The heart beat rate is sensed
and displayed in the LED screen. The heart beat sensor,
LED screen and Servo motor drive are connected to the PIC
16F877A. PIC 16F877A is programmed with a predetermined
Fig. 3. Heart Beat Rate Sensor. value; if the heart beat range is normal (70-80) some amount
of anesthesia will be injected. If the heart rate is abnormal
depending upon the patient’s body condition anesthesia will
5.2. Ear IR Sensor be injected.
COSY Heart beat monitor/Digital Pulse meter are the ad- The drugs are slowly injected into patient’s anatomy and
vanced technology gadget. Using a brand new measuring the change in the Heart rate is observed. Then according to
device used to measure and monitor the heart beat rate is the Heart beat rate, the drugs is injected into the body. The
shown in Fig 4. It consists of Infrared sensor which can be injecting process is controlled by the movement of the Stepper
easily placed on the human body to determine the heart beat Motor. Based on the determined value the servo motor rotates
rate. A histogram used to find the exact position of the detec- to certain angle and that makes the piston to move front and
tor to obtain the best signal. The sensor probe is designed to back to inoculate the anesthesia into the patient’s body.
obtain a best result. The pulse is also shown by LED signal. In this hardware PIC 16F877A is used in order to im-
plement the various parameters like EEG, ECG and Blood
pressure sensor [10] which is useful in injecting the known
amount of anesthesia into patient’s body.

6.1. PIC 16F877A

Fig. 4. Ear IR Sensor.

5.2.1. Technical Guidelines


• Finger Plethysmometry Fig. 5. PIC 16F877A.
• It uses 8 bit µC.
752 R. Bharath Kumar et al.

6.2. LM78MXX Series • Modulation: Pulse-width modulation


LM 78XX series are three terminal positive fixed voltage regu- • Temperature span: 14 to 122°F (-10 to 50°C)
lators shown in the fig 6. The two digits XX of 78XX are used • Weight of Motor: 9gm
to identify the fixed output voltage of the regulator. This cir- • Gear Type: Plastic
cuit provides over-current and thermal overload protections.
The standard circuit connection of the monolithic voltage reg-
ulator. The input capacitor Ci is used to nullify the inductive
accomplish due to long issue leads and the output capaci-
tor. The performance characteristics curves of LM78M09 are
shown in Fig. 7.

Fig. 8. Pin Diagram of Servo Motor.

6.4. Stepper Motor Driver Circuit


The stepper motor plays an important role in Automatic
Anesthesia controller is used. It consists of four periods. In
Fig. 6. Block Diagram. clockwise order the motor is rotated half step to 90º sun wise.
The design of binary value used to rotate 1 piece posture
all over proper position. The high value given to the S1
revolves all over to S4. The next step to key design is to turn
round the each piece location. The consecutive movements of
stepper motor are shown below in Table 2. The pace counter-
clockwise is used to revolve to 1 piece to the left position. The
clockwise movements of the stepper motor are interface by
an impulsive which is connected to the motion of syringe.

6.5. Needle Injection Siphon


In hypodermic needle gives a constant glide of drug to the
Fig. 7. Typical Performance Characteristics.
patient by exactly moving the punter needle apropos to bar-
rique. Then it provides précises & constant stream rate for
distributing the drug. The alarm is triggered by the input
6.3. Parallax Standard Servo Motor
of Infra-red detector & limit switch. The siphon to draw
The Parallax quality Servo is suitable for robotics and other
up spontaneously when the syringe is vacant or if any air-
type of the movement projects. We use Servo Motor SG-90
lock launch into the anesthesia pipeline and by activating
model with three pin configuration shown below in Fig. 8
the alarm simultaneously. The needle is made up of glass &
and its specification tabulate in Table 1.
Plastic materials with different dimensions range from 1ml
6.3.1. Features to 30 ml.The amount of anesthesia drug can be range from
• It rotates between 0º to 180º 1ml to 99 ml/hr.
• 43.1 Hz-in revolution at 6 V
6.6. Dosage Calculation
6.3.2. Technical Specification Basically dosage level is calculated based upon body weight
• Power Supply: 4 to 6 VDC of the patient.
Journal of Applied Science and Engineering, Vol. 24, No 5, Page 749 - 755 753

Table 1. Pin Specification of Servo Motor SG-90.

Wire Number Wire Colour Description


1 White (Signal) PWM Signal is given in through this wire to drive the motor
2 Red (Vservo) Powers the motor typically +6V is used
3 Black (Vss) Ground wire is connected to the ground of system

Table 2. 4- Phase Stepper key series. Table 3. Capacitance Value for various MAX 232 IC.

STEP S4 S3 S2 S1 CAPACITANCE (µF)


1 0 1 1 1 DEVICE C1 C2 C3 C4 C5
2 0 0 0 1 MAX220 0.047 0.33 0.33 0.33 0.33
3 1 0 0 1 MAX232 1.0 1.0 1.0 1.0 1.0
4 1 0 0 0 MAX232A 0.1 0.1 0.1 0.1 0.1
5 1 0 0 0
6 0 0 0 0 Table 4. Rule Base Control.
7 0 1 1 0
8 0 1 1 0
1 0 1 1 1

 
Dosage per kg× Patient weight (kg)×60
What you have available (dosage in syringe) (1)
x Volume it is disolved in = rate per hour (m//hr)

6.7. MAX 232


The MAX232 device is a twofold operator/beneficiary that in-
corporates a condenser power alternator to provide TIA/EIA-
232 F electric power amount from a unique 5V. The detailed
pin diagrams of MAX 232 are shown below in the Fig. 9. The
recipient transform TIA/EIA-232 F process signal to 5V TTL
/ CMOS quantity. It has the maximum voltage level is 1.3v 7. Fuzzy Logic
and it can be accept ±30V load voltage.
7.1. System Development
The various steps involved in system development plan con-
sists to analyze the input variable to convert the inputs into
fuzzy value of membership function depends upon the fuzzy
set value the amount of drug induced depends upon the var-
ious parameters. We use Trapezoidal or triangular fuzzifiers
[11, 12]. The flow processes of our system are shown below
in Fig. 10.

7.2. Input and Output Variables


The fuzzy controller system used to control the proper dose of
isoflurane. It depends upon the three basic input parameters
Fig. 9. MAX 232. and one output parameter [13]. Three input variables with
their minimum and maximum ranges essential to set for
754 R. Bharath Kumar et al.

Table 5. Rule Base Control.

Year Available for Clinical Use 1981

Structure
Characteristics Colourless, Non-flammable liquid with a powerful musty odour
Classification Inhaled Agents
Dosage Measure of result; MAC (age 40)=1.15

Fig. 10. System development plan. (a)

fuzzy rule execution are shown in the Table 4.

8. Isoflurane Characteristics
It is an incombustible liquid managed by vaporizing in an
inhale drug. The detail characteristics are shown below in
table 5 [13].

9. Result discussions
The output depends upon one or two input variable which (b)
generates the plots on output surface map on the structure are
shown in the Fig 11. The external observer exhibits the total Fig. 11. Dose of Isoflurane for Different Input Variables.
range of output set value versus input set value. The graph it
can be seen that value of dose Isoflurane is remains constant
10. Conclusions
for the heart rate value ranging from approximately 62 mm
Hg to 68mm Hg then increases abruptly with increase in heart The anesthetic procedure has three major important parts,
rate value. In similar way dose of isoflurane can be map for i.e narcosis, pain-relieving and muscle loosening, it must be
different values of input variable. Table gives different values controlled ample during operation, the patient must be at rest,
of dose of isoflurane as a percentage of isoflurane in oxygen must not suffer any discomfort, and has to be totally relaxed.
for different values of input variables. By using the proposed The proper amount of anesthesia may lead the patient get
fuzzy controller dose of isoflurane can be very easily calculate totally paralyzed. The suggested system is depends upon the
for different values of input variable. fuzzy controller to oversee an actual dose of isoflurane as an
Journal of Applied Science and Engineering, Vol. 24, No 5, Page 749 - 755 755

anesthetic negotiator of utmost importance. [10] Ishwari Ingale. Study of Automatic Anesthesia Con-
troller. IJIRT, 6(11), 2020.
[11] A.J. Asbury. Fuzzy logic: new ways of thinking for
References anesthesia. British Journal of Anaesthesia, 75(1), 1995.
[12] Rahim F, Deshpande A, and Hosseini A. Fuzzy Expert
[1] T Dalkara, K Irikura, Z Huang, N Panahian, and System for Fluid Management in General. Management,
MA Moskowitz. Cerebrovascular responses under con- (4):256–267, 2007.
trolled and monitored physiological conditions in the [13] Ms. Dipti and S. Diwase. Expert Controller for Estimat-
anesthetized mouse. Journal of Cerebral Blood Flow & ing Dose of Isoflurane. International Journal of Advanced
Metabolism, 15(4):631–638, 1995. Engineering Sciences and Technologies, 9(2):218–221, 2011.
[2] B Wayne Bequette, Ramesh R Rao, B Wayne Bequette,
and Rob J Roy. Control of Hemodynamic and Anesthetic
States in Critical Care Patients Control of Hemodynamic
and Anesthetic States in Critical Care Patients. rpi.edu,
(APRIL 1999), 2016.
[3] Kurt Becker, Bernhard Thull, Horst Käsmacher-Leidinger,
Johannes Stemmer, Günther Rau, Günther Kalff, and
Hans Jürgen Zimmermann. Design and validation of
an intelligent patient monitoring and alarm system based
on a fuzzy logic process model. Artificial Intelligence in
Medicine, 11(1):33–53, 1997. ISSN 09333657.
[4] M Dojat, F Pachet, Z Guessoum, D Touchard, A Harf,
and L Brochard. NéoGanesh: A working system for
the automated control of assisted ventilation in ICUs.
Artificial Intelligence in Medicine, 11(2):97–117, 1997. ISSN
09333657.
[5] Jiann Shing Shieh, Derek Arthur Linkens, and John E. Pea-
cock. Hierarchical rule-based and self-organizing fuzzy
logic control for depth of anaesthesia. IEEE Transactions
on Systems, Man and Cybernetics Part C: Applications and
Reviews, 29(1):98–109, 1999. ISSN 10946977.
[6] Andrew Lowe, Michael J. Harrison, and Richard W Jones.
Diagnostic monitoring in anaesthesia using fuzzy trend
templates for matching temporal patterns. Artificial Intel-
ligence in Medicine, 16(2):183–199, 1999. ISSN 09333657.
[7] R Meier, J Nieuwland, S. Hacisalihzade, D. Steck, and
A. Zbinden. Fuzzy control of blood pressure during anes-
thesia with isoflurane. In ieeexplore.ieee.org, pages 981–987,
1992. ISBN 0780302362.
[8] Peter Samuelsson, Lars Brudin, and Rolf H Sandin. Late
psychological symptoms after awareness among consecu-
tively included surgical patients. Anesthesiology, 106(1):
26–32, 2007. ISSN 00033022.
[9] PF White, JB Negus Journal of clinical Anesthesia, and un-
defined 1991. Sedative infusions during local and regional
anesthesia: a comparison of midazolarn and propofol. El-
sevier.

You might also like