Skip to content

riverxdata/smartsensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smartsensor

This project utilizes a smartphone camera and machine learning techniques to analyze and characterize chemical compounds.

Installation

Install setup the environment

make install-pixi

Open new terminal to load pixi setup

make install
make shell

Usage

The datasets should be downloaded and put to the correct folder and run with 2 steps:

  • process: Extract ROI, normalize ROI
  • model: Modeling based on the processed data to predict the concentration of the images
# Define base paths
RAW_DATA=./data
OUTDIR=./outdir
KIT="1.1.0"

# Processing images
smartsensor process \
    --data "$RAW_DATA" \
    --kit $KIT \
    --auto-lum \
    --outdir "$OUTDIR/processed"

# Modeling 1 degree
smartsensor model \
    --data "$OUTDIR/processed" \
    --features "meanR,meanG,meanB,modeR,modeG,modeB" \
    --skip-feature-selection \
    --prefix raw \
    --out "$OUTDIR/model/raw" \
    --kit $KIT \
    --norm "raw" \
    --degree 1 \
    --replication 100  \
    --cv 5 \
    --test-size 0.3

Datasets

Fe3+/CuSO4

KIT: v1.0.0 Download Link

Citation: Dang, K.P.T., Nguyen, T.T.G., Cao, T.D., Le, V.D., Dang, C.H., Duy, N.P.H., Phuong, P.T.T., Chi, T.T.K., & Nguyen, T.D. (2024). Biogenic fabrication of a gold nanoparticle sensor for detection of Fe³⁺ ions using a smartphone and machine learning. RSC Advances, 14(29), 20466-20478.

Ampicillin

Download Link KIT: v1.1.0 Citation: Under review: Colorimetric detection of ampicillin using gold nanoparticles and aptamer: Portable device and smartphone image-based machine learning.

About

The sensor utilizes a smartphone camera to analyze and characterize chemical compounds.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •