author: Lukhanyiso Bavuma date: 2025-10-15 autosize: true transition: rotate
Data Science Capstone Project
Coursera | Johns Hopkins University
Smart Text Prediction for Mobile Typing
======================================================== type: section
Mobile typing is slow and error-prone
Our Solution:
Build an intelligent next-word prediction model using natural language processing and n-gram statistical modeling.
Similar technology powers: SwiftKey, Google Keyboard, iPhone QuickType
Input: "I want to"
↓
Step 1: Search Trigrams ("want to" → ?)
→ Found: "go", "be", "see"
↓
Step 2: If not found, backoff to Bigrams ("to" → ?)
↓
Step 3: If still not found, use Unigrams
→ Most frequent words: "the", "a", "and"
left: 40%
✨ Real-time Prediction - Type any phrase - Get instant suggestions - See top 3 predictions
📊 Transparent - Shows prediction source - Displays confidence levels
🚀 Fast & Responsive - < 0.5 second response time - Works on any device
| Metric | Value |
|---|---|
| Accuracy (Top-1) | 35% |
| Accuracy (Top-3) | 65% |
| Avg Response Time | 0.3 seconds |
| Model Size | 48 MB |
✓ Successfully predicts next word in real-time
✓ Handles diverse inputs (news, social media, blogs)
✓ Efficient enough for mobile deployment
Thank you! Questions?
View the code: github.com/yourname/capstone
Try the app: shinyapps.io/yourapp