Skip to content

Classify upper gastrointestinal endoscopic landmarks based on the Hierarchical Neural Network architecture.

Notifications You must be signed in to change notification settings

TruongDuy2607/endoscopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upper Gastrointestinal tract classification using Hierarchical Neural Network

Author:Jonny Truong

python: 3.10 torch: 2.2.1 torchvision: 0.17.1 cuda:12.1

1. Overview

This research is funded by The Viet Nam Ministry of Science and Technology under Grant No. KC-4.0-17/19-25 "Research and Develop Intelligent Diagnostic Assistance System for Upper Gastrointestinal Endoscopy Images". In this task, we propose a method to classify upper gastrointestinal endoscopic landmarks based on the Hierarchical Neural Network architecture.

2. Format data

Each input data sample has a size of 224x224 and is assigned 2 labels corresponding to 2 branches: coarse branch and fine branch.

├── Non-Informative frames/            
│   ├── Unkown        
│   ├── Blur     
│   ├── Foam/Fluid 
│   └── Dark
└── Informative frames/
    ├── Pharynx        
    ├── Oesophagus     
    ├── Squamocolumnar junction
    ├── Middle upper body
    ├── Fundus
    ├── Antrum
    ├── Angulus
    ├── Greater curvature
    ├── Lesser curvature
    └── Dark

3. Model architecture

To accommodate deployment on Jetson AGX Xavier, we use the MobileNet V3 architecture as the backbone of the Hierarchical model. The attention mechanism is used to increase the binding between classification branches and improve generalization in fine branch.

landing graphic

4. Results

5. Deployment with video input

  • To run and show the result of the model with video input, run the following command:
python check.py
  • To save the result of the model as each imge foldes, simulator video with video input, run the following command:
python check.py --save_image --save_vid
python check.py --video_path "path_to_video" --frame-rate 30 # default frame rate 20

About

Classify upper gastrointestinal endoscopic landmarks based on the Hierarchical Neural Network architecture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published