Skip to content

About

Fractional-order Takens phase-space attractor reconstruction and PyTorch deep learning classifier for cardiopulmonary pathology screening.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

BioAcousticSpectralNet (BAS-Net)

A deep learning architecture for non-invasive cardiopulmonary pathology classification using Fractional-Order Takens Phase-Space Attractor Reconstruction across synchronized Phonocardiogram (PCG) and Seismocardiogram (SCG) signals, implemented in PyTorch.

This repository accompanies the article BioAcousticSpectralNet: Classifying Cardiopulmonary Pathologies via Fractional-Order Phase-Space Attractors in PyTorch.


Scientific & Mathematical Foundation

Standard medical audio classifiers convert 1D acoustic waveforms into 2D Short-Time Fourier Transform (STFT) or Mel-spectrogram images. While effective for speech, fixed-window spectrograms discard non-linear phase trajectories and mechanical electromechanical coupling delays between cardiac valve closure (acoustic PCG) and sternal chest-wall recoil (accelerometric SCG).

BioAcousticSpectralNet (BAS-Net) replaces linear spectrograms with a 3-channel topological phase-space tensor grounded in Takens' Delay-Embedding Theorem and Fractional Calculus:

  1. Grünwald–Letnikov Fractional Derivative ($D^\alpha x[n]$): Biological myocardial tissue exhibits power-law viscoelastic damping rather than pure Newtonian viscosity. Applying a fractional derivative of order $\alpha = 0.65$ captures hereditary tissue memory without amplifying high-frequency sensor noise:

    $$D^\alpha x[n] = \frac{1}{\Delta t^\alpha} \sum_{k=0}^{M-1} (-1)^k \binom{\alpha}{k} x[n - k]$$

  2. Cross-Modal Takens Attractor & Hilbert Phase-Locking Tensor ($64 \times 64 \times 3$):

    • Channel 0: Log-compressed 2D phase-space occupancy density of $(x_{\text{PCG}}(t), D^\alpha x_{\text{PCG}}(t - \tau))$.
    • Channel 1: Log-compressed 2D phase-space occupancy density of $(x_{\text{SCG}}(t), D^\alpha x_{\text{SCG}}(t - \tau))$.
    • Channel 2: Instantaneous Hilbert analytic phase coherence $\cos(\phi_{\text{PCG}}(t) - \phi_{\text{SCG}}(t))$ projected onto the joint attractor manifold.
  3. Multi-Scale Squeeze-and-Excitation Attractor Network: Parallel $3 \times 3$ and $5 \times 5$ depthwise-separable convolutions paired with Squeeze-and-Excitation (SE) channel attention classify pathological limit-cycle distortions (e.g., aortic stenosis, mitral regurgitation, and diastolic dysfunction).


Repository Structure

BioAcousticSpectralNet/
├── model.py            # Fractional calculus operator, Takens tensor builder, & PyTorch BAS-Net
├── train_eval.py       # End-to-end training & stratified evaluation pipeline
├── requirements.txt    # Python dependencies (PyTorch, NumPy, SciPy, scikit-learn)
├── .gitignore          # Standard Python / PyTorch ignore rules
├── LICENSE             # MIT License
└── README.md           # Mathematical formulation & usage guide

Getting Started

Installation

git clone https://github.com/ratawil/BioAcousticSpectralNet.git
cd BioAcousticSpectralNet
pip install -r requirements.txt

Run Training & Evaluation

python train_eval.py

License

Licensed under the MIT License.

About

Fractional-order Takens phase-space attractor reconstruction and PyTorch deep learning classifier for cardiopulmonary pathology screening.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages