Docs/Breathe Module
v3.1.5
Technical Specificationv3.1.5

Breathe Module: Acoustic Monitoring

10 min read Peer Verified

Primary Input Architecture

The Breathe Module utilizes high-gain omnidirectional microphones configured as dual-channel arrays for spatial sound localization and noise rejection.

ParameterSpecificationClinical Rationale
Microphone TypeElectret condenser, omniCaptures respiratory sounds from multiple angles
Sample Rate48 kHz (configurable 24-96 kHz)Nyquist frequency >20 kHz for high-frequency wheezes
Bit Depth24-bitDynamic range >110 dB for quiet breathing detection
Frequency Response20 Hz - 20 kHz ±3 dBFull spectrum respiratory sound capture

Analysis Core: FFT + TRNN

The Breathe Module employs a dual-stage analysis pipeline combining classical signal processing with deep learning:

Stage 1: Fast Fourier Transform (FFT)

Time-domain audio is transformed into frequency-domain representation using a 512-point Hann-windowed FFT with 75% overlap.

Stage 2: Temporal Rhythmic Neural Network (TRNN)

The TRNN is a bidirectional LSTM architecture trained on 150,000+ annotated respiratory cycles.

Training Data150,000+ respiratory cycles from 12 clinical sites
Class DistributionNormal (70%), Wheeze (15%), Crackle (10%), Stridor (5%)

Output Specifications

1. Respiratory Rate (RR)Primary Metric

Calculated using autocorrelation of amplitude envelope. Accuracy: Sensitivity >92% for 10-60 breaths/min.

2. Cough FrequencyEvent Detection

Detected using spectral flux thresholding combined with duration filtering.

3. Wheeze DetectionPathology

Identified using spectral centroid elevation combined with harmonic structure analysis. Confidence scoring >0.85 triggers urgent alert.

Wheeze Sensitivity

>92%

Detection vs. gold-standard auscultation

RR Accuracy

±1.2 BPM

Mean absolute error vs. manual count

False Positives

<8%

In clinical noise environments

Integration Architecture

AiVet enables seamless integration with practice management systems through secure webhooks and standardized FHIR resources.