This release is a pre-release and may not be stable for production use.
MIRA: Machine Intelligence for Recycling Automation
Jugend forscht 2027
I started MIRA to see if an ordinary camera could tell glass, metal, paper, plastic and trash apart well enough to feed a sorter. The detector and local dashboard are working. The sorting arm in the dashboard is a simulator; this repository does not control a physical sorter.
Try the detector
Install mira-ai from PyPI with Python 3.11 or 3.12. The published package includes the EXP-014, EXP-018 and EXP-019 weights; you don’t need a Hugging Face account or separate weights download for the standard demo.
py -3.12 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install mira-ai
mira models
mira live --model mira_exp014.pt
Or run mira dashboard and open 127.0.0.1:8000. Use Detect for the connected camera, or stop the live stream before choosing a JPEG or PNG (up to 8 MB and 16 megapixels). Still-photo detections do not count toward camera sessions. The dashboard also supports session history, CSV/JSON exports, a print-ready HTML report, video and image batches, and same-image model comparison.
What I measured
I started with a custom CNN and MobileNetV2, then moved to YOLOv8n and YOLO11n because the project needed bounding boxes, not just one label per picture. Combining more data brought in incompatible labels and setups, so I cleaned the classes and tried a more balanced training set.
| Experiment | Evaluation | mAP50 |
|---|---|---|
| EXP-014 | Earlier recorded baseline | 60.7% |
| EXP-018 | 415-image tabletop validation split | 90.6% |
| EXP-019 | Repeat on the same validation split | 90.58% |
EXP-019 repeated EXP-018 on that validation set; its 1,375-image reserved test split was not evaluated. The earlier baseline is not a head-to-head result on the later split. These scores don’t establish accuracy on household waste in the wild or on a physical sorter. Crumpled paper, cans seen from their opening, overlapping objects and unfamiliar conditions can all trip up the models. EXP-014 is still the live-demo default, not a claim that it wins on an independent test.
See the experiment log for setup, per-class numbers and export results. The training images are not stored in Git; dataset origins and licensing are documented separately.
Compare two models from the current source
Use the current checkout for the explicit split behavior below. Follow the source setup and run git lfs pull after cloning to hydrate the bundled weight files. For the Svelte interface in a source checkout, see the dashboard build instructions.
Use a local YOLO-format dataset and explicitly choose its split:
mira benchmark --models mira_exp014.pt mira_exp019.pt --dataset C:/datasets/mira/dataset.yaml --split test --max-images 1375 --output comparison.json
Adjust the image limit to cover your split; the CLI defaults to 100. Provide a label file for every image, empty for a deliberate negative. A missing split or label stops the run instead of silently using training data. Verify that the test images were outside training for both models before calling them an independent holdout.
The current source uses the same Ultralytics detector for first-party benchmarks and the live/still workflows, without tracking in the benchmark. Custom adapters can use different inference code; reports identify the backend. Do not compare a new run directly with historical results from a different benchmark or backend.
Code and further reading
- Project website and research notes
- Model card, extra weights and ONNX/TFLite exports
- Dataset tools, training and benchmark code and dashboard contract
- Development and testing and CI runs
I used AI tools for parts of the coding and debugging. The problem choice, dataset experiments, model comparisons and decisions about what worked were my own.
Metadata
Release files for mira-ai 2.0.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mira_ai-2.0.0rc1.tar.gz | 15.2 MB | With provenance | Details for mira_ai-2.0.0rc1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mira_ai-2.0.0rc1-py3-none-any.whl | Python 3 | none | any | Details for mira_ai-2.0.0rc1-py3-none-any.whl |
Total release size: 30.4 MB
Release files / mira_ai-2.0.0rc1.tar.gz
| Download URL | mira_ai-2.0.0rc1.tar.gz |
|---|---|
| Size | 15.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4850ecada54bd4fcdb4c5b707b4cda5b1dc6a9b386ff41bd0d0bd0f3bc365f1
|
|
BLAKE2b-256 checksum How to use checksums |
6823ef1142ecc21170baef024fba88285cee4407eaeb8fd4f789f019084091b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / mira_ai-2.0.0rc1-py3-none-any.whl
| Download URL | mira_ai-2.0.0rc1-py3-none-any.whl |
|---|---|
| Size | 15.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f39205e4b05a40f03667ac5286406639f5c2d6ec21a2d5999399168645075ee
|
|
BLAKE2b-256 checksum How to use checksums |
dede58c6f68f78bac437fad3d45fc2c40ae093ddcb9c2e9920cdc0723f73ea8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for mira-ai 2.0.0rc1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mira_ai-2.0.0rc1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.