Next Article in Journal
Prediction of Driver’s Intention of Lane Change by Augmenting Sensor Information Using Machine Learning Techniques
Next Article in Special Issue
Single-Lead Fetal ECG Extraction Based on a Parallel Marginalized Particle Filter
Previous Article in Journal
Development and Positioning Accuracy Assessment of Single-Frequency Precise Point Positioning Algorithms by Combining GPS Code-Pseudorange Measurements with Real-Time SSR Corrections
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design and Validation of a Breathing Detection System for Scuba Divers

by
Corentin Altepe
1,2,*,†,
S. Murat Egi
3,4,†,
Tamer Ozyigit
3,†,
D. Ruzgar Sinoplu
1,†,
Alessandro Marroni
4,† and
Paola Pierleoni
2,†
1
Bogazici Underwater Research Center, Yavuzturk Sk. 32/1 Altiyol, 34716 Istanbul, Turkey
2
Information Engineering Department, Marche Polytechnic University, Via Brecce Bianche 12, 60131 Ancona, Italy
3
Computer Engineering Department, Galatasaray University, Ciragan Cad. 36 Ortakoy, 34349 Istanbul, Turkey
4
DAN Europe Research Division, Contada Padune 11, 64026 Roseto degli Abruzzi, Italy
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Sensors 2017, 17(6), 1349; https://doi.org/10.3390/s17061349
Submission received: 19 April 2017 / Revised: 5 June 2017 / Accepted: 7 June 2017 / Published: 9 June 2017

Abstract

:
Drowning is the major cause of death in self-contained underwater breathing apparatus (SCUBA) diving. This study proposes an embedded system with a live and light-weight algorithm which detects the breathing of divers through the analysis of the intermediate pressure (IP) signal of the SCUBA regulator. A system composed mainly of two pressure sensors and a low-power microcontroller was designed and programmed to record the pressure sensors signals and provide alarms in absence of breathing. An algorithm was developed to analyze the signals and identify inhalation events of the diver. A waterproof case was built to accommodate the system and was tested up to a depth of 25 m in a pressure chamber. To validate the system in the real environment, a series of dives with two different types of workload requiring different ranges of breathing frequencies were planned. Eight professional SCUBA divers volunteered to dive with the system to collect their IP data in order to participate to validation trials. The subjects underwent two dives, each of 52 min on average and a maximum depth of 7 m. The algorithm was optimized for the collected dataset and proved a sensitivity of inhalation detection of 97.5% and a total number of 275 false positives (FP) over a total recording time of 13.9 h. The detection algorithm presents a maximum delay of 5.2 s and requires only 800 bytes of random-access memory (RAM). The results were compared against the analysis of video records of the dives by two blinded observers and proved a sensitivity of 97.6% on the data set. The design includes a buzzer to provide audible alarms to accompanying dive buddies which will be triggered in case of degraded health conditions such as near drowning (absence of breathing), hyperventilation (breathing frequency too high) and skip-breathing (breathing frequency too low) measured by the improper breathing frequency. The system also measures the IP at rest before the dive and indicates with flashing light-emitting diodes and audible alarm the regulator malfunctions due to high or low IP that may cause fatal accidents during the dive by preventing natural breathing. It is also planned to relay the alarm signal to underwater and surface rescue authorities by means of acoustic communication.

1. Introduction

SCUBA diving tourism has grown to become a multibillion dollar industry, drawing as many as 6 million active SCUBA divers worldwide [1]. One of the major concerns of the diving industry is to secure a significant and sustained reduction in the number of fatal and major accidents in activities that may jeopardize human lives. Divers Alert Network (DAN) has reported 146 recreational diving fatalities in 2014 world-wide, excluding breath-holding fatalities [2]. Of the 44 cases for which the cause of death was determined, 21 (48%) were caused by drowning, 3 (7%) were probable drownings, 7 (16%) were cardiac event, and 2 (5%) probable cardiac events. Similar proportions were reported over the period of 2010–2013 with 53% drownings, and 28% cardiovascular diseases [3]. It is a reasonable assumption that a proportion of these fatalities could have been avoided if a continuous monitoring of the breathing of the divers had been in place and had reported the emergency when identified that the diver stopped breathing.
The U.S. Navy has identified breathing related problems that may lead to accidents, such as drowning, threatening the lives of SCUBA divers [4]. It is reported that novice divers are likely to breathe deeper and more frequently, causing to deplete the gas supply faster than planned, which may cause the diver to drown. However, it is recommended against skip-breathing, which occurs when a long unnatural pause is inserted between each breath, as it leads to hypercapnia—an abnormally high level of carbon dioxide in the blood and body tissues-unconsciousness, and death. Involuntary hyperventilation—breathing more than is necessary to keep the body’s carbon dioxide tensions at proper level—can be triggered by fear experienced during stressful situations, the anxiety of the first few dives or the discomfort caused by the SCUBA equipment, the increase in static lung loading, or the increase in breathing resistance. A device monitoring the frequency of breathing can obviously save lives while preventing drowning accidents, injuries and fatalities related to hyperventilation and skip-breathing. In addition to recreational diving, the Diving Medical Advisory Committee has recommended monitoring the breathing of commercial divers to improve safety as early as 1979 [5]. Despite the health concerns of recreational and commercial divers, there are a limited number of health monitoring systems for SCUBA diving due to the nature of challenging environment. These efforts are mainly committed to monitoring the electrocardiogram (ECG) [6,7,8,9,10], blood glucose [11], and heart rate [12]. There is one commercially available dive computer which records the heart rate (Galileo Sol, Scubapro, El Cajon, CA, USA). Moreover, these monitoring attempts have never addressed breathing detection which can prevent major cause of deaths (drowning) and SCUBA diving injuries. Methods have been developed to detect and locate SCUBA divers remotely using passive and active acoustic monitoring for security as well as safety applications [13,14,15,16], using the sound emitted by the breathing of the diver and its regularity. There are, however, no studies on such systems applied to a group of several divers.
While there are numerous methods of pattern recognition and classification of time-varying signals applied widely to all fields of research in medicine, engineering or computer science [17,18,19], the vast majority of the solutions in the literature make use of algorithms requiring intensive computation, which would not be able to run on small, embedded systems with limited resources.
This study introduces the design and validation of a simple and robust breathing detection method based on identification of the sudden pressure drops in the hose of the breathing regulator of the diver triggered by inhalation.

2. Materials and Methods

2.1. Subjects

Eight scuba divers, 7 males and 1 female, volunteered for this study. They were all professional divers. There were two divers with Advanced level certification, four with Dive Master and two with Instructor level. They averaged an experience of 1300 dives per diver, and 226 dives in the past year. The age averaged 30.5 years (standard deviation (SD) of 7.3 years), ranging from 23 to 46 years old. 5 were smokers and 4 practiced a physical activity regularly. All divers had an up-to-date medical fitness-to-dive certificate delivered by a diving medical specialist. No medical condition was declared. Of the 7 male subjects, the weight averaged 73.3 kg (SD: 8.7 kg) and the height averaged 176.7 cm (SD: 5.2 cm). Written informed consent was obtained from all participants after a full explanation of the aims and procedures.

2.2. Recording System

The central piece of equipment of a scuba is the regulator, which drops the compressed gas contained in the tank to a breatheable pressure for the diver. This regulator is built on two stages: a first stage drops the pressure from the tank generally rated to 200 bar to an IP and the second stage drops the IP to the ambient pressure (PB). In the modern regulators, the IP is set to an absolute pressure of P B + 9 . 6 bar while the diver is not breathing. When the diver starts breathing, there is a sudden decrease in the IP value which returns gradually to its nominal value ( P B + 9 . 6 bar). The authors postulated that the detection of this sudden decrease triggered by inhalation can be used to detect respiratory frequency and can be used to identify the absence of breathing that will lead to drowning or anomalies such as hyperventilation and skip-breathing. A device was designed to detect the IP pressure change when mounted to the pressure hose of the buoyancy compensator device (BC) of the diver.
A system enabling recording of IP and PB signals designed in a previous study [20] was used for the experimental procedure. It is an electronic device built around a microcontroller (MSP430F5529, Texas Instruments Incorporated, Dallas, TX, USA), two pressure sensors (MS5837, TE Connectivity, Schaffhausen, Switzerland) and an internal memory component. Its firmware was developed in C language with Code Composer Studio 6.0 IDE (Texas Instruments Incorporated, Dallas, TX, USA). A custom made mechanical housing was designed to accommodate the device and was manufactured in aluminum with a computer numerical control router (CNC) machine. A view of the 3D design is given in Figure 1 and the technical drawing of the part is displayed in Figure 2. The design uses standard BC “quick-disconnect” type male and female connectors for an easy mounting on SCUBA equipment without requiring any additional adapter. The IP and PB sensors and well as the light-emitting diodes are to be assembled on the same electronic board for an efficient mounting when producing the device. A gasket ensures sealing of the device for depths tested up to 25 m.
This system is plugged to the IP hose of the BC which is normally used to inflate the BC, to sense the IP. Figure 3 details the components of the system and their communication flow in a block diagram. Figure 4 is a photograph of the system used for the experiment. Figure 5 shows the system in use underwater.
The system senses the ambient pressure of the air with its PB sensor at start up, which is later used to calculate the depth of the diver while underwater. It starts recording in memory the PB and IP signals as soon as the diver’s depth reaches 0.5 m. The record ends after 5 min have been spent at a depth shallower than 0.3 m. Specifications of the pressure sensors and recording resolution of IP and PB signals are given in Table 1. All recorded data is transferred to a personal computer (PC) application after the dive through a USB connection.

2.3. Detection Algorithm

A detection algorithm was designed to fit the following constraints: it should enable (1) a live detection of inhalation events with (2) a maximum delay of ten seconds and be (3) light-weight in order to be embedded in a non digital signal processing (DSP), ultra-low power microcontroller with a RAM limited to 6 kBytes for the algorithm and a processor frequency of maximum 25 MHz, such the MSP430F5529 or equivalent. The algorithm was designed to be light-weight in order to enable embedding it in not only a custom designed electronics, but also in common existing dive equipment electronics such as dive computers. Modern dive computers use power-efficient microcontrollers such as the MSP430F5529 to perform multiple dives with a single coin cell battery.
The algorithm proposes to detect inhalation events by the diver and to report the time of each detected inhalation, which by extent corresponds to monitoring the breathing of the diver.
Figure 6 details the IP signal recorded on a single inhalation event, which the algorithm aims at identifying. The algorithm proceeds in four steps. The first step subtracts the PB signal from the IP signal, applying Equation (1).
I P C = I P - P B
This is to compensate the fact that the IP is 9.6 bar above the PB in scuba regulators, as it is illustrated in Figure 7 where the correlation between PB and IP can be noticed visually. Therefore, the IP is affected by an offset directly affected by the depth of the diver. The first step aims at removing the depth variations from the IP signal. It must be noted that since the PB signal is sampled at 1 Hz and the IP signal is sampled at 20 Hz, each sample of the PB signal was repeated 20 times to match with the IP signal frequency, making the PB a step signal.
In the second step, the obtained signal is filtered with a first order, low-pass, Butterworth filter with a normalized cut-off frequency F c to remove the noise of the pressure sensor and the regulator itself during continuous inhalation. Figure 8 shows the effect of the low-pass filter on an extract of IP signal from dive 16.
In the third step, a window of the first M samples of the obtained signal is analyzed, where M is a positive integer. The minimum and maximum pressures on this M-window are determined, and a T h r e s h o l d variable is defined as:
T r [ 0 , 1 ] , T h r e s h o l d = T r . ( M a x - M i n ) + M i n
where M a x is the maximum pressure on the M-window, M i n is the minimum pressure on the M-window and T r is an arbitrary real number between 0 and 1.0. T h r e s h o l d is expressed in bar.
In the fourth step, the algorithm counts every time the signal sample value goes from above the threshold value to below or equal the threshold value within the window, such that
S [ n ] > T h r e s h o l d and S [ n + 1 ] T h r e s h o l d
where n is the sample number in the analyzed signal and S [ n ] is the pressure value of the n t h sample, in bar. Such condition is considered as an inhalation event and the sample number n is reported. The algorithm then moves the window by N samples forward (with N < M ) and repeats from the third step until the whole signal is analyzed, with the difference that in the fourth step the inhalation events are detected in a window of only the N latest samples in the M window, in order to avoid counting an event twice (since N < M ). Additionally, no inhalation event is accounted in the fourth step if the value ( M a x - M i n ) is smaller than a defined, arbitrary value named D i f f . This is to avoid noise being identified as an event when no actual inhalation occurs, and the IP signal stabilizes at an asymptotic value. This effect is illustrated in Figure 9 where D i f f was set to a value of 0.3 bar on the top figure—it is observed that no inhalation is detected when the diver stops breathing after sample 52000—and D i f f was set to 0.0 bar on the bottom figure, where inhalation events are wrongly detected after the diver stops breathing.
To sum-up, the detection algorithm is governed by the following variables: M unitless, N unitless, F c unitless, T r unitless, and D i f f in bar.

2.4. Experimental Procedure

Inhalation events were assessed simultaneously by the PB and IP recording system used in conjunction with the detection algorithm, and an underwater video camera (Edge X, Intova, Honolulu, HI, USA), at the aquarium Florya of Istanbul, Turkey, during the period of 24 October to 25 November 2016. Two tanks were used for the experiment. Tank 1 has a water temperature of 21.5 °C, a maximum depth of 7 m and hosts various species of sharks, leerfish, epinephelus marginatus, temperate basses, rays and other various marine life. Tank 2 has a temperature of 18 °C and a maximum depth of 6 m. Tank 2 hosts two banded breams, catfish, and gilt-head breams. The aquarium requires 13 dives per week for the maintenance of these tanks, involving sand and window cleaning.
Each subject was equipped with a scuba diving dry suit for thermal isolation. They equipped the recording system above their left arm, plugged between the first stage regulator hose and the BC connector which is the jacket enabling divers to balance their buoyancy underwater. Each participant was also equipped with a recording video camera fixed near their right shoulder prior to each test. Figure 5 shows the configuration of the device equipping a diver. Two dives were sampled per diver, with a surface interval of 20 min to 7 days between the two dives.
Each dive lasted between 49 and 69 min, and were performed at a maximum depth of 6.8 m. All tests were followed and data collected by one blinded observer who was not aware of the results obtained during the tests. The data was analyzed and inhalation events counted by another blinded observer, after all dives were performed and all data collected.
The first of the two dives involved the tasks of cleaning the glass of the aquarium. This was reported before the start of the experiment as a task demanding physical effort and constant movement. On the second dive, the subjects performed the siphoning of the sand in the aquarium, which consists in cleaning the sand. This activity was reported before the start of the experiment as less demanding physically and requiring less movement.
Participants were instructed to perform their work activities as usual. The assignment of the tank for the dive was not chosen by the experiment. The divers were instructed to follow at all times the safety protocol they were trained to, and to abandon the test should any equipment fail and cause to threaten their safety.
The camera started recording prior to the descent in the water and was stopped after the diver reached the surface at the end of the dive. The video record was backed up in a PC after the dive. The PB and IP recording system was started prior to the descent in the water. The system was configured to start recording PB and IP signals as soon as the diver’s depth reaches 0.5 m or deeper. The system stopped the record after 5 min have been spent on the surface. The data were backed up to a PC after the dive.

2.5. Performance Analysis

All analyses were performed with the numerical computing software Matlab 2015a for Windows (The MathWorks, Inc., Natick, MA, USA). Each inhalation event in the collected IP signals was manually marked by a blinded observer by analyzing only the graph of the unfiltered IP signal. The inhalation detection algorithm was implemented in Matlab scripts and true positives (TP), FP and false negatives (FN) events were counted for each recorded dive. Similarly to spike detection in EEG signal analysis described in [21], it is unclear what a true negative (TN) event is in the case of inhalation detection analysis and it will be therefore ignored.
Each inhalation event detected by the algorithm is marked by its sample number n in the IP signal. It is considered a TP if a manually marked event is present within the range [ n - 15 ; n + 5 ] . It is considered a FP otherwise. For each manually marked event with a sample number m, it is considered a FN if no inhalation event is detected by the algorithm within a range of [ m - 5 ; m + 15 ] . While the observer generally marks the event at the very beginning of the pressure drop, the algorithm is designed to mark the event at about half the way during the pressure drop, approximately 500 ms after the start of the drop as shown in Figure 10. Therefore, the asymmetric ranges of detection account for the fact that the observer-marked events are generally placed 500 ms before the algorithm-detected events, and this is considered acceptable.
The total sensitivity was computed for the whole dataset as:
S e n s i t i v i t y = T P T P + F N
where T P is the total number of events correctly detected by the algorithm on the 16 dives, and F N is the total number of missed (false negative) events on the 16 dives. The ratio R is defined as:
R = F P T P + F N
where F P is the total number of falsely detected events by the algorithm on the 16 dives. It must be noted that specificity cannot be quantified as TN was not defined.

2.6. Optimization

An optimization criteria was defined as
C r i t e r i a = ( 1 S e n s i t i v i t y ) + 2 · R
over the whole dataset. More weight was given to the ratio R than the sensitivity of the algorithm, as the end goal was to detect when the diver is not breathing, defining a case of emergency. A high ratio R expresses an algorithm with many FP, meaning that an inhalation event might be detected when there is actually none, which by extension may lead to believe the diver is breathing when he actually isn’t.
An initial study has shown that M and N had little influence on the global performance of the algorithm, as shown in Figure 11 and Figure 12. They were therefore fixed to M = 200 (10 s) and N = 100 (5 s).
The constants of the algorithm T r , F c and D i f f were then optimized with Matlab to minimize the output C r i t e r i a for the given dataset.

2.7. Validation

Two operators were given the video records of the dives and were instructed to mark down the time of each inhalation based on the sound and, when available, the vision of the diver’s face and bubbles, using the software SubtitleEdit (Nikolaj Lynge Olsson, Copenhagen, Denmark). They marked down the 10 first min of each dive. The operators were blinded observers with no access to the PB and IP data recorded by the system, and no access to one another’s analysis.
The vectors of events marked by the observer 2 were compared to the marked event vectors of observer 1 in order to evaluate the reproducibility of the marking process. The criteria of performance used for this comparison was the same as the criteria used to evaluate the performance of the algorithm: an event marked by observer 1 is considered a TP if an event marked by observer 2 is present within the range [ n - 15 ; n + 5 ] . It is considered a FP otherwise. Similarly, a FN is counted if no inhalation event of observer 2 is present within a range of [ m - 5 ; m + 15 ] . The ranges being asymmetric, the events of observer 1 were then compared against the events of observer 2.
For each dive, the events marked by the blinded observers were then synchronized with the recording system’s detected event vectors. The video camera started the video recording before the start of a dive, a time offset was applied to the vectors of the event marked by the blinded observers. For each dive, the same synchronization time offset was applied to the two observers’ vectors. The PB and IP recording system’s time base running slightly faster than the video camera device’s, probably due to a time calibration insufficiently accurate for both devices, time difference was compensated for in the Matlab scripts.
Finally, the events marked by the detection algorithm were compared to the events marked by observer 1 and 2, and the performance of the algorithm evaluated with the same criteria as above.

3. Results

3.1. Collected Data

A total of 16 dives were recorded and analyzed, totalling 13.9 h and 11081 marked inhalation events. Table 2 gives more details on the conditions for each dive. A total of 15 dives were properly recorded by the video camera device and analyzed by the two blinded observers, for a total of 154 min of video feed analyzed and 2339 marked inhalations by observer 1 and 2334 marked inhalations by observer 2.

3.2. Optimization

Optimization of the algorithm parameters based on the collected data and the marked events has given a solution:
T r = 0.55 F c = 0.037 D i f f = 0.3 bar
with a step size N of 100 samples (5 s) and a maximum delay of the Butterworth filter of 4 samples (0.2 s) as shown in Figure 13, the delay between actual inhalation and detection by the algorithm will be in the worst case of 5.2 s, meeting the initial requirements of ten seconds maximum.
In order to execute the algorithm while embedded in a microcontroller, at least ( M + N ) IP sensor measures must be stored in memory. PB compensation will be executed on the fly, removing the need to store PB signal in RAM. Each pressure value is encoded in 20 bits (2.5 bytes). The total RAM required to properly execute the algorithm is therefore: 2 . 5 × ( N + M ) = 2 . 5 × 15 × 20 = 750 bytes, meeting the initial requirements of 6 kBytes. It is a reasonable assumption that another 50 bytes of RAM will be necessary for the proper execution of the algorithm, to store various variables and indexes.

3.3. Algorithm Results

Table 2 lists the number of TP, FP and FN and the values of the sensitivity and the ratio R for each dive. The arithmetic mean sensitivity, time-mean sensitivity, the total sensitivity and the time-event weight sensitivity (as defined in [21]) are all equal to 97.5% when rounded to the first decimal.

3.4. Validation

The vectors of events marked by the observers based on the camera video recordings were compared to one another to evaluate the reproducibility of the process of identification of breathing events by analysis of the video recordings alone. The results are displayed in Table 3. The total process over the 15 dives had a sensitivity of 97.6% and ratio R of 2.4% for the data of observer 2 against observer 1, and a sensitivity of 94.5% and ratio R of 5.7% for the data of observer 1 against observer 2.
Synchronization of the vectors marked by the video observers with the vector of detected events by the algorithm being a tedious task, only one dive, dive 16, was synchronized and compared to the results of the algorithm. Over the 10.4 min of dive analyzed, the algorithm presented a sensitivity of 99.0% and a ratio R of 20.4% against the analysis of observer 1, and a sensitivity of 99.0% and a ratio R of 21.6% against the analysis of observer 2.

4. Discussion

In this study, the IP of the regulator of scuba divers and the PB signals were acquired in real diving conditions and an inhalation live-detection algorithm using these signals was designed and implemented with Matlab. The algorithm’s variables were optimized to obtain a high sensitivity and a low number of FP based on the collected dataset. On the dataset, the sensitivity of the algorithm was 97.5% and the total number of FP was 275 for 13.9 h of recording. The algorithm is expected to use 800 bytes of RAM and to present a maximum delay of 5.2 s.
To the best of our knowledge, this study is unique by using the IP signal to monitor the breathing of the scuba diver.

4.1. Limitations

The initial requirement that the algorithm must be executed on a low-power microcontroller with a maximum frequency of 25 MHz remains untested. Any estimation of execution cycles and time will be too approximate to quantify, and will depend partly on the compiler’s optimization. However, since the global operation of the algorithm remains simple and involving integers, it is expected that it should execute under a second to analyze a full window. The low-pass filter, involving floating point calculation, is expected to be the longest step of the algorithm to execute. Another potential issue is that the environment running on the microcontroller is not multi-threading, which may make the implementation delicate. The risk being that during the analysis of the acquired signal, no more sensor data may be acquired until the analysis has ended.
Sources of error that may have haltered the results have been identified. (1) Human error during the manual marking of the inhalation events may be the most significant. Since a large number of events have been marked manually, it is a reasonable assumption that a certain proportion of the events have been skipped, marked twice or mistakenly marked. It must be noted that verifications have been applied to remove events marked twice, but these verifications have limitations on their own; (2) The BC is an indispensable piece of equipment of the scuba diver, enabling balancing buoyancy underwater. Air is injected into the BC from the IP line. When injecting air into the BC, the IP is altered in a very similar manner to the diver’s inhalation event. It is often difficult to separate BC inflation from inhalation when manually marking the inhalation events.
Although the developed algorithm aims at being applicable to all scuba diving activities, this study has limitations: (1) all subjects were experimented scuba divers. It is a possibility that the breathing habits of inexperienced divers are different and affect the IP signal, and therefore affect the global performance of the algorithm; (2) All dives were performed with a maximum depth of 7 m, while the device was designed to perform up to 100 m. It is again a possibility that the IP signal is altered in deeper dives, affecting the algorithm’s performance.
Although it was shown that validation through video observation for identification of inhalation events was a reproducible process, the algorithm was compared to only one dive. Additionally, the act of synchronizing the video marked events with the algorithm’s detected event ensures one biased TP as the first event and one TP as the last event.

4.2. Applications

While a remote passive or active acoustic monitoring of scuba divers solution presents the advantage of requiring no device be embedded on the SCUBA divers, there has been no study on the sensitivity of such system applied to a group of divers and the effects on non-breathing event detection mechanism. It should be expected that the system, while able to detect the presence and location of the group of divers, may be unable to isolate each diver’s breathing sound to identify a non-breathing event, as the sound of the other divers would cover the event. It is therefore required that a device such as the system presented in this study be embedded on the diver’s equipment.
The system and algorithm presented in this study are a technology which aims at being implemented in existing or larger systems, such as dive computers. It only requires two pressure sensors (one of which is typically already available in every dive computer) and a microprocessor. The light-weight algorithm makes it easy to implement in various systems.
Additionally, the system can be used as a method of continuous monitoring of the scuba first stage regulator performance. Indeed, the IP is expected to be about 9.6 bar above the PB (the value changes with the regulator model and manufacturer). A higher IP may cause the second stage of the regulator to not withstand the excessive pressure and let gas flow out. This is called free flow, and may cause the tank to empty very quickly while the diver is underwater, leading to shortage of breathable gas. On the other hand, a lower IP may require additional effort from the diver to inhale, causing extra fatigue and increasing the risk of decompression sickness. In the worst case, the low IP will make it impossible to inhale breathable gas from the second stage regulator. The presence of the PB and IP sensors in the systems enables a continuous monitoring of the IP relatively to PB, which should enable early detection of the regulator going out of specification range which could potentially cause a dive accident.
From the detection of inhalation events can be deduced the respiratory rate, which can be used to identify novice’s irregular breathing, hyperventilation and skip-breathing, helping prevention of breathing related dive accidents.
Traditional communication methods used on surface such as radio frequency (RF) must be adjusted when applied to the underwater, due to the physical properties of the medium [22]. Optical [23,24], RF [22], magnetic induction [23], and acoustic [25] communication methods and combinations [26,27] have been developed for underwater applications. Several original equipment manufacturer (OEM) acoustic modems are commercially available, such as the S2C OEM Modem (EvoLogics GmbH, Berlin, Germany) or the SAM-1 (Desert Star Systems LLC, Monterey Bay, CA, USA), offering communication channels to any underwater electronic device. Combined with an underwater communication system, the solution presented in this study would enable automatic reporting to the rescue authorities located nearby on the surface or underwater. If bridged to an internet connection on the surface, the reports could be centralized to the Life Support System platform proposed in [28] or to a platform such as DAN Emergency Hotline, which provides 24 h a day medical assistance and support to handle diving emergencies such as decompression sickness, arterial gas embolism, pulmonary barotrauma or other serious diving-related injuries. Underwater acoustic communication having limited data rates, and RF, magnetic induction and optical communication having limited ranges [23], it remains essential that the algorithm identifying emergency situations such as a non-breathing diver be embedded on the device equipping the diver.
The technique described in this study is subject to a Turkish patent application [29].

5. Conclusions

The system and the algorithm presented in this study have demonstrated they enable a new method of continuous monitoring of the breathing of a scuba diver in activity underwater. The algorithm has shown a global sensitivity as high as 97.5% and a low number of 275 false positive inhalation events detected against the 11081 marked inhalation events. It has been determined that such algorithm requires only 800 bytes of RAM to execute, leaving a tiny footprint to even the smallest modern, non-DSP microprocessors and microcontrollers.
Our next aims are to implement and embed the algorithm in the MSP430F5529 microcontroller of the recording system in order to confirm the performance of the solution proposed in this study. A protocol shall be established, similar to the present study, to quantify the sensitivity and number of FP of the recording system with the embedded algorithm.

Acknowledgments

We wish to thank Abdullah Vice, diving supervisor, Istanbul Aquarium, Istanbul, Turkey for sharing his experience and for his help to safely run the experiment. The GreenBubbles project has received funding from the European Union’s Horizon 2020 research and Innovation programme under the Marie Sklodowska-Curie grant agreement No 643712. This document reflects only the authors view. The Research Executive Agency is not responsible for any use that may be made of the information it contains.

Author Contributions

Corentin Altepe and S. Murat Egi conceived and designed the experiments; D. Ruzgar Sinoplu performed the experiments; Corentin Altepe and D. Ruzgar Sinoplu analyzed the data; Paola Pierleoni designed the breathing event detection algorithm; Corentin Altepe implemented and optimized the algorithm; Corentin Altepe, S. Murat Egi and Paola Pierleoni wrote the paper.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
BCBuoyancy compensator, Buoyancy compensator device or Buoyancy control device
DANDivers Alert Network
DSPDigital signal processor or digital signal processing
ECGElectrocardiogram
FNFalse negative event detected
FPFalse positive event detected
IPIntermediate pressure
OEMOriginal equipment manufacturer
PBAmbient pressure (absolute)
PCPersonal computer
RAMRandom-access memory
RFRadio frequency
SDStandard deviation
SCUBASelf-contained underwater breathing apparatus
TNTrue negative event detected
TPTrue positive event detected

References

  1. Diving Equipment and Marketing Association (DEMA). Fast Facts: Recreational Scuba Diving and Snorkeling; DEMA: Las Vegas, NV, USA, 2014. [Google Scholar]
  2. Buzzacott, P. Annual Diving Report—A Report on 2014 Data on Diving Fatalities, Injuries, and Incidents; Technical Report; Divers Alert Network: Durham, NC, USA, 2016. [Google Scholar]
  3. Trout, B.M.; Caruso, J.L.; Nelson, C.; Denoble, P.J.; Nord, D.A.; Chimiak, J.; Martina, S.D.; Nochetto, M.; Pollock, N.W.; Lippmann, J.; et al. Annual Diving Report—A Report on 2010–2013 Data on Diving Fatalities, Injuries, and Incidents; Technical Report; Divers Alert Network: Durham, NC, USA, 2015. [Google Scholar]
  4. Naval Sea Systems Command. U.S. Navy Diving Manual; Revision 7; Direction of commander, Naval Sea Systems Command: Washington, DC, USA, 2016. [Google Scholar]
  5. Monitoring Sub-Committee of Diving Medical Advisory Committee. In-Water Diver Monitoring; Technical Report; Monitoring Sub-Committee of Diving Medical Advisory Committee: London, UK, 1979. [Google Scholar]
  6. Kynor, B.; David, A.E.W. Diver Health Monitoring System; Creare LLC: Hanover, NH, USA, 2011. [Google Scholar]
  7. Unnikrishna Menon, K.A.; Shibina, J.S.; Menon, V.N. Intelligent system for remote health monitoring of divers using underwater acoustic communication. In Proceedings of the Fifth International Conference on Computing, Communications and Networking Technologies (ICCCNT), Hefei, China, 11–13 July 2014. [Google Scholar]
  8. Cibis, T.; Groh, B.H.; Gatermann, H.; Leutheuser, H.; Eskofier, B.M. Wearable real-time ecg monitoring with emergency alert system for scuba diving. In Proceedings of the 2015 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Milan, Italy, 25–29 August 2015; pp. 6074–6077. [Google Scholar]
  9. Fell, R.B.; Skutt, H.R.; Waterfield, A. A four-channel ultrasonic telemetry system for obtaining physiological data from ocean divers. Biotelemetry 1974, 1, 50–59. [Google Scholar] [PubMed]
  10. Kanwisher, J.; Lawson, K.; Strauss, R. Acoustic telemetry from human divers. Undersea Biomed. Res. 1974, 1, 99–109. [Google Scholar] [PubMed]
  11. Pieri, M.; Cialoni, D.; Marroni, A. Continuous Real-Time Monitoring and Recording of Glycemia during Scuba Diving: Pilot Study; Undersea & Hyperbaric Medical Society: West Palm Beach, FL, USA, 2016; pp. 265–272. [Google Scholar]
  12. Gooden, B.A.; Feinstein, R.; Skutt, H.R. Heart rate responses of scuba divers via ultrasonic telemetry. Undersea Biomed. Res. 1975, 2, 11–19. [Google Scholar] [PubMed]
  13. Korenbaum, V.I.; Gorovoy, S.V.; Tagiltsev, A.A.; Kostiv, A.E.; Borodin, A.E.; Pochekutova, I.A.; Vasilistov, A.M.; Krupenkov, A.C.; Shiryaev, A.D.; Vlasov, D.I. The possibility of passive acoustic monitoring of a Scuba Diver. Dokl. Earth Sci. 2016, 466, 187–190. [Google Scholar] [CrossRef]
  14. Sharma, N.S.; Yakubovskiy, A.M.; Zimmerman, M.J. SCUBA diver detection and classification in active and passive sonars—A unified approach. In Proceedings of the 2013 IEEE International Conference on Technologies for Homeland Security (HST), Waltham, MA, USA, 12–14 November 2013; pp. 189–194. [Google Scholar]
  15. Donskoy, D.; Imas, L.; Yen, T.; Sedunov, N.; Tsionskiy, M.; Sedunov, A. Turbulence-Induced Acoustic Emission of SCUBA Breathing Apparatus. In Proceedings of the 18th International Symposium on Nonlinear Acoustics Nonlinear Acoustics—Fundamentals and Applications, Stockholm, Sweden, 7–10 July 2008; pp. 95–98. [Google Scholar]
  16. Donskoy, D.M.; Sedunov, N.A.; Sedunov, A.N.; Tsionskiy, M.A. Variability of SCUBA diver’s acoustic emission. In Proceedings of the Optics and Photonics in Global Homeland Security IV, Orlando, FL, USA, 16 March 2008. [Google Scholar]
  17. Alfaro-Poncea, M.; Argüellesb, A.; Chairez, I. Pattern recognition for electroencephalographic signals based on continuous neural networks. Neural Netw. 2016, 79, 88–96. [Google Scholar] [CrossRef] [PubMed]
  18. Ertuğrul, Ö.F.; Kaya, Y.; Tekin, R. A novel approach for SEMG signal classification with adaptive local binary patterns. Med. Biol. Eng. Comput. 2016, 54, 1137–3346. [Google Scholar] [CrossRef] [PubMed]
  19. O’Brien, R.J.; Fontana, J.M.; Ponso, N.; Molisani, L. A pattern recognition system based on acoustic signals for fault detection on composite materials. Eur. J. Mech. A Solids 2017, 64, 1–10. [Google Scholar] [CrossRef]
  20. Altepe, C.; Egi, S.M.; Ozyigit, T.; Pierleoni, P. Nerites-Underwater Monitoring System of Diver’s Respiration and Regulator Performance using Intermediate Pressure Signal. In Proceedings of the 9th International Joint Conference on Biomedical Engineering Systems and Technologies, Rome, Italy, 21 February 2016; pp. 119–124. [Google Scholar]
  21. Casson, A.J.; Luna, E.; Rodriguez-Villegas, E. Performance metrics for the accurate characterisation of interictal spike detection algorithms. J. Neurosci. Methods 2009, 177, 479–487. [Google Scholar] [CrossRef] [PubMed]
  22. Liu, L.; Zhou, S.; Cui, J.H. Prospects and problems of wireless communication for underwater sensor networks. Wirel. Commun. Mob. Comput. 2008, 8, 977–994. [Google Scholar]
  23. Akyildiz, I.F.; Wang, P.; Sun, Z. Realizing Underwater Communication through Magnetic Induction. IEEE Commun. Mag. 2015, 53, 42–48. [Google Scholar] [CrossRef]
  24. Uema, H.; Matsumura, T.; Saito, S.; Murata, Y. Research and Development on Underwater Visible Light Communication Systems. Electron. Commun. Jpn. 2015, 98, 9–13. [Google Scholar] [CrossRef]
  25. Stojanovic, M.; Preisig, J. Underwater acoustic communication channels: Propagation models and statistical characterization. IEEE Commun. Mag. 2009, 47, 84–89. [Google Scholar] [CrossRef]
  26. Akyildiz, I.F.; Wang, P.; Lina, S.C. SoftWater: Software-defined networking for next-generation underwater communication systems. Ad Hoc Netw. 2016, 46, 1–11. [Google Scholar] [CrossRef]
  27. Song, Y.; Tong, Z.; Cong, B.; Yu, X.; Kong, M.; Lin, A. A Combined Radio and Underwater Wireless Optical Communication System based on Buoys. In Proceedings of the 8th International Conference on Advanced Infocomm Technology, Hangzhou, China, 25–27 October 2015. [Google Scholar]
  28. Laurino, M.; Guerriero, L.; Allegrini, P.; Menicucci, D.; Mastorci, F.; Magrin, D.; Allotta, B.; Bedini, R.; Gemignani, A. Psycho-physiological tele-monitoring of human operators in commercial diving: The Life Support System in the SUONO project. In Proceedings of the 2015 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Milan, Italy, 25–29 August 2015; pp. 194–197. [Google Scholar]
  29. Murat Egi, S.; Altepe, C.; Ozyigit, T. Scuba diving breathing and open-circuit regulator performance monitoring, warning and alarm system. Turkey Patent Application No. 2015/08200, 2 July 2015. [Google Scholar]
Figure 1. View of the 3D design of the device’s casing.
Figure 1. View of the 3D design of the device’s casing.
Sensors 17 01349 g001
Figure 2. Technical drawing of the device’s casing, dimensions in mm.
Figure 2. Technical drawing of the device’s casing, dimensions in mm.
Sensors 17 01349 g002
Figure 3. Block diagram of the recording system’s composition.
Figure 3. Block diagram of the recording system’s composition.
Sensors 17 01349 g003
Figure 4. Photograph of the recording system.
Figure 4. Photograph of the recording system.
Sensors 17 01349 g004
Figure 5. Photograph of a diver equipped with the recording system (above left arm) and a video camera (above right arm).
Figure 5. Photograph of a diver equipped with the recording system (above left arm) and a video camera (above right arm).
Sensors 17 01349 g005
Figure 6. Intermediate pressure (IP) signal on an inhalation event.
Figure 6. Intermediate pressure (IP) signal on an inhalation event.
Sensors 17 01349 g006
Figure 7. Extract of ambient pressure (PB) and IP signal of dive 3.
Figure 7. Extract of ambient pressure (PB) and IP signal of dive 3.
Sensors 17 01349 g007
Figure 8. Extract of dive 16 IP unfiltered signal (blue) and signal filtered with first-order, low-pass Butterworth filter with normalized cut-off frequency of 0.37 and delay compensated (red).
Figure 8. Extract of dive 16 IP unfiltered signal (blue) and signal filtered with first-order, low-pass Butterworth filter with normalized cut-off frequency of 0.37 and delay compensated (red).
Sensors 17 01349 g008
Figure 9. Extract of dive 16 filtered signal (blue) and inhalation events detected by the algorithm (vertical black lines), with M = 200 , N = 100 , T r = 0.55 and F c = 0.037 D i f f = 0.3 bar (a) and D i f f = 0.0 bar (b).
Figure 9. Extract of dive 16 filtered signal (blue) and inhalation events detected by the algorithm (vertical black lines), with M = 200 , N = 100 , T r = 0.55 and F c = 0.037 D i f f = 0.3 bar (a) and D i f f = 0.0 bar (b).
Sensors 17 01349 g009
Figure 10. Extract of dive 16 filtered signal with marked inhalation time (red) and inhalation time as detected by the algorithm (black).
Figure 10. Extract of dive 16 filtered signal with marked inhalation time (red) and inhalation time as detected by the algorithm (black).
Sensors 17 01349 g010
Figure 11. Criteria vs. M over the 16 dives data with N = 100 , F c = 0.037 , T r = 0.55 and D i f f = 0.3 b a r .
Figure 11. Criteria vs. M over the 16 dives data with N = 100 , F c = 0.037 , T r = 0.55 and D i f f = 0.3 b a r .
Sensors 17 01349 g011
Figure 12. Criteria vs. N over the 16 dives data with M = 200 , F c = 0.037 , T r = 0.55 and D i f f = 0.3 b a r .
Figure 12. Criteria vs. N over the 16 dives data with M = 200 , F c = 0.037 , T r = 0.55 and D i f f = 0.3 b a r .
Sensors 17 01349 g012
Figure 13. Response delay of the first order Butterworth low-pass filter used in the inhalation detection algorithm.
Figure 13. Response delay of the first order Butterworth low-pass filter used in the inhalation detection algorithm.
Sensors 17 01349 g013
Table 1. Specifications of the recording system.
Table 1. Specifications of the recording system.
SpecificationValueUnit
PB Sensing Resolution5.4mbar
Absolute Accuracy±100mbar
Sampling Rate1Hz
IP Sensing Resolution0.5mbar
Absolute Accuracy±100mbar
Sampling Rate20Hz
Maximum Depth100m
Table 2. Specifications of recorded dives and algorithm performance per dive.
Table 2. Specifications of recorded dives and algorithm performance per dive.
DiveDiverTankMax. DepthDurationNi 1 TP 2 FP 3 FN 4 SensitivityR
Dive 1Diver 1Tank 16.6 m50 min50549451197.8%1.0%
Dive 2Diver 1Tank 16.3 m57 min461437622494.8%13.4%
Dive 3Diver 2Tank 24.5 m49 min881854302796.9%3.4%
Dive 4Diver 2Tank 24.5 m49 min6966914599.3%0.6%
Dive 5Diver 3Tank 16.4 m47 min673640193395.1%2.8%
Dive 6Diver 3Tank 16.8 m49 min541527231497.4%4.3%
Dive 7Diver 4Tank 16.5 m43 min698653184593.6%2.6%
Dive 8Diver 4Tank 16.8 m55 min71870631298.3%0.4%
Dive 9Diver 5Tank 15.9 m51 min7707683299.7%0.4%
Dive 10Diver 5Tank 16.7 m55 min7297245599.3%0.7%
Dive 11Diver 6Tank 16.8 m64 min908866154295.4%1.7%
Dive 12Diver 6Tank 15.8 m69 min968948102097.9%1.0%
Dive 13Diver 7Tank 15.7 m47 min87986131898.0%0.3%
Dive 14Diver 7Tank 15.4 m50 min61661025699.0%4.1%
Dive 15Diver 8Tank 24.7 m46 min592580161298.0%2.7%
Dive 16Diver 8Tank 16.9 m50 min44644334399.3%7.6%
1 Marked events; 2 True positive; 3 False positive; 4 False negative.
Table 3. Results of video analysis and comparison of observer 1 data vs. observer 2.
Table 3. Results of video analysis and comparison of observer 1 data vs. observer 2.
DiveDuration 1 Observer 1 vs. Obs. 2Observer 2 vs. Obs. 1
Ni 2 SensitivityRNi 2 SensitivityR
Dive 110.6 min12993.0%7.8%13096.9%2.3%
Dive 210.6 min10888.0%14.8%11197.3%0.9%
Dive 310.4 min19494.5%4.6%19397.9%2.6%
Dive 410.2 min17494.3%6.9%17698.3%0.6%
Dive 510.8 min17298.3%2.3%17399.4%0.6%
Dive 610.3 min17097.1%2.4%16998.2%2.4%
Dive 78.4 min15092.7%6.0%14897.3%4.1%
Dive 810.7 min16187.0%13.0%16195.7%4.3%
Dive 910.1 min18195.6%4.4%18199.4%0.6%
Dive 1010.2 min16395.7%3.7%16299.4%1.2%
Dive 1110.3 min13691.2%5.9%13291.7%11.3%
Dive 1310.4 min21495.3%7.5%22095.4%1.8%
Dive 1410.2 min14497.9%1.4%144100.0%0.7%
Dive 1510.6 min13697.1%3.7%13797.1%2.2%
Dive 1610.4 min10298.0%2.9%10399.0%1.0%
1 Duration of the analyzed video; 2 Marked events.

Share and Cite

MDPI and ACS Style

Altepe, C.; Egi, S.M.; Ozyigit, T.; Sinoplu, D.R.; Marroni, A.; Pierleoni, P. Design and Validation of a Breathing Detection System for Scuba Divers. Sensors 2017, 17, 1349. https://doi.org/10.3390/s17061349

AMA Style

Altepe C, Egi SM, Ozyigit T, Sinoplu DR, Marroni A, Pierleoni P. Design and Validation of a Breathing Detection System for Scuba Divers. Sensors. 2017; 17(6):1349. https://doi.org/10.3390/s17061349

Chicago/Turabian Style

Altepe, Corentin, S. Murat Egi, Tamer Ozyigit, D. Ruzgar Sinoplu, Alessandro Marroni, and Paola Pierleoni. 2017. "Design and Validation of a Breathing Detection System for Scuba Divers" Sensors 17, no. 6: 1349. https://doi.org/10.3390/s17061349

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop