Skip to content

๐Ÿ“„ Published Nanoscale single-vesicle analysis: High-throughput approaches through AI-enhanced super-resolution image analysis", Biosensors and Bioelectronics

Notifications You must be signed in to change notification settings

GeonHyeock/CDV-Detection-using-MLflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

83 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MLOps - CDV Detection Model

๐Ÿ“„ Published

Hyung-Jun Lim, Gye Wan Kim, Geon Hyeock Heo, Uidon Jeong, Min Jeong Kim, Dokyung Jeong, Yoonsuk Hyun, Doory Kimโ€ , "Nanoscale single-vesicle analysis: High-throughput approaches through AI-enhanced super-resolution image analysis", Biosensors and Bioelectronics, 263, 116629, 2024 Link

โญ๏ธ Project Introduce

ํ•œ์–‘๋Œ€ํ•™๊ต STORM LAB์—์„œ ์ œ๊ณต๋œ ๋ฐ์ดํ„ฐ๋ฅผ ํ†ตํ•˜์—ฌ ๊ฐ์ฒด ๊ฒ€์ถœ ๋ชจ๋ธ์„ ํ•™์Šตํ•˜๊ณ  ๋ฐฐํฌํ•˜์˜€์Šต๋‹ˆ๋‹ค.

emccd ์นด๋ฉ”๋ผ๋ฅผ ํ†ตํ•˜์—ฌ ์ดฌ์˜๋œ ์ด๋ฏธ์ง€์—์„œ CDV๋ผ ๋ถˆ๋ฆฌ๋Š” exosome-likeํ•œ ๋ฌผ์งˆ๋กœ ์˜ˆ์ƒ๋˜๋Š” ๋ฌผ์งˆ์˜ ์œ„์น˜๋ฅผ ์ฐพ๋Š” ๊ฒƒ์„ ๋ชฉํ‘œ๋กœ ํ•ฉ๋‹ˆ๋‹ค.

CDV๋ผ ์˜ˆ์ƒ๋˜๋Š” ๋ฌผ์งˆ์˜ ์œ„์น˜์ •๋ณด๋ฅผ ์•Œ๋ฉด ํ›„์ฒ˜๋ฆฌ ๊ธฐ๋Šฅ์„ ์ด์šฉํ•˜์—ฌ ๊ฒ€์ฆ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ์กด์—๋Š” ์‚ฌ๋žŒ์ด ์ง์ ‘ ๋ฌผ์งˆ์˜ ์˜ˆ์ƒ ์œ„์น˜์ •๋ณด๋ฅผ ์ฐพ๋Š”๋ฐ ๋งŽ์€ ์‹œ๊ฐ„๊ณผ ๋…ธ๋™์ด ํ•„์š”ํ•˜์˜€์Šต๋‹ˆ๋‹ค. ์ธ๊ณต์ง€๋Šฅ ๋ชจ๋ธ์„ ํ†ตํ•˜์—ฌ ์‚ฌ๋žŒ์˜ ๋…ธ๋™๊ณผ ์‹œ๊ฐ„๋น„์šฉ์„ ์ค„์ผ ์ˆ˜ ์žˆ์„๊ฒƒ์œผ๋กœ ๋ณด์—ฌ์ง‘๋‹ˆ๋‹ค.

Index

Model

DBSCAN์„ ํ™œ์šฉํ•˜์—ฌ CDV๋ผ ์˜ˆ์ƒ๋˜๋Š” ๋ฌผ์งˆ์„ ๊ฒ€์ถœํ•˜๋ ค ํ•˜์˜€์œผ๋‚˜ ๋ถ‰์€ ์› ์•ˆ์˜ ๋ฌผ์งˆ์€ ์„œ๋กœ ๋‹ค๋ฅธ ๋ฌผ์งˆ์ด์ง€๋งŒ ํ•˜๋‚˜์˜ ๋ฌผ์งˆ๋กœ ์ธ์‹ํ•˜๋Š” ํ•œ๊ณ„์ ์ด ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.
์ด๋Ÿฌํ•œ ํ•œ๊ณ„์ ์„ ๊ทน๋ณตํ•˜๊ธฐ ์œ„ํ•˜์—ฌ YOLO๋ชจ๋ธ์„ ํ™œ์šฉํ•˜๊ธฐ๋กœ ๊ฒฐ์ • ํ•˜์˜€์Šต๋‹ˆ๋‹ค.


๋ชจ๋ธ ํ•™์Šต ๊ฒฐ๊ณผ

Model Metric: mAP Input Output
YOLO6 0.73 ์ด๋ฏธ์ง€ CDV ์˜ˆ์ƒ ์œ„์น˜์ •๋ณด (x,y,w,h)

๋ฐ์ดํ„ฐ ๊ตฌ์กฐ

Project Structure

  • MLflow๋ฅผ ํ™œ์šฉํ•˜์—ฌ ๋ชจ๋ธ์„ ํ•™์Šตํ•˜๊ณ  ์„œ๋ฒ„์— ๋ชจ๋ธ์„ ๋ฐฐํฌํ•˜์˜€๋‹ค.
  • Streamlit์„ ์ด์šฉํ•˜์—ฌ ๋ฐฐํฌ๋œ ๋ชจ๋ธ์„ ํ†ตํ•˜์—ฌ ์›ํ•˜๋Š” ์ด๋ฏธ์ง€์— ๋Œ€ํ•˜์—ฌ ๊ฒฐ๊ณผ csv๋ฅผ ๋ฐ›์„ ์ˆ˜ ์žˆ๊ฒŒ ๊ตฌ์„ฑํ•˜์˜€๋‹ค.
name Docker File
Model Train Dockerfile
Model Serving Dockerfile
Frontend Dockerfile

Demo Video

  • ์‚ฌ์šฉ์ž์˜ ์ด๋ฏธ์ง€๋ฅผ ์ž…๋ ฅ ๋ฐ›์œผ๋ฉด CDV๋ผ ์˜ˆ์ƒ๋˜๋Š” ๋ฌผ์งˆ์˜ ์œ„์น˜์ •๋ณด๋ฅผ Boxํ˜•ํƒœ๋กœ ์‹œ๊ฐํ™”
  • conf_thres, iou_thres์˜ ๊ฐ’์„ ์œ ๋™์ ์œผ๋กœ ๋ณ€๊ฒฝํ•˜์—ฌ ์‹œ๊ฐ์ ์œผ๋กœ CDV์˜ ์˜ˆ์ƒ์œ„์น˜๋ฅผ ํ™•์ธ ๊ฐ€๋Šฅ
    ์ด๋ฅผ ํ†ตํ•˜์—ฌ DBSCAN์˜ ์„œ๋กœ ๋‹ค๋ฅธ ๋ฌผ์งˆ์ด์ง€๋งŒ ํ•˜๋‚˜์˜ ๋ฌผ์งˆ๋กœ ์ธ์‹ํ•˜๋Š” ๋ฌธ์ œ๋ฅผ ํ•ด์†Œ ๊ฐ€๋Šฅ
  • download ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ ์›ํ•˜๋Š” ์ •๋ณด์˜ csv ํŒŒ์ผ์„ ์ €์žฅ ๊ฐ€๋Šฅ

  • ์—ฌ๋Ÿฌ์žฅ์˜ ์ด๋ฏธ์ง€๋ฅผ zipํŒŒ์ผ๋กœ ๋ฌถ์–ด ์—ฌ๋Ÿฌ์žฅ์˜ ์ด๋ฏธ์ง€๋ฅผ ํ•œ๋ฒˆ์— ๋ถ„์„
  • Ray๋ฅผ ์ด์šฉํ•œ ๋ณ‘๋ ฌ์ฒ˜๋ฆฌ๋กœ ๋‹จ์ผ ์ด๋ฏธ์ง€ ๋ถ„์„ ๋Œ€๋น„ ์•ฝ 2.25๋ฐฐ ๋น ๋ฅธ ์ถ”๋ก 

Command

Model Train

# mlflow_train Image
docker build -t mlflow_train -f mlflow_model/Dockerfile .

# model train
mlflow run mlflow_model -A gpus=all

Model Serving

1. ๋ชจ๋ธ ์„ค์ •
mlflow ui

2. serving image build
sudo docker build -t mlflow_serving --build-arg LOCAL_PATH={mlrun_path} -f mlflow_serving/Dockerfile .

3. docker run
sh shell/model_serving.sh

Frontend Streamlit

1. ์ด๋ฏธ์ง€ ์ƒ์„ฑ
sudo docker build -t frontend -f streamlit_frontend/Dokcerfile .

2. ์‹คํ–‰
sh shell/frontend.sh

About

๐Ÿ“„ Published Nanoscale single-vesicle analysis: High-throughput approaches through AI-enhanced super-resolution image analysis", Biosensors and Bioelectronics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published