Inspiration

We were always interested in making a medical hack. When brainstorming, someone suggested a carpal tunnel corrective app. Initially we didn’t know if this was feasible, but at Hacktech, we talked to some of the Microsoft representatives helped us flesh out some of the implementation details.

What it does

Poor hand position and wrist angle while typing put you in risk of carpal tunnel. Our app attaches a wearable accelerometer to the back of your hand while you type, and use this data to calculate the angle of your wrist. We then store this data in our SQL database for later access. Our website displays a live visualization of your wrist angle. With ALMD, frequent computer users can effortlessly monitor their wrist posture and reduce their risk of carpal tunnel.

How I built it

We attached an accelerometer to a Raspberry Pi running a headless Linux environment. A Python script reads the raw data and converts it into the angle from the horizontal plane. Every second, it uploads an average angle and associated time to our database over WiFi. For this portion of the hack, we sent the data directly to an Azure event hub, then to a stream analytics app which stored it in a SQL database.

Meanwhile, we wrote our website backend with Django and used Azure Web Apps for hosting. Our front-end Javascript continuously polls an endpoint on our backend for the latest wrist angle. We used D3 to make a dynamic pie chart showing current wrist angle.

Challenges I ran into

Overall, our largest challenge was that we learned a lot of new technologies for this hack, including accelerometers, the Raspberry Pi, Microsoft Azure, and D3.js. This meant we spent the first day reading documentation, asking mentors, and googling just to get our basic set-up working, and ran out of time to implement some of our planned features.

Specific challenges we had were problems setting up the Raspberry Pi without a monitor, reading the accelerometer from the Pi, and setting up the Azure web app.

Accomplishments that I'm proud of

Even when nothing was working at all for the first half of the hackathon, which was very frustrating, we kept trying things and eventually fixed all our problems. We’re also happy that we learned lots of new skills we can use at future hackathons!

What I learned

We learned a lot of new things making our hack. No one had used a Raspberry Pi before, just other microcontrollers, so we learned how to access Raspberry Pi’s pins. We also learned how to convert accelerometer output into actual angles. On the backend side, we how Azure hosting works and how to use stream analytics to insert into the database.

What's next for ALMD

One application for ALMD is helping researchers gather data about carpal tunnel. Our website would offer data analysis options for either a single user to look at their performance over time, or for researchers to view and analyze data collected by multiple users.

We would also improve our wearable. One idea we had was using a light to notify the user if their wrist is at a bad angle. We also could add another accelerometer on a user’s arm to calculate the exact angle of the wrist compared to the arm instead of just angle from the horizontal, which provides a more accurate indicator of carpal tunnel risk.

  • user can look at graph of their performance over a period of time
  • allow researchers to compare data for multiple users
  • wearable includes LED or other notification if wrist posture is bad
Share this project:

Updates