u/CandidateNo67

Please help with Software: Gait analysis

Hi everyone,

We’re currently working on a student project where we’re building a smart insole for gait analysis using pressure sensors, and we’d really appreciate some advice because we’re basically teaching ourselves everything while doing this.

The idea is to place around 6–8 pressure sensors inside an insole, collect pressure data while someone walks, send that data wirelessly (probably via an ESP32 + Bluetooth), and visualize it as a real-time foot pressure heatmap in a JavaFX desktop application. Later, we’d also like to detect gait phases like heel strike, mid-stance, toe-off, step count, cadence, asymmetry, or unusual loading patterns.

Current Software Approach

I’m mainly responsible for the software side and trying to figure out the best way to create the visualization.

My current idea is to use a foot-shaped mask/silhouette and generate the heatmap by interpolating between the sensor points, probably using inverse distance weighting (IDW), since we only have sparse sensor data.

Does this sound like a reasonable approach, or would you structure this differently?

Hardware / Sensor Questions

I’d especially love advice on what type of pressure sensors would actually make sense for a prototype like this. I honestly don’t know what works best in practice for repeated walking loads, decent responsiveness, and a student-friendly budget.
And if you only had a small number of sensors, where would you place them biomechanically?

Data Transmission / Processing

Does this architecture make sense?

Pressure sensors → microcontroller (ESP32?) → BLE/Bluetooth → JavaFX desktop app

Would BLE be smooth enough for near real-time visualization?

I’d also appreciate advice on calibrating the data from the sensors into data that i can use (kPa) or smth anything helps

For gait detection, would a simple threshold/state-machine approach be enough at first for things like heel strike, toe-off, cadence, step count, and asymmetry, or is that too naive?

Beginner Pitfalls / General Advice

None of us have any prior knowledge in embedded systems, biomechanics, hardware integration, or signal processing, so we’re learning as we build.
So Honestly, any advice that helps make this simpler would be hugely appreciated.

Thanks a lot :)

reddit.com
u/CandidateNo67 — 21 hours ago

PLS HELP: Gait Analysis

Hi everyone,

We’re currently working on a student project where we’re building a smart insole for gait analysis using pressure sensors, and we’d really appreciate some advice because we’re basically teaching ourselves everything while doing this.

The idea is to place around 6–8 pressure sensors inside an insole, collect pressure data while someone walks, send that data wirelessly (probably via an ESP32 + Bluetooth), and visualize it as a real-time foot pressure heatmap in a JavaFX desktop application. Later, we’d also like to detect gait phases like heel strike, mid-stance, toe-off, step count, cadence, asymmetry, or unusual loading patterns.

Current Software Approach

I’m mainly responsible for the software side and trying to figure out the best way to create the visualization.

My current idea is to use a foot-shaped mask/silhouette and generate the heatmap by interpolating between the sensor points, probably using inverse distance weighting (IDW), since we only have sparse sensor data.

Does this sound like a reasonable approach, or would you structure this differently?

Hardware / Sensor Questions

I’d especially love advice on what type of pressure sensors would actually make sense for a prototype like this. I honestly don’t know what works best in practice for repeated walking loads, decent responsiveness, and a student-friendly budget.
And if you only had a small number of sensors, where would you place them biomechanically?

Data Transmission / Processing

Does this architecture make sense?

Pressure sensors → microcontroller (ESP32?) → BLE/Bluetooth → JavaFX desktop app

Would BLE be smooth enough for near real-time visualization?

I’d also appreciate advice on calibrating the data from the sensors into data that i can use (kPa) or smth anything helps

For gait detection, would a simple threshold/state-machine approach be enough at first for things like heel strike, toe-off, cadence, step count, and asymmetry, or is that too naive?

Beginner Pitfalls / General Advice

None of us have any prior knowledge in embedded systems, biomechanics, hardware integration, or signal processing, so we’re learning as we build.
So Honestly, any advice that helps make this simpler would be hugely appreciated.

Thanks a lot :)

reddit.com
u/CandidateNo67 — 1 day ago
▲ 6 r/learnjava+4 crossposts

PLS HELP : Gait Analysis

Hi everyone,

We’re currently working on a student project where we’re building a smart insole for gait analysis using pressure sensors, and we’d really appreciate some advice because we’re basically teaching ourselves everything while doing this.

The idea is to place around 6–8 pressure sensors inside an insole, collect pressure data while someone walks, send that data wirelessly (probably via an ESP32 + Bluetooth), and visualize it as a real-time foot pressure heatmap in a JavaFX desktop application. Later, we’d also like to detect gait phases like heel strike, mid-stance, toe-off, step count, cadence, asymmetry, or unusual loading patterns.

Current Software Approach

I’m mainly responsible for the software side and trying to figure out the best way to create the visualization.

My current idea is to use a foot-shaped mask/silhouette and generate the heatmap by interpolating between the sensor points, probably using inverse distance weighting (IDW), since we only have sparse sensor data.

Does this sound like a reasonable approach, or would you structure this differently?

Hardware / Sensor Questions

I’d especially love advice on what type of pressure sensors would actually make sense for a prototype like this. I honestly don’t know what works best in practice for repeated walking loads, decent responsiveness, and a student-friendly budget.
And if you only had a small number of sensors, where would you place them biomechanically?

Data Transmission / Processing

Does this architecture make sense?

Pressure sensors → microcontroller (ESP32?) → BLE/Bluetooth → JavaFX desktop app

Would BLE be smooth enough for near real-time visualization?

I’d also appreciate advice on calibrating the data from the sensors into data that i can use (kPa) or smth anything helps

For gait detection, would a simple threshold/state-machine approach be enough at first for things like heel strike, toe-off, cadence, step count, and asymmetry, or is that too naive?

Beginner Pitfalls / General Advice

None of us have any prior knowledge in embedded systems, biomechanics, hardware integration, or signal processing, so we’re learning as we build.
So Honestly, any advice that helps make this simpler would be hugely appreciated.

Thanks a lot :)

reddit.com
u/CandidateNo67 — 1 day ago

Gait Analysis HELPPP

Hiiii,

we’re currently working on a student project where we’re developing a smart insole for gait analysis with integrated pressure sensors, and I’d really appreciate any advice because we’re basically building this from scratch without ANY prior hardware/software experience.

The general idea is:

- insole with around 6–8 pressure sensors
- collect pressure data in real time while walking
- transmit the data wirelessly (probably Bluetooth via something like ESP32?)
- visualize the pressure distribution as a real-time foot pressure heatmap
- detect gait phases / irregularities later on

I’m mainly responsible for the software side, so I’m currently trying to build the visualization in JavaFX. The plan right now is to create a foot-shaped heatmap by placing a foot mask (PNG), then interpolating between sparse sensor points (probably using Inverse Distance Weighting / IDW, maybe bilinear interpolation

But since we only have 6–8 sensors, I’m unsure what the most realistic / professional approach is.

A few questions:

  1. Sensor choice
reddit.com
u/CandidateNo67 — 1 day ago
▲ 7 r/learnjava+2 crossposts

Heatmap in Java?

Hiiii,

we’re currently working on a student project where we’re developing a smart insole for gait analysis with integrated pressure sensors, and I’d really appreciate any advice because we’re basically building this from scratch without ANY prior hardware/software experience.

The general idea is:

- insole with around 6–8 pressure sensors
- collect pressure data in real time while walking
- transmit the data wirelessly (probably Bluetooth via something like ESP32?)
- visualize the pressure distribution as a real-time foot pressure heatmap
- detect gait phases / irregularities later on

I’m mainly responsible for the software side, so I’m currently trying to build the visualization in JavaFX. The plan right now is to create a foot-shaped heatmap by placing a foot mask (PNG), then interpolating between sparse sensor points (probably using Inverse Distance Weighting / IDW, maybe bilinear interpolation

But since we only have 6–8 sensors, I’m unsure what the most realistic / professional approach is.

A few questions:

  1. Sensor choice
    What pressure sensors would you recommend for a smart insole prototype?
    practical for:
    - repeated load
    - decent accuracy
    - reasonable budget
    - real-time responsiveness

  2. Sensor placement
    Biomechanically, where would you place them?

I think:
- heel
- medial forefoot / ball of foot
- lateral forefoot
- maybe arch?

But I’d love input from other people

Goal:
something visually similar to medical plantar pressure maps

3Calibration
How would you calibrate pressure sensors for something like this?

Things I’m wondering:
- normalize per sensor?
- user-specific calibration?
- thresholding?
- drift compensation?

  1. Gait analysis
    Once the pressure stream works, how would you approach gait detection?

For example:
- heel strike
- mid stance
- toe-off
- step count
- cadence
- asymmetry
- abnormal loading

  1. General “things beginners underestimate”
    This is probably our biggest issue 😅

We don’t have any prior lecture knowledge in embedded systems / biomechanics / signal processing, and we’re teaching ourselves while building this.

So honestly any advice helps:
hardware, software architecture, sensors, BLE, signal filtering, visualization, calibration, gait logic blbla literally anything that would make this easier. also if you know where i can find similar projects lmk pls
Thanks a lot for reading allat :)

reddit.com
u/CandidateNo67 — 1 day ago