1 of 74

Web Based AI

Solution For

Breast Ultrasound

2 of 74

Team

Members

Supervisors

Ahmed Mostafa

Saied Salem

Omar Mansour

Yasien Essam

Dr. Ahmed Ehab

Dr. Tamer Basha

Sponsored By

3 of 74

Motivation

  • Increasing Numbers of new cases over the years

  • Shortage of physician Numbers

  • Subjectivity and Variability of doctor decision

  • Time-consuming process for Assessment

  • At early stages cancer survival rate is 99%

4 of 74

Number of new occurrences internationally

2020

Number of new occurrences

In Egypt

2020

Statistics

5 of 74

BI-RADS

  • BI-RADS scoring system assigns a numerical score ranging from 0 to 6

  • Developed by American College of Radiology

  • Each number corresponds to different levels of malignancy probability according to certain acoustic and geometrical features

BI-RAD 5

BI-RAD 2

BI-RAD 3

BI-RAD 4

6 of 74

Solutions

  • Empower the workflow via AI

  • Improve the accuracy of breast cancer detection

  • Increase time-efficiency

  • Provide a solution anywhere and anytime

7 of 74

Market �Research

02

8 of 74

Stakeholder Meeting

  • Compliance with regulatory requirements and industry standards

  • Using Segmentation Or Detection?

  • Desktop or Web-Based?

9 of 74

Global Competitors

10 of 74

Local Competitors

11 of 74

Why Ultrasound?

No Ionizing Radiation

Portable, Mobile & Widely Used

Cost-Effective

Flexibility

12 of 74

Why Web-Based?

01

  • Easier To Receive New Improvements
  • On Premise Data Center
  • VPN
  • Windows or MAC with different browsers , desktop, tablet, etc.

General Access To Medical Images

Security

Compatibility

Flexibility

  • Hospital PACS
  • Cloud Storage

02

03

04

13 of 74

Business Model

03

14 of 74

Partners

Medical Equipment Providers

Research Institutions

Customers

Healthcare Providers

Imaging Centers

Values

Improved diagnostic accuracy

Enhanced workflow efficiency

Optimized resource allocation

Cloud Infrastructure Costs

Powerful GPUs for Development

Costs

Resources

Revenue

Subscription model

Per-use pricing

Licensing

Business Model

15 of 74

System Specs

04

16 of 74

Scenario

Take Acquisition

PACS SYSTEM

App

Viewer

Log In

17 of 74

Operation

Specs

18 of 74

System Walkthrough

19 of 74

System Main Features

Sign Up

Account Verification

Login Page

Reset Password

20 of 74

ExamList

Content:

  • Patient Information
  • Malignancy Probability
  • Classification
  • Study Status

Features:

  • Filter Functionality
  • Global Search
  • Exam Info Edit
  • Pagination

21 of 74

Add Examination Feature

Upload PNG Locally

Browse from local directory to upload PNG. Application then convert it to DICOM

Upload DICOM Locally

Browse from local directory to upload DICOM Files

Saturn is the ringed planet. It’s composed mostly of hydrogen and helium

PACS Connection

Using Orthanc to simulate uploading from modality via PACS

Upload Multiple Files

User can upload multiple DICOM & PNG at the same time.

22 of 74

SECURITY FEATURES

  • Email Verification : Sending a confirmation single-code via email, and requiring the user to write it to complete the account setup

  • Session Timeout : If the user is inactive for 15 minutes, the user will be forced out to the login page.

23 of 74

  1. Report Generation with Annotations, Physician Notes & Final Decision

  1. Show & Hide AI Diagnosis

  1. Lesions Table

Thumbnails displaying DICOM instants within the study

Annotations & Measurements Tools: Panning/Zooming/ROI (Ellipse-Rectangle-Free Hand-Line Angle)/Contrast/MultiFrame Support

AI Segmentation Contour

Doctor Measurements

24 of 74

Report Generation

25 of 74

Multi Frame Support

26 of 74

Technical

Specs

27 of 74

System Architecture

28 of 74

Cloud Performance

29 of 74

Cloud Processing Time

VM Specs:

  • 4 vCPUs
  • 32 GB RAM
  • 50 GB SSD Disk

No of Frames

Load Time

Image Processing

Classification

Segmentation

Total

Time

1 Frame

0.07s

0.1s

0.07s

0.09s

0.27s

120 Frames

6.26s

7.95s

9.45s

7.90s

31.32s

130

Frames

6.97s

8.45s

10.04s

8.41s

33.31s

367 Frames

25.92

26.40s

29.43s

26.40s

118.02s

30 of 74

Client Sequence Diagram

31 of 74

Server-Side Operations

Database Management

  • Design & Manage
  • Optimize performance

Authentication & Authorization

  • Verifying users (JWT)
  • User's permissions to resources

APIs

  • Way of communication between server and client
  • Expose certain functionality

PACs Integration

  • Integrating with Orthanc that is an open-source PACS through REST APIs

32 of 74

Server-Side Roles (Database)

  • Admin will have the authority for everything.

  • Doctor can view his own patient

  • Patient has its studies.

  • Studies has its own AI output as mask probability.

33 of 74

Tools

Client Side

Server Side

AI

PACS

Cloud

VM OS

34 of 74

Dockerization

  • Using Docker :
    • Portability
    • Scalability
    • Microservices Architecture

  • Volume should be out of the container to maintain data

35 of 74

Application Performance Testing

Stress Testing

  • Test server side using PyTest.
  • Stress Testing Using Locust server
  • The application is capable of handling up to 500 users.
  • Request per second is 130 with 0 failure.

36 of 74

Cloud Deployment

  • Using Microsoft Azure as a cloud server

  • Using Ubuntu VM for deploying the application

  • Using NGINX to solve CORS (Cross Origin Resource Sharing) problem by reverse proxy

37 of 74

Methodology

05

38 of 74

Literature Review

39 of 74

Enhanced Small Tumor-Aware Network for Breast Ultrasound Image Segmentation : ESTAN Architecture

40 of 74

Attention-Enriched Deep Learning Model for Breast Tumor Segmentation

in Ultrasound Images

41 of 74

Hover-Trans (Classification SOTA)

42 of 74

Datasets

43 of 74

Data Information

Data

Acquisition

Year

Patients

Transducers

Device

Samples

2018

600 (25-75)

1–5 MHz

ML6-15-D Matrix linear probe

GE LOGIQ E9

780

2012

163

8.5 MHz

17L5 HD linear array probe

Siemens ACUSON Sequoia C512

163

2013-2015

78

5-14 MHz

L14-5/38 linear array probe

Ultrasonix SonixTouch

200

2022

1202

Multiple Linear Probes

Hitachi Ascendus

Mindray DC-80

Toshiba Aplio 500

Supersonic Aixplorer

2405

-

42

-

-

42

Astute

(Birads)

-

-

3 - 12 MHz

L3-12a Linear Array Probe

Samsung WS80A

2771

44 of 74

Total Data Distribution

3483 Benign

2098 Malignant

133 Normal

45 of 74

Challenges

Breast Ultrasound Images are known for :

  1. High Variability & Less Uniform
  2. Requires Experience
  3. Full Of Noise
  4. Black Border and UI Components
  5. Highly Imbalanced Data

46 of 74

UI Removal Algorithm

47 of 74

AI Pipeline

48 of 74

AI Pipeline

49 of 74

Models

50 of 74

Classification Model

51 of 74

Classification Model

Model

Efficient-Net V2-B0

(270 Layers)

Original Data

1170 B-1531 M-103 N

4 Datasets

224x224x3 Shape

16 Batch Size

Learning Rate

Decaying Cyclic Learning Rate

Loss Function

Cross Entropy Or Focal Loss

Augmented Data

3399 Samples

Train-Val-Test

3399/551/586 Samples

52 of 74

Comparison Between Classifiers

Model

Accuracy

F1 Score

Sensitivity

Specificity

AUC

VGG16

76.7

0.76

75.8

77.8

76.8

MobileNet

75.3

0.76

76.9

74.2

75.5

DenseNet121

73.3

0.72

70.9

75.9

73.4

EfficientNetB0

74.0

0.74

73.0

75.4

74.2

Hover-Trans

84.0

0.80

78.0

85.4

86

EfficientNetV2-B0

89.0

0.87

89.0

92

96

53 of 74

Why Efficient-Net

54 of 74

Loss Functions

Cross-Entropy

Better With Balanced Dataset

Better With Imbalanced

Datasets

Focal Loss

55 of 74

Metrics On Test Data

179 Benign

392 Malignant

586 Samples

80%

Success Rate

89%

F1-Score & AUC

We achieved F1 Score of 0.89 and AUC of 0.97 on Test Data

Results

The classifier also reached an average specificity of 92 and test cross entropy of 0.269

Precision

0.89

Recall

0.89

15 Normal

56 of 74

Test Metrics

57 of 74

GradCams

58 of 74

Metrics On Astute Data

2370 Benign

401 Malignant

2771 Samples

80%

Success Rate

85%

F1-Score

We achieved F1 Score of 0.86 on Real Life Data

Results

The classifier can successfully generalize well

Precision

0.86

Recall

0.85

59 of 74

Astute Confusion Matrix

60 of 74

Segmentation Model

61 of 74

Segmentation Model

Model

Attention U-net

Input Data

5720 Samples

All Datasets

128x128x3 Shape

32 Batch Size

Learning Rate

Reduce On Plateau

Schedule

Loss Function

Log Cosh loss

Augmented Data

9148 Samples

Train-Val-Test

9148/573/573 Samples

62 of 74

Model Architecture

63 of 74

Segmentation Metrics

Intersection Over

Union

Dice Score

64 of 74

Loss Functions

Combo Loss

More flexible than dice and better highly imbalanced task

Overcome non convex nature of dice loss

Log Cosh Loss

65 of 74

Pytorch Data Engine

66 of 74

Initial Comparison Between U-Nets

Backbone

Pretrained

Loss Function

Validation Dice

Score

Test Dice

Score

ResNet 34

No

Combo Loss

0.84

0.8338

SE-ResNet18

No

Combo Loss

0.82

0.83

DenseNet121

No

Combo Loss

0.82

0.83

InceptionV3

Yes

Combo Loss

0.8214

0.8276

ResNet 34

No

Log Cosh Loss

0.82

0.83

67 of 74

Final Comparison Between U-Nets

Model

Pretrained

Loss Function

Validation Dice

Score

Test Dice

Score

Attention U-net

No

Log Cosh Loss

0.86

0.85

ResNet 34

No

Log Cosh Loss

0.84

0.85

ResNet 50

No

Combo loss

0.84

0.83

Attention U-net

No

Combo loss

68 of 74

Metrics On Test Data

573 Samples

80%

0.85

Dice Score

Results

Model also reached 0.15 dice loss on test data

Val Score

0.86

Test Score

0.85

69 of 74

Test Segmentation

70 of 74

Cloud Performance

71 of 74

Cloud Processing Time

VM Specs:

  • 4 vCPUs
  • 32 GB RAM
  • 50 GB SSD Disk

No of Frames

Load Time

Image Processing

Classification

Segmentation

Total

Time

1 Frame

0.07s

0.1s

0.07s

0.09s

0.27s

120 Frames

6.26s

7.95s

9.45s

7.90s

31.32s

130

Frames

6.97s

8.45s

10.04s

8.41s

33.31s

367 Frames

25.92

26.40s

29.43s

26.40s

118.02s

72 of 74

Future Work

06

73 of 74

Future Work

  • Publishing 2 papers (System & AI)

  • Hospital Deployment

  • Compatibility With HL7

  • PACS Filtering

  • Compete In Nile University Competition

74 of 74

Thank You