How kumar-shivam-ranjan/slurred-speech-recognition-deeplearning works
Project Type & Purpose
• This is a Deep Learning pipeline for Automatic Speech Recognition (ASR), focused on fine-tuning a high-accuracy base ASR model on “slurred” speech (speech impairments). It consists primarily of data collection, preprocessing, training (base + transfer-learning), and evaluation components.
File Structure Analysis
• Top‐level directories:
• Best-Fit-TrainedModel – holds trained Keras/TensorFlow .h5 model checkpoints (base & fine-tuned).
• Dataset – FLAC audio files organized by speaker and transfer-learning subsets, plus simple test.py scripts.
• Notebooks Code – Jupyter notebooks where feature extraction, model definitions, training loops, and analysis happen.
• Papers & Project_Update_Reports – reference docs.
• No monolithic “src” folder; code lives in notebooks and small Python scripts for testing.
Key README Insights
• Base model: end-to-end ASR (DeepSpeech-style).
• Workflow: train base on large standard speech corpus → fine-tune via transfer learning on small impaired speech dataset.
• Uses Django web app (external component) for impaired speech collection.
Main Components & Interactions
A. External Data Sources
1. Standard Speech Dataset (e.g., Librispeech)
2. Impaired Speech Collection Web App (Django on Heroku + static GitHub Pages)
B. Data Storage
• Raw audio (FLAC) in Dataset/…
• Transcripts (.txt) alongside audio
C. Preprocessing & Feature Extraction
• Notebooks and test.py scripts that convert FLAC to spectrogram/MFCC tensors
D. Model Training
1. Base Model Training
• Input: preprocessed standard speech features → DeepSpeech-style network → checkpoints in Best-Fit-TrainedModel
2. Transfer Learning / Fine-Tuning
• Input: small impaired speech features + base checkpoints → fine-tune selective layers → new .h5 in Best-Fit-TrainedModel
E. Evaluation & Prediction
• Jupyter notebooks produce metrics (CER/WER), save prediction.txt
F. Reporting & Documentation
• Papers/… and Project_Update_Reports/… guide design choices
Architectural Patterns & Principles
• Pipeline Architecture: clear stage separation (Ingestion → Preprocessing → Training → Evaluation).
• Transfer Learning Pattern: reuse base model weights, freeze/unfreeze layers for personalized fine-tuning.
• Notebook-driven development: experimentation decoupled from production pipeline.