Keywords

1 Introduction

The rapid growth of cardiovascular diseases (CVDs), including diabetes mellitus, hypertension, myocardial infarction, can lead to the death of human life. According to the WHO, CVDs are the number one cause of death globally and annually more people die from CVDs than any other disease. In 2016, around 17.9 million people died from CVDs which represent 31% of all global deaths. Out of these, heart attack is the major cause for the deaths. It is observed that these deaths take place mostly in developing and underdeveloping countries [1]. Thus, a consistent monitoring electrocardiography of patients is required. ECG is a device which measures the electrical activity of the human’s heart over a period of time. The originator of the electric signal in the human’s heart is the sinus node, and the signal generated by the sinus node is responsible for the contraction of cardiac muscles. These electrical pulses are detected by electrode either by an invasive manner or non-invasive manner, and the graph recorded in the ECG is represented as a series of electric waves, with specific structures and period that repeat in each cardiac cycle such as the P, T and the QRS complex wave as shown in Fig. 1. These waves represent to the various successions of cardiovascular muscle exercises, which make it conceivable to assess the cardiac state and can be utilized to measure the rate and rhythm of heartbeats, the size and position of the heart chambers, the presence of any damage to the heart's muscle cells, the effect of heart drugs and the capacity of artificial pacemakers [2].

Fig. 1
figure 1

Standard electrocardiogram (ECG) wave

The conventional ECG sensor is classified into two types—implantable-type ECG sensor and patch-type ECG sensor. In the case of the implantable-type ECG sensor, medical procedure is required to place the electrode in the heart for ECG measurements. Consequently, it is pricey and intrusive while in patch-type ECG sensor at least three electrodes should be fixed to a human body to record the ECG signal. In this strategy, two electrodes are utilized for detecting the voltage difference on the body surface and the third electrode is utilized as a ground electrode [35]. Usually ECG signals are commonly obtained through wet Ag/AgCl electrodes, which are accessible at low cost and can give high-calibre and stable signals. The coupling with the skin is upheld by an ionic component for instance solid or fluid hydrogel in order to improve the quality of the contact, thereby diminishing the skin impedance. This sort of electrodes cannot be used for long-term monitoring as they can cause skin irritations and also spreading the conductive gel may provoke a short circuit when electrodes are put near to each other. Therefore, alternative dry flexible ECG electrodes are required for ECG recording [6, 7].

Dry electrodes are the option in contrast to the ordinary Ag/AgCl anode [8, 9]. Various types of dry electrodes are available, viz. capacitive electrodes, small spike electrodes, conductive polymer electrodes. The capacitive electrodes are susceptible to motion artefacts [10]. Furthermore, these kinds of electrodes are complex and its volume is bigger than that of other types of electrodes. The spike electrodes with spikes array could penetrate through the external skin layer. However, this type of electrodes may cause uneasiness and skin injury to users. While dry carbon electrodes are flexible and comfortable as well as harmless to the skin [1116], this paper presents the novel carbon-based textile and dry flexible electrodes for measuring the ECG signal. The design and fabrication of dry electrodes are discussed in Section two followed by its characterization. The working principle and ECG signal processing are discussed in Sections four and five, respectively. The circuit simulation and circuit hardware are discussed in Sections six and seven, respectively. Similarly, the results and conclusion are discussed in consecutive sections.

2 Design and Fabrication

2.1 Design

This section describes methodology for the design of carbon-coated ECG electrodes. The material selection, design of ECG electrodes and also the steps for fabricating the electrodes are discussed.

2.1.1 Materials

Kapton is a polyimide film introduced by DuPont in the late 1960. It remains stable across a wide variety of temperature from -269 to + 400 °C. [17, 18]. Kapton tape of thickness 120 μm is used to prepare the mask file. Carbon is used as the conducting material and is coated on a cotton fabric. Although graphene acts as a good conducting material than carbon, in this work carbon is used as the sensing material as it is cheap, compatible and easily available. The cotton fabric has good adhesive properties than the Kapton substrate. It gives protection against short circuit caused from the body sweats and electrodes. Therefore, the cotton fabric has been chosen for carbon coating [19]. Figure 2 shows the coating of carbon material on both cotton and Kapton substrate.

Fig. 2
figure 2

Carbon pasted on both Kapton and cotton fabric substrate

2.1.2 AutoCAD-2D Design

The 2D structure for the mask file is designed using AutoCAD [20]. Mask files of various diameters (E1-20, E2-16, E3-12) mm are designed as shown in Fig. 3 [21].

Fig. 3
figure 3

AutoCAD design

2.2 Fabrication

2.2.1 Preparation of Mask File

The Kapton tape which is used as the mask file is cut into different sizes of diameters using a laser cutter [22]. After cutting a Kapton tape, the mask file is washed using an Isopropanol solution to remove the dust particles attached. The mask is kept in the oven for 1 h at a temperature of 150 °C. The final mask of different diameters is as shown in Fig. 4. The cotton fabric substrates are also cut in round shape with different diameters of (20, 16, 12) mm for coating carbon on it.

Fig. 4
figure 4

Mask file design

2.2.2 Coating of Conducting Materials

Various methodologies are available for the screen printing. Commercially ECG electrodes can be produced by injecting ink of carbon on a substrate using a screen printing machine but in this work for the prototype model, the carbon is coated manually on the substrate with the help of a mask file. The thickness of carbon ink coated on a substrate is 120 μm. This type of coating carbon layer on the substrate is adopted from a concept of pattern casting. In casting, a pattern is a replica of the object to be cast, which is utilised to set up the hole into which molten material will be poured during the casting process. Similarly, the mask here is similar to the pattern required and the thick paste of carbon is applied on a cavity created by the mask [23].

3 Characterization of Skin–Electrode Impedance

The characterization of the fabricated dry ECG electrodes and commercial wet Ag/AgCl electrodes was performed to compare their performance. The skin–electrode impedance should be as low as possible to minimize the common-mode rejection noise for the better quality of the ECG signal. The skin–electrode impedance can be modelled as a parallel combination of the RC circuit where R1 and C1 represent the impedance and the capacitance formed due to the skin and electrode coupling. R2 represents the resistance of the conducting gel. E represents the potential applied between the two electrodes [24]. The equivalent circuit diagram of the skin–electrode impedance for dry and wet electrodes is shown in Fig. 5.

Fig. 5
figure 5

a Equivalent skin–electrode circuit for dry electrode. b Equivalent skin–electrode circuit for Ag/AgCl electrode

The total skin impedance is given as

For dry ECG electrode,

$$ Z\left( w \right) = \frac{{R_{1} X_{c} }}{{R_{1} + X_{C} }} $$
(1)

For wet Ag/AgCl electrode,

$$ Z\left( w \right) = R_{2} + \frac{{R_{1} X_{c} }}{{R_{1} + X_{C} }} = \frac{{R_{1} + R_{2} + jwC_{1} R_{1} R_{2} }}{{1 + jwC_{1} R_{1} }} $$
(2)

where

$$X_{c} = \frac{1}{jwC}, \quad w = 2\pi f.$$

From Eq. (1), the total impedance is the function of frequency. Thus, the measurement of impedance was performed in the frequency range from 1 to 700 Hz. An electrode is placed on a human’s wrist with the help of a rubber band at a nearby distance (<2 cm) from the other electrode as shown in Fig. 6. A potential of 4v was applied to the skin through two electrodes in the frequency range from 1 to 700 Hz. The skin impedance frequency response curves for the dry ECG electrodes (E1, E2, E3) and the Ag/AgCl electrodes are shown in Fig. 7.

Fig. 6
figure 6

a Experiment setup to measure skin–electrode impedance for dry ECG electrode. b Experiment setup to measure skin–electrode impedance for Ag/AgCl electrode

Fig. 7
figure 7

Skin–electrode impedance with respect to frequency

From Fig. 7, it is seen that the skin–electrode impedance is dependent on the size of electrodes and it can be concluded that the skin–electrode impedance is inversely proportional to the diameter of the electrodes [20]. For instance, the skin impedance of dry electrodes having diameters of 12 mm, 16 mm, 20 mm is 585 kΩ, 571 kΩ and 565 kΩ, respectively, at a common frequency of 10 Hz. The results also concluded that skin impedance of carbon-coated dry electrodes (E1, E2, E3) were higher than that of wet Ag/AgCl electrodes at a frequency of 10 Hz. This is due to the fact that wet Ag/AgCl electrodes contain electrolyte gel. Though the fabricated dry electrodes have high skin impedance than wet electrodes, they are in well range of impedance value to measure ECG signal.

4 Working Principle

ECG electrodes record the electrical activity generated by the heart’s muscle contraction and relaxation which propagate in/as pulsating electrical waves through the skin. The contraction and relaxation of cardiac muscles are due to electrical signals received from the sinus node. Electrodes are suitably placed on a body, thereby the small electric signal which is generated by the polarization, and depolarization of the heart’s muscle can be detected. The voltage change is sensed by measuring the current change across two electrodes positive and negative [25]. A poor choice of electrode material and improper location of electrodes could lead to unnecessary polarization. The potential caused by the polarization could cause noise which weakens the signal.

The requirements for the experimental setup are as follows. It consists of a power supply, a digital oscilloscope(display screen), printed dry ECG electrodes, and an ECG data acquisition electronic circuit as shown in Fig. 8. The experiment set-up for estimations of ECG were led at room temperature. Three dry electrodes, with same radius, were placed on the body of a healthy volunteer at three different positions: left forearm, right forearm and right leg, without removing the hair and with no skin preparation as shown in Fig. 9 [26]. The experiment was carried out for different diameters of electrodes, and their performances were compared. The output from the ECG acquisition circuit was connected with an Arduino board for imaging and recording the ECG signal on the laptop screen.

Fig. 8
figure 8

Experimental set-up for recording ECG

Fig. 9
figure 9

Placement of electrodes

5 ECG Signal Processing

The ECG signal detected by the electrodes was very weak electrical signals, and its amplitude was varying from 0.03 to 4 mv. These signals are usually affected by noise, such as low-frequency noise, muscle noise and electromagnetic noise. The signal sensed by the electrodes is within the range of 0.05 to 200 Hz signals [20, 27]. Due to the high impedance of the human body, the impedance of the ECG signal can reach several Ω to KΩ. So, the main challenge in signal processing of the ECG signal is to eliminate the noises and amplify the small magnitude ECG signal to properly stabilize ECG signals [25, 28]. The complete block diagram for the signal processing of the ECG signal is shown in Fig. 10.

Fig. 10
figure 10

Block diagram of ECG signal processing

For the acquisition of the ECG signal, the electrical signal obtained from the human body passes through various filtering and amplifying circuits. Proper care must be taken while designing the data acquisition circuit to suppress interference. The different circuits involved in the acquisition of ECG data and their design are shown below.

5.1 Design of Instrumentation Amplifier

The instrumentation amplifier is the main part of the ECG signal processing circuit. It has very high common-mode rejection ratios (CMRR) of the order of 100 dB and high input impedance which is required for the acquisition of electrical signals from the human body [29]. The AD620AN instrumentation amplifier which is used in this project is low price, low power consumption and easily available amplifier. While designing this amplifier, the gain can be adjusted by varying the external resistor. The gain of this amplifier is [30]

$$ {\text{Gain}} = {1} + \frac{{50\,{\text{k}}\Omega }}{R} $$
(3)

5.2 Design of High-Pass and Low-Pass filter

In order to eliminate the DC offset present in the output signal obtained from the instrumentation amplifier, the signal is passed through the high-pass filter. The operation amplifier LM324AN is used to design the second-order high-pass filter for this task which eliminates the low-frequency interference. It is designed with a cut-off frequency of 2 Hz. The second-order low-pass filter is also designed using LM324AN to filter high-frequency noise. In this project, the low-pass filter is designed to filter the frequency above 200 Hz. The cut-off frequency for second-order low-pass and high-pass filter is given as [31]:

$$ f_{{{\text{cutoff}}}} = \frac{1}{{2\pi \sqrt {R_{1} R_{2} C_{1} C_{2} } }}\left( {\text{for low pass filter}} \right) $$
(4)

if \(R_{1} = R_{2 } = R\,{\text{and}}\,C_{1} = C_{2} = C\), then

$$ f_{{{\text{cutoff}}}} = \frac{1}{2\pi RC}\left( {\text{high pass filter}} \right) $$
(5)

5.3 Design of Notch Filter

The interference caused by the supply frequency of 50 Hz in the ECG acquisition process is eliminated by a notch filter. This interference is mainly caused by the power supply in the form of a differential mode signal. The frequency designed for this filter is

$$ f = \frac{1}{2\pi RC} $$

6 Circuit Simulation

The circuit is simulated on a Multisim software. The input and output waveforms are analysed. The circuit simulation is shown in Fig. 11a, and their corresponding input and output waveforms is shown in Fig. 11b.

Fig. 11
figure 11

a System circuit simulation on Multisim software. b Input and output waveforms simulated on Multisim software

7 Circuit Hardware

All the electronic components were assembled on a zero PCB board as per the circuit design. The ECG acquisition circuit assembly is shown in Fig. 12. All the filters and amplification circuits were assembled step by step, and testing of each stage was carried out by testing the output signal for each constructed stage. The input signal from the signal generator was fed to each stage, and their corresponding waveform is observed on an oscilloscope. The two 9 V batteries were used for the ±9 V dual supply for the operation while its common terminal provides the ground for the circuit [32].

Fig. 12
figure 12

ECG acquisition circuit assembly

8 Result and Discussion

Finally, the ECG signals were measured using both the commercial electrodes and proposed ECG electrodes. For the commercially available electrodes, the conducting gel was used to decrease the impedance between the skin and the electrodes. The ECG was measured for both conditions when the body was in motion and in rest. The ECG recording when the body was in motion is shown in Fig. 13. This ECG signal contains lots of interference due to the motion of arms and is difficult to identify the P, Q, R, S, T waves.

Fig. 13
figure 13

ECG recorded when the body in motion

The working of wet electrodes and dry electrodes was compared since the ECG signal obtained from both types of electrodes contains visible P, Q, R, S, T waves. Therefore, they were easily compared and analysed by calculating their respective peak and amplitude with respect to time [33]. Figure 14a shows the ECG obtained from the wet Ag/AgCl electrode, and Fig. 14b shows ECG obtained from a carbon-coated dry electrode when the body is at rest.

Fig. 14
figure 14

a ECG obtained from wet Ag/AgCl electrodes. b ECG obtained from carbon-coated dry electrodes

MATLAB is useful and handy on ECG signal processing that everyone can easily monitor his/her heart condition. Normally, the ECG signal procurement equipment can eliminate the power line interference. However, the baseline wandering and other wideband noises cannot be easy to suppress by hardware, while on the other hand, the MATLAB software is more powerful for suppressing all type of band noises and feasible for offline ECG signal processing. After recording the ECG signals, the recorded signal was processed through MATLAB processing software. The raw ECG signal extracted from the human body is subjected to various filtering stages like baseline wander removal, wavelet decomposition, noise cancellation (filtering), bandpass filtering, removal of a linear trend to remove unwanted signals. The MATLAB signal processing is based on software coding rather than using the hardware components. All processing units are designed mathematically, and working of each stage was analysed. Figure 15 shows the entire signal processing stages for recording ECG signal of the patient in MATLAB.

Fig. 15
figure 15

MATLAB simulation of ECG acquisition circuit

9 Conclusion

In this work, a detailed process for developing carbon-based textile dry and flexible electrodes for recording ECG signals is presented in a simple way. The fabricated dry ECG electrodes are wearable, adaptable, biocompatible, reusable and gel-free. The proposed ECG measuring device is eco-friendly and easily handled by common consumers without any medical knowledge. The electrical characteristics of fabricated dry electrodes (E1, E2, E3) were compared with wet Ag/AgCl electrodes by measuring skin–electrode impedance and found that the skin impedance of dry electrodes having a diameter of 12 mm, 16 mm, 20 mm are 585 kΩ, 571 kΩ and 565 kΩ, respectively, at a common frequency of 10 Hz. This experiment strongly proves that the electrodes with the largest diameter exhibit better performance in terms of signal intensity. This can be attributed to the fact that the skin–electrode impedance is inversely proportional to the diameter of electrodes. Also from the results, it was observed that skin impedance measured by dry electrodes (E1, E2, E3) was higher than that of wet Ag/AgCl electrodes at a common frequency of 10 Hz. However, the measured values are still within the range of low impedance values to measure ECG signal. The reason for the low skin impedance of the Ag/AgCl electrodes than dry electrodes is due to the fact that the Ag/AgCl electrodes contain conducting gel. Experimentally, the ECG was recorded at two different conditions, motion and relaxed (rest), and found that the ECG recorded during motion displayed lot of disturbances than in a relaxed position. The recorded ECG graph also confirmed that the signals acquired from the dry electrodes have high quality in terms of peak intensity therefore easy to analyse than the signals acquired from conventional Ag/AgCl electrodes. Therefore, the proposed dry ECG electrodes are economic, convenient and have high potential to replace conventional wet electrodes.