ducer is filtered by a second order Butterworth low
pass filter with a cut-off frequency of 40Hz. The sig-
nal amplitude is adjusted to the maximum value of the
acquisition module (0 to 2.5V), considering the max-
imum expected flow range (-70 to +70ℓ/min). For
that, it is amplified and summed to a dc offset to
achieve positive values. The obtained resolution is
17.9mV(ℓ/min)
−1
.
2.2 Control Module
The main IC of the control module is the ADuC841
microcontroller (Analog Devices), an optimized
single-cycle 20 MHz 8052 core. It has a 12-bit analog
to digital converter (ADC) fed by an 8-channel ana-
log input multiplexer, four different memory blocks
(62 kiB of flash for code, 4 kiB of flash for data, 256
bytes of general-purpose RAM and 2 kiB of internal
XRAM), 3 timers, serial communication interfaces
(UART, SPI, I2C) and 2 digital to analog converter
(DAC) of 12 bits.
After being filtered and amplified, the three respi-
ratory signals and the flow waveform are simultane-
ously sampled at 10 kSPS by a sample - and - hold (IC
SMP04 - Analog Devices). The ADuC841 gets, one
by one, the sampled voltage values and converts them
to digital. It carries out the conversion in 8 µs with a
voltage resolution of 0.61mV (1LSB=2.5 V/4096 ).
The digital samples are sent to the data-transfer
device (IC FT245BM – Future Technology Devices
Intl.) that establishes the USB communication with
a notebook, transferring data at the rate of 1MiB/sec
(Axelson, 2005).
2.3 PC Software
Software developed in C++ Builder establishes the
communication between the computer and the control
module. For that, USB driver made available by the
FT245BM manufacturer is employed.
The received data contain multiplexed samples of
each channel. The samples have a header with the
number of the channel to which they belong.
The software demultiplexes the received data and
shows them on the screen in real time. To achieve
that, a scientific chart library for plotting multiple
curves (Scope) is used (Scientific Plotting Library)
since the native C++ Builder library is quite slow for
real time applications. Each sampled waveform is
stored into the hard disk in individual wave files. Fig-
ure 3 shows the screen of the developed software.
3 RESULTS
To assess the qualitative performance of the devel-
oped system, adventitious sounds were recorded from
patients of a Medical School Hospital (Federal Uni-
versity of Santa Catarina) after the approval by its Re-
search Ethics Committee (Process number:181/2007).
The patients were in a room without noise level
control (infirmary). Based on the medical records,
clinical signs, chest x-rays and lung function studies,
the patients were diagnosed with the following pul-
monary conditions: heart failure (2 men), idiopathic
pulmonary fibrosis (3 men), pneumonia (2 men) and
asthma (5 women).
Figures 3 and 4 show examples of sound curves
as well as flow waveforms that were simultaneously
recorded using the developed system.
The sounds collected from twelve patients (with-
out any post-processing) were reproduced to seven
respiratory sound specialists of the Therapeutic Labo-
ratory in the Medical School of the University of S˜ao
Paulo (LTFMUSP). The specialists filled up a ques-
tionnaire on the quality of the recorded sounds. 42
opinions were obtained (Table 1). Besides the sound
quality, the questionnaire aimed to evaluate the need
for further processing of the sounds to improve the
diagnosis.
4 DISCUSSION
Figure 4a shows that crackles occurred during the in-
spiration and expiration for a fibrosis patient. Patient
with heart failure had crackles only at the end of the
inspiration (Figure 4b). It should be noted that this
condition may generate crackles during expiration as
well (Piiril¨a et al., 1991; Vyshedskiy et al., 2009).
Figure 4c and d shows an expanded crackle wave-
form. The American Thoracic Society (ATS) uses
time intervals of the expanded crackle waveforms
(initial deflection width (IDW) and two-cycle dura-
tion (2CD)) to classify the crackles in two classes:
fine, or high pitched crackles, and coarse, or low
pitched crackles (American Thoracic Society, 1977).
Figure 5a shows crackles and wheezes acquired from
a patient with pneumonia. Figure 5b shows the ex-
panded wheezes also known as squawks (Paciej et al.,
2004).
Figure 6 shows a short acoustic interval contain-
ing wheezes (and its sonogram) acquired from a pa-
tient with acute asthma. It is possible to see that the
recorded sound has more than one tone, being named,
therefore, polyphonic wheezes.
BIODEVICES 2010 - International Conference on Biomedical Electronics and Devices
24