Pycon Tanzania 2026

Can Fake Data Teach a Glove to Speak? Prototyping Assistive Technology with Python

PyCon Long Talk, 30 min Data, AI & ML Intermediate
Thursday 26 November 15:30 to 16:00 Main Hall, Binary Labs, Dar es Salaam

What if the biggest obstacle to building an assistive-tech prototype isn't the model, but the dataset? I built a Machine Learning (ML) glove that uses five flex sensors to recognize American Sign Language (ASL) letter gestures. Instead of individually recording thousands of gestures, I used Python to generate 6,500 labelled samples from measured sensor ranges. Through this case study, I'll show how the dataset generator and ML model were built, when synthetic data can accelerate early-stage assistive-tech research, what assumptions it introduces, and why real-world validation still matters.

What if the Dataset Is Harder to Build Than the Model?
When developing machine learning systems that interact with the physical world, collecting enough representative training data can be one of the biggest barriers to getting started. While discussions around machine learning often focus on model architectures and training techniques, the practical challenge of obtaining useful datasets is frequently overlooked.
Consider a wearable sign-language recognition system. Beyond building the hardware and selecting a machine learning model, we need to capture gestures repeatedly, record sensor measurements, account for variation between users, and organize those observations into a dataset suitable for training. Gathering sufficient data can quickly become one of the most time-consuming parts of the project.
This challenge emerged during my final-year engineering project: a wearable glove designed to recognize isolated American Sign Language (ASL) fingerspelling letters and produce corresponding audio output. The glove used five flex sensors connected to an ESP32 microcontroller to measure finger-bending patterns associated with different letters.
Rather than collecting thousands of individual gesture recordings, I explored a different approach. Using Python, I converted a smaller set of experimentally measured sensor ranges into a synthetic dataset containing 6,500 labelled training samples. These samples were synthetically generated using ranges derived from real physical measurements and used to train a machine learning model that formed part of the assistive-technology prototype.
This talk is not simply about building a glove or training a classifier. Instead, it examines a broader engineering question:
"Can measurement-based synthetic data accelerate the prototyping of assistive technologies when collecting real-world data is difficult, costly, or time-consuming?"
Through this case study, we'll explore both the possibilities and limitations of that approach.

What We'll Explore
1. Understanding the Physical Data: We'll begin with the hardware itself and examine how flex sensors were used to capture finger movement. I'll explain how the sensor readings were collected, processed, and translated into numerical ranges associated with different ASL fingerspelling configurations.
2. Generating a Synthetic Dataset with Python: This is the technical centrepiece of the session. We'll look at how Python was used to represent observed sensor ranges, generate labelled training examples through randomized sampling using the random module, and organize the resulting dataset using pandas. Attendees will see how a relatively simple Python workflow transformed limited physical observations into 6,500 training samples.
More importantly, we'll discuss the assumptions introduced by this method, particularly the independent generation of sensor values, and examine where synthetic data may differ from real human movement patterns.
3. Training the Model and Integrating the Prototype: Next, we'll follow the generated dataset into the machine learning pipeline. I'll explain how TensorFlow was used to train a multilayer perceptron (MLP) to classify 26 ASL fingerspelling letter classes, before following the model into its integration with the glove-based prototype and pre-recorded audio output.
We'll explore what the evaluation results suggest about the generated data, as well as what they cannot tell us about real-world performance.
Photos, code samples, and prototype footage will illustrate how the different parts of the system came together.
4. Evaluating the Broader Question: Finally, we'll return to the question that motivated the project. How useful is synthetic data when building practical machine learning systems? When can it accelerate experimentation, and what risks should engineers understand before relying on it?
Rather than presenting synthetic data as a universal solution, we'll examine where it appears helpful, where caution is required, and why real-world validation remains essential for assistive-technology applications.

What Attendees Will Take Away
Attendees will learn how to:
- Transform physical sensor measurements into structured datasets using Python.
- Generate labelled synthetic data from observed numerical ranges.
- Understand the assumptions and limitations of range-based data generation.
- Identify when synthetic data can accelerate experimentation and when real-world data collection remains necessary.

This session is intended for Python developers and learners interested in practical machine learning, synthetic data, physical computing, and assistive technology. Python fundamentals are helpful, but electronics experience is not required.

#AI