Edit model card

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Drug and Alcohol Test Classification Model

The model analyzes images of test strips, classifies the type of test (drug or alcohol), and provides a corresponding result (e.g., Positive/Negative/Invalid or BAC level). This can be used in medical diagnostics, workplace drug testing, or other contexts where rapid test result analysis is required.

Key Features of the Model:

  • Multi-Task Learning: The model performs two classification tasks:
    1. Predicting the Drug Type.
    2. Predicting the Test Result (including BAC levels for alcohol).
  • Architecture: It uses a shared backbone (InceptionResNetV2 pretrained on ImageNet) for feature extraction, followed by two separate dense layers for each task.
  • Custom Data Generators: These split the labels into two parts (Drug Type and Test Result) and one-hot encode them for multi-class classification.
  • Input Data: The model processes images of test strips, which are resized to (224, 224, 3) for consistency.

Drug Test Classification:

  • The model classifies the type of drug being tested (e.g., AMP, BAR, BUP, COC, etc.) based on test strip images.
  • It also determines the result of the test for each drug (Positive, Negative, or Invalid).

Alcohol Test Classification:

  • For alcohol tests, the model uses the Blood Alcohol Concentration (BAC) levels, which are treated as distinct classes.

Note:

  • The model is still in Beta phase.
Downloads last month
0
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.