
AIdeas: Numbers Tutor
Numbers Tutor is an AI-powered early onset learning platform that helps children build strong numerical foundations at the most critical stage of cognitive development, by teaching number recognition through reading and writing. It pairs adaptive AI feedback with human-in-the-loop activities, empowering children, parents, and teachers to reinforce learning early, when it has the greatest long-term impact on confidence, literacy, and academic success.
App category
Social Impact and Daily Life Enhancement.
Why Social Impact and Daily Life Enhancement? Numbers Tutor addresses one of the most critical yet underserved challenges in global education, providing every child, regardless of background or resources, with a joyful, personalised pathway into numeracy during their formative years. Skillsets that will carry throughout their lifetime.
Team: @mosesochola
The Vision
Numbers Tutor is an AI-powered early childhood learning platform designed to help young children build strong numerical foundations through two complementary, play-based modalities: writing numbers by hand and saying them aloud. The platform pairs adaptive AI feedback with human-in-the-loop activities, empowering children, parents, and teachers to reinforce learning early, precisely when it has the greatest long-term impact on confidence, literacy, and academic success.
The core idea is simple but powerful: when a child draws the number ‘7’ on an interactive canvas or speaks the word ‘seven’ into a microphone, the AI Tutor instantly evaluates their response and responds with encouraging animated feedback tailored to their skill level. No wrong marks, no discouraging scores, just a friendly, patient tutor that meets the child where they are.
The platform is designed from the ground up to be:
- Joyful. Vibrant visuals, animated characters, and celebratory audio keep young learners engaged.
- Adaptive. AI continuously adjusts difficulty [WIP] and hints based on each child's performance patterns.
- Inclusive. [WIP] Multilingual support (English, French, Spanish, Arabic) and compatibility with low-cost devices ensure equitable access.
- Transparent. Caregivers and teachers receive clear, actionable progress summaries without needing deep pedagogical expertise

Why It Matters
The first years of a child's education are irreversible. Research, including the Landmark Research by Duncan et al. (2007) meta-analysis of six longitudinal studies, consistently shows that early math skills like number recognition and counting are the strongest predictors of later academic success in both mathematics and reading, often outperforming early literacy. Yet for too many children, especially in under-resourced communities, the tools available are inadequate: worksheets are static, generic apps ignore individual learning pace, and teachers in stretched classrooms cannot provide the personalised repetition that struggling learners need. These early gaps do not stay small; they compound into long-term disadvantages in STEM readiness, school confidence, and lifelong opportunity, often before formal schooling has even begun.
Numbers Tutor intervenes precisely at this critical window, targeting children aged 3–6 with an AI-powered platform that makes early numeracy joyful, adaptive, and accessible to every child regardless of background or resources. The adaptive AI Tutor delivers real-time, personalised feedback paired with warm encouragement, targeted focus areas, next goals, and playful offline activities, turning potential frustration into daily wins. At the same time, a human-in-the-loop design equips parents and teachers with clear, actionable insights so that the people closest to the child can reinforce learning with confidence. AI makes it possible, for the first time, to deliver the kind of patient, personalised tutoring that was once available only to the few, and our tool channels that capability into the highest-leverage educational moment there is.
The Beneficiaries Compressed
- Children gain a joyful, confidence-building learning experience with immediate, encouraging feedback rather than punishment or scrutinised repetition. The app celebrates effort, not just correctness.
- Parents and caregivers receive clear insights into their child's progress, focus areas, and next steps, enabling effective support without requiring deep teaching expertise. The AI Tutor generates plain-language improvement plans that any caregiver can act on.
- Teachers in resource-constrained classrooms gain a scalable tool that handles repetitive practice and immediate feedback, freeing them to focus on higher-order teaching and individual mentorship.
- Communities and NGOs gain a web-based, low-bandwidth platform they can deploy in community programs and schools without expensive hardware or connectivity requirements.
How We Built This
The Architecture Overview
Numbers Tutor follows a cloud-native, three-tier architecture specifically designed for low-latency multimodal AI Inference and high engagement reliability, two requirements that are kinda non-negotiable when your users are so young with potentially short attention spans as they’re exploring their environments.


Presentation Tier - The Child’s World
The frontend is a React 19 + TypeScript dynamic application built with Vite. Key libraries include:
- Zustand for deterministic client-side state management, keeping the UI predictable under rapid child interactions.
- Framer Motion for feedback animations that celebrate correct responses and gently encourage improvement. We intend to add audio queues to further reinforce this.
- React-canvas-draw for touch-enabled handwriting capture that works on tablets, phones, and desktops.
- Recharts for analytics visualisation in the caregiver-facing progress dashboard.
- Google Chrome Browser Web Speech API for client-side speech transcription, keeping audio on the device, reducing latency and protecting privacy.
Application Tier - The Brain
The backend is implemented in Python 3.11 using FastAPI with full async/await semantics, Pydantic-based schema validation, and async SQLAlchemy with asyncpg for non-blocking PostgreSQL access. The backend is organised into modular services that enforce strict separation of concerns:
- LLMService. Manages all interactions with AI inference providers.
- HintService. Generates and logs context-aware visual and audio hints.
- QuestionService. Dynamically generates age-appropriate prompts by mode and difficulty.
- MediaManager. Manages image preprocessing prior to vision-model submission.
Data Tier — Memory and Progress
SQLite-powered rapid local development and deterministic testing. Production uses Amazon RDS PostgreSQL for ACID compliance, connection pooling, and managed reliability. The schema cleanly separates raw question attempts from aggregated statistics, optimising for the read-heavy analytics workloads generated by caregiver dashboards and AI Tutor planning.
AI Integration
All LLM interactions are executed through the OpenAI-compatible SDK, enabling provider abstraction while maintaining explicit control over request structure, streaming behaviour, temperature, and response schema enforcement.
Production inference uses two specialised models:
- llama-4-scout-17b-16e-instruct (Groq-hosted). Vision-based handwriting evaluation, analysing the child's drawn digit against the expected number
- llama-3.1-8b-instant (Groq-hosted). Text-based tutoring, improvement plan generation, and hint construction
Groq was selected after evaluating Bedrock-hosted Llama models, which encountered quota-based throttling that proved incompatible with the sub-second to low-second latency requirements essential for child engagement. Fallback support for the Ollama Cloud provider is implemented to mitigate vendor lock-in and maintain availability.
Key Development Milestones
- Initial prototype with local AI models and SQLite. Validated multimodal evaluation feasibility and engagement flow without cloud cost.
- Core user journey implementation. Authentication, mode selection, question lifecycle, evaluator feedback loop, and persistent progress tracking.
- Interactive canvas and speech transcription integration. Enabling tactile and verbal learning modes simultaneously.
- LLM-based Evaluator and AI Tutor services. Structured output parsing and fallback handling for reliability under variable model responses.
- Hints Module with visual and audio guidance. Adaptive triggering after incorrect attempts, with full analytics logging.
- Provider migration to Groq. Resolving Bedrock throttling constraints, achieving production-grade latency.
- OpenAI SDK refactor. Tighter control over inference behaviour and cleaner provider portability.
- Handwriting Preprocessing Pipeline. Raw canvas output undergoes RGBA-to-RGB normalisation, white background injection, contrast enhancement, and blank-canvas detection before submission to the vision model. This pipeline was crucial for enhancing recognition robustness, particularly with the low-consistency strokes characteristic of young children's handwriting.
- Database migration from SQLite to Amazon RDS PostgreSQL. Schema stabilisation and async connection pooling.
- Containerisation and ECR push. Docker multi-architecture builds (AMD64) for frontend and backend services.
- AWS ECS Fargate deployment. ALB routing, environment-based configuration, health checks, and auto-scaling.
- Request deduplication layer. Hash-based caching to prevent redundant high-cost inference calls.
- Caregiver analytics and personalised improvement plans. Completing the adaptive learning loop.
Demo
Write Numbers Mode (Screenshots)
The child is presented with a word-form prompt (e.g. 'Draw the number: eight'). They use the interactive canvas to write their answer with touch, stylus, or mouse. The drawing is preprocessed and submitted to the vision model, which returns structured, emotionally positive feedback within seconds.

Say Numbers Mode (Screenshots)
The child is shown a digit-form prompt (e.g. 'Say this number aloud: 3'). Browser-side speech recognition transcribes their response instantly, and the text model evaluates the text. This cross-modal design reinforces the connection between written symbols and their spoken equivalents.

AI Tutor & Caregiver Dashboard
The AI Tutor continuously aggregates performance data across attempts, hint usage, hesitation patterns, and accuracy trends to generate personalised improvement plans. These include an encouragement summary, specific focus areas, short-term goals, and suggested offline reinforcement activities presented in plain language that any caregiver can act on.

What We Learned
1. Your Real Users Will Humble You — Involve Them Early
The most grounding moment of this project came not from a cloud dashboard or a model benchmark, but from watching a five-year-old use the app. We had designed the number range around counting to 100, because that felt like a natural learning milestone. Testing with our niece and nephew dismantled that assumption within minutes. Kindergarten-age children are typically comfortable up to around 20, with the most confident recall concentrated in the lower single digits. Designing for a range we assumed was appropriate, rather than one grounded in observation, would have produced a product that felt discouraging rather than joyful.
That single session reshaped a core feature. We introduced configurable range functionality so that difficulty could be tuned to the child's actual developmental stage, not a textbook estimate of it. It also surfaced a second, subtler problem: within a narrow range like 0–20, random sampling caused certain numbers to repeat so frequently within a single session that children grew visibly frustrated. Writing the number 5 five times in a row is not reinforcement; it is tedium. We are still refining the solution, weighing a dynamic session weighting system (probabilistically favouring least-recently-seen numbers) against a simpler AI-informed selection strategy. The lesson is not which approach is right. The lesson is that we would never have known the problem existed without putting the product in front of the actual user.
The takeaway: No assumption about a child user survives first contact with a child. Build a feedback loop with real young users as early as possible, and treat every observation as a design specification.
2. Latency is a Pedagogical Constraint, Not Just an Engineering One
A two-second feedback delay is a minor inconvenience for an adult using a productivity tool. For a six-year-old who has just traced a digit with their finger and is waiting to find out if they got it right, two seconds is long enough for attention to drift, the learning moment to dissolve, and frustration to set in. The connection between action and feedback, the core mechanism of positive reinforcement, depends entirely on immediacy.
This insight reframed every infrastructure decision we made. It is why we chose Groq-hosted inference over AWS Bedrock: Bedrock's quota-based throttling pushed p95 latency above three seconds, which we discovered was incompatible with sustained child engagement. It is also why we moved speech transcription client-side using the browser's Web Speech API, eliminating a round-trip entirely rather than optimising it. It is why we built a hash-based request deduplication cache, not primarily to save money (though it does), but because re-submitting an identical evaluation request wastes the one resource a child will not give you back: their next few seconds of attention.
Pedagogy and systems engineering turned out to be the same discipline wearing different clothes. Every millisecond recovered was a learning moment preserved.
The takeaway: When your users are children, latency is not a performance metric, it is a product requirement. Design around it from day one.
3. Children's Handwriting Is a Genuinely Hard Computer Vision Problem and Visibility Matters
Recognising adult handwriting is, for modern vision models, a largely solved problem. Recognising a five-year-old's finger-drawn attempt at the digit 6 with inconsistent pressure, unpredictable rotation, wildly variable proportion, and strokes that sometimes double back on themselves is an entirely different challenge. Early evaluations without preprocessing returned inconsistent results even from capable multimodal models, because the raw canvas output was simply too noisy to interpret reliably.
The image preprocessing pipeline we built, RGBA-to-RGB normalisation, white background injection, CLAHE contrast enhancement, blank-canvas detection, and 512×512 centred resizing, proved as important to accuracy as the model selection itself. Stripping away ambiguity before the model ever sees the input is a form of feature engineering that dramatically narrows the problem space.
Testing with the kids also revealed a related lesson about hint design. Our initial hints were text-based and abstract, which offered little to a child who might not yet read fluently. Effective hints for early learners need to be visual: a small drawing of the target number, a set of dots they can count, or a concrete image anchoring the concept. A hint that is hard to see or understand is no hint at all. We intend to move toward hints with embedded iconography: shape counts alongside the numeral, familiar objects grouped to match the quantity. Visibility and concreteness are not cosmetic choices for this audience; they are functional ones.
The takeaway: Pre-processing your inputs is as valuable as selecting the right model. And when designing for children, every feedback element, hints included, must be visual, concrete, and immediately legible.
4. A Frontend Bug Can Cost You Three Times Your API Budget
One of the most instructive moments of the project had nothing to do with AI. During development, we noticed that our frontend was triggering multiple evaluation requests for what the child experienced as a single submission. The culprit was a component re-render cycle: a state update intended to keep the UI current was inadvertently firing the evaluation call on each re-render rather than once on explicit submission. In local development with a single user, this was invisible. At any meaningful scale, it would have tripled our inference costs, silently, with no error, just an inflated bill.
The fix was straightforward once diagnosed. The lesson was more fundamental: even when moving quickly, especially when vibe-coding, you must maintain enough understanding of your stack to be able to read your own logs and question what you see. A request log that shows three evaluation calls per user interaction is not normal, and the only way to catch it is to be looking. We now treat API call volume as a first-class metric, monitored alongside latency and error rate from the earliest stages of testing.
This experience also reinforced a broader cost-architecture principle: if you are considering a GPU instance to run local LLMs in production, first ask whether an API alternative exists. Unless you are processing sensitive PII that cannot leave your environment, managed inference endpoints, particularly at early-stage traffic volumes, are almost always cheaper once you account for GPU instance cost, idle time, and maintenance overhead. And regardless of provider, rate limiting is not optional infrastructure. It is the cheapest line of defence you have.
The takeaway: Understand your stack well enough to interrogate your logs. Unexpected API call volume is a bug, not a feature. Rate limiting and request deduplication are not premature optimisations; they are production fundamentals.
5. Provider Abstraction and Equity Are Both First-Class Engineering Constraints
Two decisions we made early in the project, one technical, one product, turned out to share the same underlying principle: constraints you treat as optional will eventually become crises.
On the technical side, we initially integrated directly with AWS Bedrock. When quota throttling made those latency targets unachievable, switching to Groq would have required significant refactoring, except that we had built around the OpenAI-compatible SDK interface from the start.
The migration became a configuration change: swap the base URL and model name, update the API key, done. Provider abstraction, which had felt like engineering overhead when we built it, turned out to be the decision that kept the project alive during a critical phase. For any AI-powered product operating in a landscape where model availability, pricing, and performance shift regularly, treating provider portability as a first-class requirement is not over-engineering; it is basic risk management.
On the product side, the same logic applies to equity. Supporting low-cost devices, keeping the platform web-based so no app store download is required, processing speech on-device to reduce data transmission, building multilingual support in from the architecture rather than bolting it on later, none of these was free. Each required deliberate choices at the infrastructure, API design, and UI layers.
But treating equitable access as a constraint that shapes design from the beginning produces a fundamentally different product than retrofitting it at the end. The children who would benefit most from a tool like this are also the most likely to be on slow connections, older devices, and in multilingual households. If the architecture does not account for them from the start, it will not reach them at all.
The takeaway: The constraints that feel optional in early development, provider abstraction, accessibility, and equity are the ones most likely to become blocking problems later. Treat them as requirements from day one.
Looking Ahead
The next phase of Numbers Tutor focuses on extending beyond just reading and writing numbers to basic mathematics, and reaching to the communities that need it most. Planned enhancements include offline-capable Progressive Web App support for low-connectivity environments, expanded multilingual coverage beyond the current four languages we’re working on, and adaptive curriculum progression that moves beyond single-digit numbers as a child's confidence grows.
Perhaps most importantly, we are investing in structured caregiver co-learning pathways, tools that transform the parent or teacher from a passive observer of AI-generated reports into an active participant in the learning loop.
The AI Tutor's improvement plans are only as valuable as the human action they inspire. The most sophisticated feedback system in the world cannot substitute for a caregiver who understands what their child needs and feels equipped to help, and the most important lesson of all.
#EMEA #Africa #Kenya
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article