Smart Suggestions¶
ShopSync uses machine learning to provide intelligent suggestions as you type, making item entry faster and more accurate.
Overview¶
Smart Suggestions leverage TensorFlow Lite to predict:
- Item names
- Appropriate icons
- Categories
- Common quantities
How It Works¶
On-Device ML¶
ShopSync uses an on-device ML model:
- Privacy-focused - No data sent to servers
- Fast - Predictions in real-time
- Offline-capable - Works without internet
Model Architecture¶
The suggestion system uses:
- TensorFlow Lite - Optimized for mobile
- NLP Model - Natural language processing
- Icon Classifier - Visual recognition
- Category Predictor - Context-aware categorization
Training Data¶
Model trained on:
- Common grocery items
- Shopping list patterns
- Item-category relationships
- Icon-name associations
Item Name Suggestions¶
Auto-complete¶
As you type, see suggestions:
- Start typing (e.g., "milk")
- See suggestions: "Milk", "Milkshake", "Milk chocolate"
- Tap to select or keep typing
Context-Aware¶
Suggestions consider:
- Your purchase history
- Current list category
- Time of year (seasonal items)
- Common pairings
Learning From You¶
The model improves with use:
- Frequently used items appear first
- Custom item names remembered
- Store-specific preferences learned
Icon Suggestions¶
Automatic Icon Assignment¶
ShopSync suggests appropriate icons:
- Food items - Relevant food icons from library
- Household - Cleaning, personal care icons
- Custom - Best guess for unusual items
Icon Library¶
Over 500 icons across categories:
- ๐ฅฌ Produce (fruits, vegetables)
- ๐ฅ Dairy products
- ๐ฅฉ Meat & seafood
- ๐ Bakery items
- ๐ฅซ Pantry staples
- ๐งผ Household items
- And more...
Custom Icons¶
Don't like the suggestion?
- Tap the icon to browse all options
- Search for specific icons
- Categories organized for easy finding
Category Prediction¶
Smart Categorization¶
Items automatically categorized:
- "Apples" โ Produce
- "Cheddar cheese" โ Dairy
- "Ground beef" โ Meat
- "Paper towels" โ Household
Confidence Scores¶
High-confidence predictions auto-assigned. Low confidence suggestions shown for confirmation.
Override Options¶
Don't agree with the category?
- Tap to change
- Choose from category list
- Your choice remembered for future
Quantity Suggestions¶
Common Quantities¶
Suggested based on item type:
- Milk - "1 gallon", "Half gallon", "Quart"
- Eggs - "1 dozen", "18 count"
- Apples - "5 lbs", "1 bag"
Smart Defaults¶
Previous quantities for the same item:
- If you usually buy "2 lbs" of apples
- That becomes the default suggestion
Enabling/Disabling¶
Toggle Smart Suggestions¶
In Settings โ Lists & Items:
- Smart Suggestions - Main toggle
- Auto-Categorize - Category predictions
- Icon Suggestions - Automatic icon assignment
- Quantity Presets - Quantity suggestions
Performance¶
Resource Usage¶
Minimal impact on device:
- Model size - ~5 MB
- RAM usage - ~20 MB during predictions
- Battery - Negligible impact
- CPU - Runs on background thread
Prediction Speed¶
- Typing latency - <50ms
- Icon lookup - <100ms
- Category prediction - <100ms
Privacy & Data¶
On-Device Processing¶
All predictions happen locally:
- โ No data sent to servers
- โ Your items stay private
- โ Works offline
- โ GDPR compliant
Data Collection¶
ShopSync does NOT:
- โ Upload your shopping lists
- โ Track individual items
- โ Sell your data
- โ Use your data for ads
Model Updates¶
Models updated periodically:
- Downloaded with app updates
- Optional manual model download
- Backwards compatible
Future Enhancements¶
Upcoming ML features:
Price Predictions¶
Estimate costs based on typical prices.
Shopping Patterns¶
Learn your shopping habits:
- "You usually buy milk on Sundays"
- "Time to restock toilet paper"
Recipe Integration¶
Add recipe ingredients automatically.
Store Layout Learning¶
Optimize list order for your favorite store.
Troubleshooting¶
Suggestions Not Appearing¶
- Check if enabled - Settings โ Smart Suggestions
- Update model - Settings โ Advanced โ Update ML Model
- Clear cache - May need to relearn patterns
- Reinstall app - Last resort
Poor Suggestions¶
- Use items more - Model improves with usage
- Manually categorize - Teaches the model
- Provide feedback - Report suggestion issues
High Battery Usage¶
If smart suggestions use too much battery:
- Check background refresh is disabled
- Update to latest app version
- Disable if not needed
Technical Details¶
Model Specifications¶
- Framework - TensorFlow Lite
- Input - Text string (item name)
- Output - Top 5 predictions with confidence scores
- Latency - <100ms on modern devices
- Model size - 4.8 MB
Implementation¶
Key components:
SmartSuggestionsService- Manages ML modelFoodIconDetector- Icon predictionItemCategoriesService- Category assignment
See Services Documentation for technical details.
Best Practices¶
Getting Best Results" - Use consistently - Model learns your habits - Accept good suggestions - Reinforces model - Correct bad ones - Improves accuracy - Use standard names - "Milk" vs. "Moo juice