First model
Demir-1
Our first model for rock and mineral recognition from photos. Identifying a stone in the field takes years. Demir-1 takes a single phone photo, crops it to 288×288, and returns one of 63 classes. Not publicly available yet.
Development
We trained in three stages, measuring test accuracy after each. The final stage reached 81.15%. Training used over 37,800 photos.
Input and output
The model takes one photo and returns:
- Class name, in Turkish and English
- Formation type: igneous, sedimentary or metamorphic
- Mineral composition and hardness
- Tips to tell confusing stones apart
- Where it's found, in Türkiye and worldwide
- What it's used for
Input is JPEG or PNG; we scale the short edge to 288 pixels. Output is plain text.
Rocks it knows
Demir-1 knows 63 classes. Each card's percentage is that class's test accuracy. The best five hit 100%, the lowest around 55%. With this many classes the average drops to 81.15%. We expected that.
Igneous 19 classes
Sedimentary 21 classes
Metamorphic 13 classes
Minerals 10 classes
Performance
The numbers come from the test set. Training data never leaked into tests; we split by MD5. The charts show per-class results and the data distribution. Per-class accuracy, F1, precision and recall live in the CSV.
Top 10 classes
test accuracy- 01 Pyrite %100.0
- 02 Porphyry %100.0
- 03 Phyllite %100.0
- 04 Hornblende %100.0
- 05 Diamictite %100.0
- 06 Quartz diorite %95.0
- 07 Oolite %95.0
- 08 Malachite %95.0
- 09 Eclogite %95.0
- 10 Coal %95.0
Bottom 10 classes
test accuracy- 01 Pyroxenite %55.0
- 02 Quartzite %55.0
- 03 Gneiss %60.0
- 04 Greywacke %60.0
- 05 Plagioclase %60.0
- 06 Rhyolite %60.0
- 07 Amphibolite %65.0
- 08 Andesite %65.0
- 09 Dolomite %65.0
- 10 Talc carbonate %65.0
Per-class results are also downloadable as CSV.
sinif_tablosu.csv indirComparison with the literature
Not the same task. Narrow studies report over 90% on 5 to 25 classes. We measured 81.15% on 63. Accuracy falls as classes grow; we chose breadth.
| Study | Classes | Reported accuracy |
|---|---|---|
| Narrow studies in the literature | 5 to 25 classes | Over 90% |
| Demir-1 (Cevher Labs) | 63 classes | 81.15% |
We held the test stones by hand, shooting at different angles and light. So 81.15% reads close to the field.
See the test results