B.Sc. Artificial Intelligence (AIN-B), Deggendorf Institute of Technology.
| Module code | Course | Scheduled semester |
|---|---|---|
| AIN-B-21 | Machine Learning | 4 |
| AIN-B-22 | Computer Vision | 4 |
Train-delay prediction and waste sorting. The upstream README records Machine Learning coursework; Alex confirms the Computer Vision association. Original collaborators and credit remain below.
Module details follow the official AIN-B handbook (7 September 2026 edition). Semester refers to the curriculum, not the author's completion date. See the THD AI course map for sources and related projects. This community fork preserves the original authors, licence, and project branding.
Live Demo • Features • Quick Start • Projects • Deployment • Contributing
Painfully Trivial showcases two cutting-edge machine learning applications developed as part of our academic journey at TH Deggendorf. These projects demonstrate practical applications of ML/DL in solving real-world problems.
Note
Both projects were developed by Sameer, Fares, and Alex as part of the Machine Learning course and have been successfully graded by the university.
These projects were assigned as two straightforward academic exercises. They weren't.
What started as routine homework tasks grew into something else entirely: a live computer vision app with a custom-trained YOLOv8 model deployed on Streamlit Cloud, and a regression pipeline backed by 2M+ Deutsche Bahn records with a published research paper. Docker, CI/CD, WebRTC, the works. Trivial in name only.
Tip
The demo supports real-time camera input! Allow camera permissions when prompted for the best experience.
- Real-time Detection: Identifies German waste bins using YOLOv8
- 4 Categories: Biomüll, Glas, Papier, Restmüll
- Live Camera Support: Works with webcam or phone camera
- Multi-language Instructions: Guides proper waste disposal
- Custom Dataset: 466 locally captured images from Deggendorf
- 92.4% Accuracy: Outperforms baseline predictions
- 2M+ Records: Trained on extensive Deutsche Bahn dataset
- Feature Engineering: Temporal patterns, station characteristics
- Multiple Models: Linear Regression, KNN, Random Forest
- Production Ready: Includes preprocessing pipeline and deployment code
# Python 3.10 or higher
python --version
# CUDA-capable GPU (optional, for faster training)
nvidia-smi# Clone the repository
git clone https://github.com/arudaev/Painfully-Trivial.git
cd painfully-trivial
# TODOImportant
For GPU support, install PyTorch with CUDA:
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118painfully-trivial/
├── 📁 cv_garbage/ # Computer Vision Project
│ ├── 📁 models/ # Trained YOLO models
│ ├── 📁 YOLO_Dataset/ # Annotated dataset
│ ├── 📁 raw_images/ # Original photos
│ ├── 📄 2-Computer-Vision.py # Main CV notebook
│ └── 📄 YOLO_Model.py # Model training scripts
├── 📁 ml_deutsche_bahn/ # ML Regression Project
│ ├── 📄 1-Machine-Learning-v2.py
│ └── 📁 data/
├── 📁 ml_db_paper_web/ # Published Quarto research paper (submodule)
├── 📁 streamlit_app/ # Streamlit Demo App
│ ├── 📄 app.py
│ ├── 📄 pages/
│ └── 📄 utils/
├── 📁 .github/workflows/ # CI/CD Pipeline
├── 📄 Dockerfile
├── 📄 requirements.txt
└── 📄 README.md
🗑️ Click to expand project details
International students in Deggendorf struggle with the German waste sorting system due to language barriers and unfamiliar color coding.
A real-time object detection system that:
- Identifies waste bin types from camera input
- Provides disposal guidelines in multiple languages
- Works on mobile devices and laptops
- Model: YOLOv8 (fine-tuned)
- Dataset: 466 custom images
- Classes: 4 (Biomüll, Glas, Papier, Restmüll)
- Training: 50 epochs, batch size 4
- Performance: 95%+ mAP@0.5
🚄 Click to expand project details
Predict train arrival delays to help passengers plan better and assist DB in operational optimization.
A supervised regression model that:
- Predicts delays in minutes
- Uses historical patterns and station data
- Achieves 92.4% improvement over baseline
- Dataset: 2,061,357 records
- Features: 16 engineered features
- Models: Linear Regression, KNN, Random Forest
- Best Model: Random Forest (MSE: 0.8791)
- Validation: 60-20-20 train-val-test split
- Departure delay is the strongest predictor
- Rush hours show higher delays
- Station-specific patterns matter
- Inference Speed: 19.5 FPS on GPU
- Accuracy: 95%+ mAP@0.5
- Model Size: 22.5 MB
- Test MSE: 0.8791
- RMSE: 0.938 minutes
- Improvement: 92.4% over baseline
We welcome contributions! Please see our Contributing Guidelines.
# Fork the repo
# Create your feature branch
git checkout -b feature/AmazingFeature
# Commit your changes
git commit -m 'Add some AmazingFeature'
# Push to the branch
git push origin feature/AmazingFeature
# Open a Pull RequestIf you use this work in your research, please cite:
@misc{painfully-trivial2025,
author = {Sameer, Fares, Alex},
title = {Painfully Trivial: ML Solutions for Real-World Problems},
year = {2025},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/arudaev/Painfully-Trivial}}
}
![]() Sameer 💻 📊 🔬 |
![]() Fares 💻 🎨 📱 |
![]() Alex 💻 🚀 📝 |
This project is licensed under the MIT License - see the LICENSE file for details.
- TH Deggendorf - For academic support and resources
- Prof. Dr. Mayer - Machine Learning course instructor
- Prof. Dr. Glauner - Computer Vision course instructor
- Deutsche Bahn - For providing the delays dataset
- City of Deggendorf - For allowing data collection
Made with ❤️ at TH Deggendorf



