Portfolio · IoT Project
Limb Length Discrepancy Measurement
Techniques for Limb Length Discrepancy Measurement
Role & Contributions
A senior-year capstone project where I served as team leader, guiding the team technically and handling practical communication. On the technical side I was responsible for overall integration and API-based data exchange, including collecting data, running linear analysis, and sending the results to the database, as well as gathering data through IoT and Google Forms for later statistical analysis.
1. Introduction
The hidden risks of limb length discrepancy are an important issue many people overlook — someone around you, or even you yourself, may have it. Left untreated, it can lead to a range of health problems later in life. Our team therefore developed a device aimed at early detection, so that people with this condition can identify it early and seek early intervention.
2. Effects of Limb Length Discrepancy
Structural and functional limb length discrepancies are two distinct types, with clear differences in their causes and characteristics.
Structural Limb Length Discrepancy
- Cause: Caused by differences in the body structure itself, usually related to bone structure, fractures, or other physiological factors.
- Characteristics: Asymmetry in the skeletal structure, usually confirmable via X-ray or other imaging; the leg length difference is relatively stable and does not change with posture or activity.
- Symptoms: May lead to unstable gait, spinal and joint problems, as well as pain and discomfort.
Functional Limb Length Discrepancy
- Cause: Caused by muscle or soft-tissue imbalance and postural issues; usually involves no skeletal change, and the difference is mostly temporary and can vary with posture.
- Characteristics: Postural or muscular imbalance can make one leg appear shorter under certain conditions; usually reversible.
- Symptoms: Postural instability, muscle imbalance, pain or discomfort — usually improvable through posture correction or muscle training.
3. Measurement Method
Hardware Setup
We used a WeMos D1 R1 development board configured in the Arduino environment, chosen for its full TCP/IP stack and Wi-Fi IoT control chip. An ultrasonic sensor is connected to capture readings, with remote control handled over IoT. During measurement, the subject places one foot on a small stool and, guided by a laser level and an assistant, shifts left or right until the body is upright (a vertical line from head to sole). Each leg is measured once to obtain the length difference between the two legs.
App Control
Users access the app by entering the IP address of the connected device. The app has three buttons: measure the left leg, measure the right leg, and send the data to the database and form.
Google Forms
Used to consolidate and display the collected data, evaluate the ratio of the user’s leg length difference, and provide data visualization for follow-up gait analysis research.
MySQL Database
The app sends data over IoT to a MySQL database for storage and further analysis. The data can be uploaded to a gait analysis website for storage and sharing, letting users easily review their personal measurements and the difference between their legs.
4. Technical Architecture
- Hardware: WeMos D1 R1, ultrasonic sensor, IoT device
- Server: XAMPP (Apache + MySQL + PHP)
- App: Android Studio
- Data Processing: Linear regression analysis, sensor error optimization, data consolidation and real-time reporting
5. Practical Applications
Suitable for small clinics, shoe stores, and similar venues, helping deliver better personalized service and advice. Early detection and measurement of limb length discrepancy is essential to preventing related health problems.