Point-of-Care Imaging

Automated Lung Ultrasound

A-lines and B-lines are the fastest bedside read on a sick lung, but a ward short on trained sonographers cannot always find someone to read them. Six systems built together teach a machine to do that reading instead: spot the landmarks, segment the lines, score severity, and hand back only the frames that matter.

123fps
Landmark detection,
14MB network
0.80
Dice score segmenting
A- and B-lines
99%
Sensitivity, unsupervised
landmark detection
77%
Smaller video after
summarization

A-lines and B-lines take a trained eye to read

Point-of-care ultrasound is cheap and radiation-free. Reading it consistently is not.

A healthy lung reflects almost all of an ultrasound pulse back and forth between the pleura and the transducer, producing the horizontal reverberation lines called A-lines. Fluid in the lung breaks that reflection and lets the pulse propagate past the pleura, producing vertical B-lines instead. Counting these two patterns is how a clinician grades lung involvement in COVID-19, pulmonary edema and other interstitial disease, at the bedside, without radiation.

The bottleneck is not the scanner, it is the reader. Ultrasound interpretation is operator-dependent, and the hospitals seeing the most patients during a respiratory surge are often the ones with the fewest sonographers on shift. An automated pipeline has to do four things a clinician does by eye: find the landmarks, segment the lines, score severity, and surface only the frames worth a second look.

Three-step pipeline: ultrasound scanning, deep learning based segmentation identifying A-lines and B-lines, feeding a triage decision based on lung involvement that branches into treatment or follow-up.
Pipeline The shared shape of every approach on this page: scan, segment the lines with deep learning, and use the count to triage and follow up.

Finding pleura, A-lines and B-lines two different ways

A fast supervised detector for real-time use, and an unsupervised one for when there are no labels to train on.

lungEcho runs a 14MB YOLOv5s network trained to find eight things in a frame: pleura, rib, shadow, A-lines, B-lines, B-patches, consolidations and air bronchograms. On a Quadro P4000 it processes a frame in 8.1ms, fast enough for live video at 123fps, and reaches a mean average precision of 66% at an IoU of 0.5, the best of four single-stage detectors tested and the smallest by a wide margin.

Object detectors retrained and compared on the same LUS test set
DetectorBackbonemAP@0.5FPSSize
YOLOv5sCSPDarknet0.66012314 MB
SSDVGG-160.6303196 MB
RetinaNetResNet-500.529492 MB
EfficientDetEfficientNet0.3571717 MB

83 held-out test images, 416×416 input (300×300 for SSD), single Quadro P4000 GPU.

lungEcho framework diagram: the clinician-facing interface calls a trained YOLO model to detect LUS landmarks, which drive an infection severity score and an image quality score; frames scoring above 45 feed video summarization, and frames scoring below 45 loop back to retrain the model, either supervised from clinician feedback or semi-supervised from image quality.
lungEcho How a detection becomes a decision: landmarks feed a quality score and a severity score, and low-quality frames loop back for retraining.
Six lung ultrasound frames from different machines and probes with YOLOv5 bounding boxes and confidence scores over rib, pleura, shadow, A-lines, B-patch and air bronchogram detections.
Detections YOLOv5s landmark boxes across machines and probe types, each with a confidence score.

When there is no labelled data to start from, an unsupervised transporter network can still find the same landmarks. It learns keypoints by comparing pairs of frames and transporting features from one to the other, but a generic transporter has no reason to land on anything clinically relevant. This version constrains it first: a distance-gain mask suppresses shallow fat and muscle reflections, and a Radon transform isolates horizontal features (pleura, A-lines) from vertical ones (B-lines) before the keypoints are computed. Validated on 230 videos from 40 subjects across two countries, the resulting keypoints reach 99% sensitivity against expert-marked landmarks, and classify a frame as normal or abnormal with 97% accuracy and no supervised training at all.

Four lung ultrasound frames each processed by four transporter variants: vanilla transporter, transporter with horizontal features only, with vertical features only, and with the proposed attention mechanism. Coloured star markers show keypoint locations, which cluster tightly on pleura and B-lines only in the attention column.
Keypoints The same frames through four transporter variants. Acoustic feature maps and attention (right column) pull the points onto the pleura and B-lines instead of scattering them.
Video · 5:01
covEcho Main
Demonstration of the active learning loop: low-quality detections get flagged and looped back to retrain the model.
Video · 9:47
covEcho – Tool for Automated Lung Ultrasound
A walkthrough of landmark detection running live on lung ultrasound video.

A loss function built for blurred boundaries

Counting A-lines and B-lines needs a clean edge, not just an accurate mask.

TransBound-UNet segments A-lines and B-lines with a Vision Transformer encoder (ViT-MSN-Small, pretrained with Masked Siamese Networks) and a lightweight convolutional decoder. Its loss function adds a boundary-weighted penalty on top of Dice loss, pushing the network harder on the pixels right at a line’s edge, which is exactly where A-lines and B-lines blur together.

Trained and 5-fold cross-validated on 4,599 labelled frames, it reaches a Dice score of 0.80 and a Hausdorff Distance of 15.13, more than halving the boundary error of every other network tested, while running lighter: dropping skip connections and simplifying the decoder cuts FLOPs from 27.06 to 4.57 GFLOPs and parameters from 63M to 23M against the original TransUNet.

Segmentation accuracy, 5-fold cross-validation on 4,599 frames
MetricTransBound-UNetTransUNetLightweight U-Net
Dice Score ↑0.800.750.745
Specificity ↑0.970.960.95
Precision ↑0.850.810.75
Hausdorff Distance ↓15.1334.5238.96
Compared against U-Net, Attention U-Net, UNETR, SwinUNETR, TransUNet and a lightweight LUS-specific U-Net, TransBound-UNet’s boundary-aware loss wins on every metric that measures edge accuracy, not just overlap.

Turning frames into a severity score and a highlight reel

Every frame gets a quality score and a severity class; every video gets compressed to the moments that matter.

Detected landmarks feed two scores directly. A quality score weighs pleura (30 points), rib and shadow (15 and 10) and any artefact (45), so a frame needs pleura plus at least one artefact to reach “excellent”. This flags unreadable frames with 97.7% accuracy (95% sensitivity, 97% specificity) and routes them back for retraining. A severity score of 0 to 4 tracks the same progression clinicians use, A-lines through B-lines to consolidation with air bronchograms, and the worst frame in a video sets that video’s score. Across 127 videos this calls a video normal or abnormal with 90.8% accuracy and an AUC of 0.89, rolling the result into a 14-point colour-coded scan map a clinician can read at a glance.

For messier, unlabelled footage, a second summarizer built on reinforcement learning does the compressing instead. Three independently-trained encoders, a healthy/unhealthy classifier, a pleura and A-/B-line segmenter, and a plain autoencoder, each read a frame differently; an attention layer fuses the three views, and a Bi-LSTM decoder scores every frame’s importance. It trains with no ground truth at all, rewarded instead for picking frames that are diverse, representative, structurally dissimilar from their neighbours, and biased toward the unhealthy sections clinicians actually want to see. Benchmarked against expert-annotated video from three geographies, it reaches 80% precision and a 44% F1 score while cutting video length by 77%, a quarter of the original size and bandwidth for telemedicine.

Video summarization architecture: videos are split into frames, encoded by three parallel encoders (abnormality classifier, segmentation, autoencoder), fused through attention layers, decoded by a stack of LSTM cells into keyframe probabilities, then sampled into a summary and scored against SSIM, classifier, representative and diversity rewards fed back by backpropagation.
Summarizer Three encoders, one attention fusion, four rewards: the ensemble that decides which frames make the summary.
Video · 3:58
covEcho 14-Point Lung Ultrasound Scan
The 14-point severity scan in action, colour-coding each rib space as it is acquired.
Video · 1:33
Demo for Video Summarization
The reinforcement-learning summarizer compressing a full-length scan to its key frames.

One open-source package, upload to report

SPAALUV wires video summarization, segmentation and landmark tagging into a single web app.

SPAALUV packages the pipeline as an open-source web application: a React front end talks to a FastAPI back end running the summarization, segmentation and YOLOv5 tagging models. A clinician uploads a video, the app summarizes it to its key frames, then segments and tags landmarks in those frames alone, with the pleura and abnormal regions highlighted and confidence scores shown on each box. Results, including the summarized video itself, download as a single zip file. The framework accepts new models by dropping in a weights folder and a short inference script, so it is not locked to lung ultrasound alone.

SPAALUV package overview: multiple uploaded ultrasound videos pass through a video summarization block, producing a smaller set of key frames per video, which then branch into a segmentation output highlighting the pleura and abnormalities, and an object detection output showing bounding boxes with confidence scores.
SPAALUV Upload once: the video is summarized to key frames, then segmented and object-tagged for review and download.
Video · 1:58
SPAALUV Software Package
The web app end to end: upload, summarize, segment, tag and download.
Video · 15:54
covEcho – A Tool for Lung Ultrasound Video Analysis
The full tool walkthrough, developed with SCTIMST, GMC Thiruvananthapuram and Hospital Universitario Puerta de Hierro.

The papers behind this page

Bioengineering · 2025

Improved A-Line and B-Line Detection in Lung Ultrasound Using Deep Learning with Boundary-Aware Dice Loss

Soolmaz Abbasi · Assefa Seyoum Wahd · Shrimanti Ghosh · Maha Ezzelarab · Mahesh Panicker · Yale Tung Chen · Jacob L. Jaremko · Abhilash Hareendranathan
Bioengineering, vol. 12, p. 311, 2025.
Biomedical Engineering Advances · 2023

lungEcho: Resource Constrained Lung Ultrasound Video Analysis Tool for Faster Triaging and Active Learning

Jinu Joseph · Mahesh Raveendranatha Panicker · Yale Tung Chen · Kesavadas Chandrasekharan · Vimal Chacko Mondy · Anoop Ayyappan · Jineesh Valakkada · Kiran Vishnu Narayan
Biomedical Engineering Advances, vol. 6, p. 100094, 2023.
SoftwareX · 2023

SPAALUV: Software Package for Automated Analysis of Lung Ultrasound Videos

Anito Anto · Linda Rose Jimson · Tanya Rose · Mohammed Jafrin · Mahesh Raveendranatha Panicker
SoftwareX, vol. 23, p. 101460, 2023.
Computers in Biology and Medicine · 2023

Unsupervised Landmark Detection and Classification of Lung Infection Using Transporter Neural Networks

Arpan Tripathi · Mahesh Raveendranatha Panicker · Abhilash Rakkunedeth Hareendranathan · Jacob Jaremko · Yale Tung Chen · Kiran Vishnu Narayan · Kesavadas C.
Computers in Biology and Medicine, vol. 152, p. 106345, 2023.
IEEE Journal of Biomedical and Health Informatics · 2023

Unsupervised Multi-Latent Space RL Framework for Video Summarization in Ultrasound Imaging

Roshan P. Mathews · Mahesh Raveendranatha Panicker · Abhilash R. Hareendranathan · Yale Tung Chen · Jacob L. Jaremko · Brian Buchanan · Kiran Vishnu Narayan · Kesavadas C. · Greeta Mathews
IEEE Journal of Biomedical and Health Informatics, vol. 27, no. 1, pp. 227–238, 2023.
Software Impacts · 2021

vid-SAMGRAH: A PyTorch Framework for Multi-Latent Space Reinforcement Learning Driven Video Summarization in Ultrasound Imaging

Roshan P. Mathews · Mahesh Raveendranatha Panicker · Abhilash R. Hareendranathan
Software Impacts, vol. 10, p. 100185, 2021.