Medical Applications of AI
“Days of Miracle and Wonder”
- Paul Simon
Three Examples
Quantum ghost camera
Entagled photons of different Ultra-low light imaging: By using heralded single photons, background counts can be virtually eliminated, achieving high-quality images from fewer than one detected photon per image pixel on average News-Medical
Why do such a strange thing ?
Red light cameras are. Great for biologic specimens
Blue light camera are cheap, well-researched
Medical imaging with reduced radiation dose
Imaging through turbulent or obscuring media
Low-light imaging scenarios
Remote sensing and surveillance
How good is AI ?
.3 microns
1/20 the diameter of a human hair
How does AI do it ?
A combination of quantum and digital computing.
Planning radiation therapy
U-net and variants
Basic Architecture
U-Net has a distinctive "U" shape when you diagram it, which is where it gets its name. It consists of two main pathways:
The Key Innovation: Skip Connections
What makes U-Net special are the horizontal "skip connections" that bridge across the U, connecting layers from the encoder directly to corresponding layers in the decoder. These connections allow the network to combine:
This is crucial for medical image segmentation because you need both precise boundaries and contextual understanding.
Cardiac fun facts
The Heart is a Pump
“All we know is still infinitely less than all that unknown.”
- William Harvey
Key Aspects of Harvey's Model:
Heart as a Pump: Harvey established that the heart (specifically the left ventricle) acts as a pump,
contracting actively to expel blood into the arteries, with the pulse being the result of this action.
Continuous Circuit: Blood moves in a continuous circuit, rather than being used up by tissues.
Directional Flow and Valves: He demonstrated, using ligatures, that venous blood flows only toward
the heart, aided by valves that prevent backflow.
Quantitative Proof: By calculating the volume of blood pumped by the heart, Harvey showed that it was
impossible for the liver to create such a massive amount of blood daily, proving it must be recycled.
Connection of Vessels: While he did not see them, Harvey predicted the existence of microscopic vessels
(capillaries) connecting arteries to veins.
1578 – 1657
The magic stethoscope
Active Noise Cancellation (ANC): Reduces, background noise in busy environments (ED, ICU),
allowing for better focus on body sounds.
Sound Amplification:.
Visualization & Recording: The ability to visualize phonocardiograms (heart sound waveforms)
on a smartphone or computer screen.
With AI enhancement can immediately identify:
1. Murmurs - valvular problem
2. Heart Failure - with and without preserved ejection fraction
3. Atrial Fibrillation
4. Pulmonary hypertension
SYSTEMATIC REVIEW article
Front. Artif. Intell., 12 November 2024
Sec. Machine Learning and Artificial Intelligence
Volume 7 - 2024 | https://doi.org/10.3389/frai.2024.1434022
A review on deep learning methods for heart sound signal analysis
Good reference:
1816
Chinese diagnosis dolls
le cylindre
ECG - Atrial Fibrillation
Always
Increases with age and heart disease
Never
The Heart Valves
TheHeart Sings
How did AI do it ?
I. Signal processing
1. Get rid of the noise
2. Segmentation - S1 and S2 and interval spaces in between
3. Spectral analysis - �
4. Mel-frequency - how the human ear hears noise.
Developed over evolution to a functional pattern.\
5. Cepstral coefficients (MFCCs).
The heart is an echo chamber
The terms "quefrency", "alanysis", "cepstrum" and "saphe" were invented by the authors by rearranging the letters in frequency, analysis, spectrum, and phase.
II. Deep neural networks
1. CNN - (convolutional neural network) - small filter - detects acoustic features
Human correlate - hardwired to identify edges, corners - pitch, pause
2. RNN - (recurrent neural network) use of memory - add in the element of time
in order to deal with dynamic phenomena
Human correlate - multiple memories
Sensory - iconic, echoic, haptic, smell, taste
Conscious - episodic, semantic (facts, language)
Unconscious - muscle memory, priming
3. LTSM -(long short term memory
Human correlate - short, working, long-term. Pruning through dreams.
4. Transformers act as attention focus
Human correlate - the brain as a Bayesian sibyl - generative models are updated by surprise
III. A clever plot twist - they used visual analysis of sonic frequencies
IV. Add ECG, ejection fraction, age, sex
Valvular Heart Disease
How did AI do ?
Overall Performance for Moderate-to-Severe Valvular Heart Disease
AI-enabled digital stethoscopes demonstrated 92.3% sensitivity compared to 46.2% - essentially doubling detection rates
However, specificity was slightly lower at 86.9% compared to 95.6% for clinicians News-Medical.
The technology represents a significant advance, particularly for primary care screening where
traditional auscultation frequently misses valvular disease in asymptomatic patients.
Clinical Implications
Best for severe disease - AI performs particularly well for severe AS and severe MR, where early detection has the greatest clinical impact
Screening tool, not replacement - These devices function best as an additional screening layer to support clinical judgment, not replace it
Cardiac output
Ejection fraction
Oh No !
More heart sounds
S1 and S2 are each two sounds
S3 and S2
Clicks
Artificial heart valves
AI has to be able to distinguish artificial from normal
AI has to be able to distinguish abnormal from normal
Ejection fraction
AI Programs Used for Heart Sound Analysis and Ejection Fraction
1. Gated Recurrent Unit (GRU): Gao et al. developed a heart failure screening framework using a GRU model that distinguished between normal subjects, heart failure with preserved ejection fraction (HFpEF),
and heart failure with reduced ejection fraction (HFrEF) using heart sounds, achieving 98.82% accuracy SciencePubMed Central.
2. CNN and RNN Combined
3. Deep Convolutional Generative Adversarial Networks (DCGAN): .
Two Networks in Competition
Two models are trained simultaneously by an adversarial process: a generator learns to create images that look real, while a discriminator learns to tell real images apart from fakes AJMC.
The concept is simple yet effective - the generator takes noise as input and generates data samples while the discriminator tries to classify those samples from real samples, causing a two-player game
where the generator tries to generate samples indistinguishable from real data while the discriminator becomes better at distinguishing between them
4 Wavelet Transform (DWT): Applied for denoising heart sound signals, as heart sounds are sensitive to noise and the DWT coefficient of heart sound signals is larger than noise components ScienceDirect.
Provides in formation about what frequencies and where they occur in time.
How did AI do it ?
How did AI do?
Pulmonary Hypertension
71% sensitivity means it would catch about 7 out of 10 cases of elevated pulmonary pressures, but miss roughly 3 out of 10
73% specificity means about 27% false positive rate - roughly 1 in 4 people without PH would screen positive