The Open Pressure Sensor Device
S07:E55

The Open Pressure Sensor Device

Episode description

Paul welcomes Michelle Hui and Reitwiec Shandilya, master’s students at Cornell Tech. They discuss their project, an open source medical device that helps mastectomy patients, that runs CircuitPython.

00:00 Intro

00:46 The Open Pressure Sensor Device

2:05 Overcoming the problem gaps

2:58 Partnering with clinicians

5:26 The hardware and firmware

8:13 Reverse engineering the proprietary device

13:48 The Open Source Hardware Association

20:09 What’s next for OpenPSD?

21:42 Wrap-up

Download transcript (.srt)
0:02

Welcome to the Circuit Python Show.

0:03

I'm your host, Paul Cutler.

0:05

This episode, I'm joined by Michelle Hui and Reitwiec Shandilya.

0:09

Michelle is a master's student at Cornell Tech and AI and Urban Technology.

0:14

Her practice includes accessible technology for good across health and climate.

0:18

Previously, she has worked at Wing, Google's drone delivery moonshot, and the United Nations.

0:24

Reitwiec is a master's student at Cornell Tech and a fellow at 645 Ventures,

0:28

where he focuses on early stage investments in AI infrastructure, security, and hardware.

0:33

Previously, he was an early member of SAP's AI team working on Enterprise AI Solutions.

0:41

Michelle and Reitwiec, welcome to the show.

0:43

Thank you for having us, so excited to be on.

0:45

Yeah, it's great to be here Paul.

0:47

You've worked together to develop the open pressure sensor device or open PSD.

0:51

What is the open PSD?

0:53

So the open PSD, we began working with Weill Cornell - New York Presbyterian.

0:58

But after, you know, female patients have cancer, specific breast cancer and they get mastectomy,

1:04

it leads to a serious loss of quality of life because they often say that their chest feels like it doesn't belong to themselves anymore.

1:11

When they hug their children, they can't feel their children.

1:13

So there's a surgeon at Wilde doing super cutting edge research where he essentially can reconnect your nerves and help you regain sensation in your chest.

1:21

But they had been using this proprietary medical device.

1:25

And the private company decided that it was no longer profitable

1:27

anymore and they essentially abandoned device. And not just this surgeon, but essentially all the

1:33

research labs across the U.S. doing any sort of nerve sensation, whether that's diabetes and

1:39

you do sensation in your foot or your fingers, essentially lost access to this one device.

1:44

So what we did was we actually engineered that from Blackbox and we rebuilt this pressure

1:49

sensor device, hence the name, open PSD, open pressure sensor device.

1:54

Well, yeah, I go with this was essentially to quantify sensation.

1:57

and their function and help expand it to other clinical and neuroticetics as Michelle's

2:05

what were some of the problem gaps that you were trying to resolve in addition to that

2:10

I think beyond just this proprietary medical device before that they literally used to use one

2:17

monofilament and you would just use a filament to poke at various areas of your skin so it's the super

2:22

outdated archaic method and so our open source device isn't just replacing a abandonment

2:27

medical device, but it's actually innovating on this super archaic nerve sensation method.

2:33

And on top of that, we're also working with OSHWA, the Open Source Hardware Association,

2:38

to explore, you know, what happens to any medical device, when expensive med tech decides

2:44

that it's just not profitable in pain anymore, how can we democratize healthcare medical devices,

2:50

how can we make a framework for open source, but also reliable?

2:53

And so those were the two, I think, larger impacts that we're trying to address with the project.

2:58

How did you collaborate with clinicians during the design process?

3:03

Something that we discovered when we saw the proprietary device was that had been completely over-engineered.

3:09

It had been super expensive.

3:10

They came with this giant briefcase, you know, almost Matrix-style supervillain-style briefcase.

3:17

And they pulled out like a proprietary tablet, almost their own iPad, and it had their software installed,

3:25

And then they had this giant acquisition unit.

3:27

And then they had this, like, this super boxy handheld device.

3:32

And we just felt like it had been so over-engineered.

3:34

And we could tell that they're probably trying to upsell it, you know, have software

3:38

maintenance.

3:39

And so we came in and we asked them even on the first day, like, if you could get rid of all of this,

3:42

what would you want to get rid of, right?

3:45

And we were able to change that, all of that giant briefcase into literally the size

3:49

of a screwdriver.

3:50

And that's all you needed.

3:51

It was a screwdriver.

3:52

And it was, you know, software that you could install in your own Mac.

3:55

And so we work in the clinicians.

3:57

Every single couple weeks, they would come back and give us feedback.

4:00

I remember one time the surgeon came in and he felt our device and he's like, oh, your wires

4:07

that are doing the sentencing need to adjust because it's actually hitting other areas

4:10

in the skin.

4:11

And it was just something we had totally, you know, not thought about and we didn't understand

4:14

how they were using it at all.

4:16

And so I think what we're able to do in open source and what we discovered is that because

4:21

open source isn't meant to make money, you don't have to try to.

4:25

start upselling everyone and you don't have to create this black box med tech industry,

4:30

we can actually go back and forth with the clinicians and really improve and do exactly

4:35

participatory design and create a participatory framework to improve like clinician efficiency

4:40

and just improve the workflow overall.

4:43

And something really exciting here was that, I mean, I don't know, we had really thought

4:47

about before was the initial device that they came up with was, I mean, it looked really

4:52

daunting as well. I think as a patient, you're really in a very vulnerable state when you're

4:56

going through this entire process. Imagine someone coming in with a huge briefcase and takes out

5:00

this huge gigantic device. It's really, really unnerving sometimes. And so our whole goal there

5:09

as well was we want to make patients safe, you know, we want to trust that device.

5:16

And I think since since it has gone to the clinic, we're still waiting for

5:22

for the PI's feedback, but we're looking forward to them.

5:26

You mentioned that you got it down to the size of a screw.

5:29

Tell me a little bit more about the hardware,

5:31

and then tell me what role Circuit Python played in the development of the firmware.

5:36

CircuitPython was our firmware,

5:39

and the idea, the way it was we had a load cell,

5:43

and we have filaments attached to it,

5:45

and we had sort of custom-wired and custom-twisted this filament at the end of the load-cell.

5:50

And this load cell then had a sensor, a pressure sensor, which is attached to the load cell,

5:54

which then goes to our firmware where we processed these signals, and we had some custom logic.

6:00

Just for getting, let's say, set a ton of values, taking an average out of it.

6:05

And whenever someone presses the button, it calculates a set pressure that's being applied to the load cell.

6:10

And from there, we display on a UI that we had created, which is running locally as well,

6:16

because we want to keep it on cloud, but it was personal patient data.

6:20

as well.

6:22

But yeah, that's how the overall device was set up in the hardware.

6:27

What kind of screen was the UI displayed upon?

6:30

It was just a laptop.

6:31

It was also, I mean, we just coded up and React.

6:35

And I think, so the other goal that we want to see with this project was how quickly can we actually get feedback?

6:42

And surprisingly, AI did a pretty good role there, and it helped accelerate quite a bit of her stuff.

6:49

Since going into it, I did not know a lot about, let's say, how load cells work or just the tech behind it.

6:56

Because when we were reverse engineering stuff, we came across the small parts, which we hadn't really seen before.

7:02

So I think doing the initial research and getting some other information and then helping with some initial setup,

7:07

because our main rule was to focus more on the device itself.

7:11

And the secondary things that came up with it were, let's say, the UI or whatever else.

7:17

and so we want to completely focus on the hardware

7:20

and AI help in finishing up the secondary task here really quickly

7:25

and we were able to write it really quickly

7:27

we got the PI to the lab and we were just helping him go through the

7:30

the interface and then we got some feedback here that this can be here

7:34

this can be done this that was pretty exciting yeah

7:37

sort of the AI help with writing the actual circuit Python code that you used on the device

7:42

it was a mix honestly um so initially it was just going to

7:47

all the different documentation that we could find online for.

7:50

So let's say our sensorware at S-H-X-7-11.

7:55

So figuring out information for that.

7:57

So the initial boilerplate core was provided by AI.

8:03

That was pretty helpful.

8:04

And then just fixing it by bed by bit, piece by piece was more of our own experience

8:10

and just our own software experience.

8:13

You mentioned a couple minutes ago that you had to reverse engineer

8:16

the proprietary device, how did that process go?

8:19

That was interesting.

8:20

So we had, the device, it was like this, imagine a square Mac mini style,

8:27

but small Mac mini style device.

8:29

And so it was just a lot of unscrewing stuff, taking it all apart.

8:33

And then when we opened it, there were these small, small cables inside and these small,

8:38

tiny load cells.

8:39

And we were like, okay, that seems interesting.

8:41

Then the next part was, we had a balance between buying stuff.

8:46

that's already out there and making users that and making our own custom things.

8:49

Because the whole point of open source was that if we're going to build something

8:52

from that, we want it to be accessible.

8:53

For example, let's say if we were to go ahead and build our own load cell,

8:56

then for someone to build it and replicate it, it's going to be really hard.

8:59

So we decide we go on a YouTube, we find a relevant load cell,

9:04

and then we'll design it on that.

9:05

So that was another key thing that we had to keep in mind.

9:09

Then, well, as you were exploring, we're trying to see what materials were used

9:13

because the filament that's used to poke on the skin needs to be flexible.

9:16

enough, but it also needs to be rigid. So we tried experimenting with different materials and then

9:21

eventually, I think we resulted with an aluminum kind of thing. Yeah, to add on to that, I think one of

9:29

the challenges, the overarching challenges to everything we would describe was we didn't know what was

9:35

good enough, especially because it was medical quality, right? I think if it was another open source

9:41

device for tinkering or a watch, I think you can get away with a lot of loose.

9:46

or things and can get away with different parts. But we were always like, is this good enough?

9:50

Is this accurate enough for medical application? And the Mac mini device that came to us,

9:55

as Roque mentioned, like we had started hacking it apart because we didn't know how it worked.

9:59

Like we literally took a saw and cut out pieces of the aluminum and then we like pulled off

10:04

the prongs and we started using it ourselves. But it was broken. So we truly had no idea how

10:09

it was measuring and how accurate it was. And so when we were building our stuff, we almost hit

10:16

a two-month delay or like stock point because we were just not only sure where to proceed.

10:21

We were like, we don't want to build our own custom load cell.

10:25

You know, we want to use what's off the shelf, but we don't know if this load cell is good enough.

10:30

For example, our load cell, I think, in a range of up to, I think, 10K, 1KG or 10KG, if I'm not mistaken,

10:37

but we only needed a 10th of that.

10:40

We literally only needed 1 to 100 grams of measurement force.

10:44

And so we're like, if we're only using such a minimal part of its range, is there too much noise?

10:49

Are we able to detect it?

10:50

And so we truly had no clue how to reference it.

10:53

And then another issue we face with reverse engineering from Blackbox, we thought the whole

10:59

time that it was measured in this measurement called like grams force over area to get pressure,

11:05

if that makes sense.

11:06

So, you know, the tip of the wire is like a diameter of like one millimeter.

11:11

And so we're like, oh, we have to calculate the pressure and then calculate.

11:14

like the force and divided by that area to get pressure or whatever.

11:18

And so we're going through this complicated, convoluted conversion.

11:23

And then the clinician comes back and he pulls out the real functioning device

11:26

and realized they didn't do any of that.

11:28

We realized they were literally just converting directly to force and just doing it

11:32

and just reading out that measurement.

11:34

And we actually felt totally lied to because all the papers had said that it was over area.

11:38

And I was like, wow, no one actually even knows how this device is working.

11:42

And they just had some arbitrary readout.

11:44

And we found out that our device was almost just as accurate, if not more accurate,

11:50

than their current device and was able to read forces better.

11:53

It was able to read closer to zero as well.

11:57

And so I think that was one of the big challenges we faced was just validating against

12:02

medical accuracy and having medical standards.

12:05

And this is important because, you know, as we're trying to build a framework for all

12:10

of the open source devices out there, especially medical devices, I think this is a challenge

12:14

everyone will face. How can we validate with the scrappiness of open source but also make it

12:18

reliable in protection grade for the medical industry. Yeah. And I think like something else that

12:24

was while we were going through this process, we, and as we did this, as they called,

12:29

contextual inquiry, we were looking at the PI, do we use the device proper on his own. And then

12:35

I think there was a part where you had to ask important questions like when it comes to

12:40

to accuracy, right?

12:41

Something that we realized was, because the device is measuring the sensation over a period of time,

12:48

we wanted to know what our tolerance was for accuracy.

12:51

Because at the end of the day, fundamentally we're seeing whether the sensation is improving.

12:55

So even if, let's say, they were, let's say, a small, I mean, a one person, two person error,

13:01

it would have been sort of acceptable because in this particular situation,

13:05

the main fundamental use for the device is to see, like, an overall growth over time.

13:09

So I think the important part was asking important questions like, hey, what's the real use for it?

13:14

That's because it needs to be done this way doesn't really mean that it has to be done that way.

13:18

So I think when it comes to open source medical hardware, it's important to understand what your tolerances are, acceptance is are.

13:25

And the second part was these guys are really busy.

13:29

So we had to really plan one of our first calls with the surgeon was he literally stepped out of the OR just to talk to us for like five minutes.

13:37

And it was, it was, it was so I think the second point was, we'd have to plan it out properly, and it was interesting.

13:48

So you've been talking a lot about open source.

13:49

Will you be certifying the open PSD with the Open Source Hardware Association?

13:54

So we did talk to our point of contact with OSHWA.

13:59

And he did say that I think OSHWA would be really, really happy to have his certify.

14:04

They would also want to do some sort of blog about us and, you know, just,

14:07

sort of help us reach out to as many people as possible.

14:11

Because the whole point of the NSF grant that was given to OSHWA was to promote such devices.

14:16

So, I mean, they said that we're really excited and really happy to collaborate and certify this.

14:22

Yeah, I think I remember before we started this project, actually,

14:25

we had done an interview with a couple people from OSHWA.

14:28

And it was essentially us giving feedback on what we think should be a more certifiable framework

14:33

on what open-sourced hardware or medical devices look like.

14:37

And it was this ongoing debate because, you know, as we're saying, I think medical devices need more reliability and validation.

14:45

But you can only get that validation once you've completed the device, right?

14:49

But then part of the ethos of open source is, hey, maybe you get 75% there, you put it online, and then someone else takes it forward.

14:58

And so we were having this giant debate as to is validation one of the things that require in order to be certified?

15:06

You know, like how does that kind of start veering into, you know, like a research paper publication style, is that too high of a barrier to entry to get people to do a medical device?

15:18

And so we're just having this giant debate into what a proper framework for an open source medical device looks like.

15:25

So, you know, open to end in a question for the audience to think about, for everyone to think about, what do you really need to certify a reliable open source medical device?

15:34

Yeah, for medical, you would want some kind of.

15:36

a validation because if you're putting out the design out there and someone builds it and it

15:40

doesn't do what it's supposed to do, even though it's an open source license and it could be built,

15:45

they're still not getting what they expect. Exactly. And we, I think, had some other problems

15:50

too. We are saying when we're building this wire prong, originally we were thinking of creating

15:56

this giant wire bending jig when we're going to screw some things in and then it would wire

16:01

automatically with a feed machine. But then we were thinking and we're like, well, how many people

16:06

we're going to have this complex wire bending jig that the resources of Cornell do.

16:11

And so we ended up just buying jewelry pliers on Amazon.

16:14

And we're like, okay, well, just hand wire it, hand bend it.

16:17

But then in that process, we're like, how can we communicate across the screen that this is

16:21

exactly the dimensions that they need to do it at?

16:24

And so I literally ended up tracing the shape of the wire on a piece of paper and then putting

16:28

like a quarter next to it, took a photo.

16:30

And I was like, okay, everyone, print this out, you know, zoom into your photo to size.

16:35

and this is how you're going to bend your wire.

16:37

And so it was trying to assess the accuracy,

16:39

but also balance the scrappiness of what open source is.

16:45

Key part here is the way we convinced the surgeons

16:49

and the doctors to come work with us

16:50

because we wanted to keep them,

16:52

I mean, place them on the driving seat

16:55

and draw the device around their use.

16:57

I think that was really important.

16:59

A lot of times medical equipment that would be designed

17:01

are really far apart from what the actual use case.

17:05

sometimes. I mean, that's something interesting.

17:07

Yeah, we can focus on it.

17:09

Michelle, any thoughts as we wrap up?

17:12

There were other things that we also had to do,

17:14

including the 3-D printing, the form factor prototyping as well.

17:18

I think one thing kind of, I think,

17:21

elaborating into that tension of scrappiness versus medical grade hardware,

17:26

you know, we were literally just building in the maker lab.

17:29

Like, we're quite literally, you know, just scrapping it up in the maker lab.

17:34

And so all of our prototypes for the physical, like the hand-held portion and casing the hardware.

17:40

It was all 3D-printed.

17:41

And honestly, it had like a lot of bumps and I tried to sand it out.

17:45

But it just kept making it worse and worse because the dust is getting everywhere and into the crevices.

17:50

And so highlighting that tension, again, we're like, how will a patient feel if their doctor's holding a little 3D-printed screwdriver toy?

17:57

And then we're like, how will this hold up over the years?

18:00

And that was one of the issues and the tensions we had faced as well.

18:04

So I think as a clinician right now is using it, we're excited to get feedback. And perhaps we'll have more resourcing to cast it better or, you know, wrap it up in silicone. But I think our first version was definitely perhaps not built to last, to say the least. And I think adding on to that tension as well, me and Rick are both in grad school and this is our final year here. And so we are wondering about the open source maintenance of a medical device as well. And we were wondering,

18:34

like who will carry this forward. You know, the clinician and, you know, they're not necessarily

18:39

the most technical people in terms of being able to install the software, the software breaks.

18:45

And so one of the kind of lasting questions in the back of our head is how is this going to go

18:50

forward? And that was originally one of the issues, the original proprietary medical device,

18:54

was that they're being charged every single year, essentially, to have some sort of maintenance

18:58

certification. But we realized the certification didn't actually do anything. Like the device is so simple

19:04

of load cell and the calibration, all you have to do in order to calibrate it is hang away on

19:08

it. And that will be your reference point. And once you reference point it, it'll just reset the

19:14

calibration. It was so simple. I was like, no one needs to be charged for this. This device is none

19:17

we sent in to maintain every single year. But in the back of my mind is what are we going to do?

19:23

How are we going to communicate the disclination? How are we going to validate that there has been

19:27

no measurement drift across time? And so that has been one of our longstanding questions of open

19:32

source as well, especially in the medical use case.

19:35

Yeah, that's a great question.

19:36

I know I don't have any answers off the top of my head for that.

19:39

At least talking about the wear and tech, one good thing about open sourcing

19:44

this is even if it wears down, you can just reprint it.

19:47

That's like the part about this.

19:49

Like the main core part still stays.

19:52

They can just reprint the whole outer casing if they want to with different colors.

19:56

Honestly, if they want to use it on different age groups of patients, they can make it

20:00

if they want to do it.

20:02

So there's this endless possibilities in terms of making the device look approachable and safe.

20:09

What's next for you with the device?

20:12

I think what's next right now is, as we mentioned, because it's a medical device,

20:17

we really invested into making really extensive documentation.

20:20

As I mentioned, even drawing out how the wire should be bent.

20:24

For example, we had to drill a hole into our load cell.

20:28

And I was like, how do I map out and communicate to someone where to drill this hole

20:32

and like how deep the hole should be and all of these things?

20:36

And so we really invested a lot of energy into making extensive documentation.

20:40

So we're hoping to get like a V1, V2 out soon.

20:43

Other things that are next is obviously iterating clinician feedback.

20:46

Other things is also building that framework out with OSHWA.

20:50

So scaling the impact.

20:52

And we're also interested in perhaps some sort of publishing commentary that we're working on.

20:57

to I guess propose this new framework as we're saying of how open source has enabled participatory med tech development.

21:05

In contrast to what industry proprietary black box looks like, it's you build the device and you put it and you sell it to hospitals that are super expensive.

21:16

I'm highly dubious that there's any sort of clinician iteration loop that's happening there.

21:21

And so we really wanted to publish on what a new framework could look like.

21:25

Yeah, and we're also waiting to hear back in the BI.

21:27

because I think he was planning on using this as part of his research as well as he uses it on patients.

21:34

So we're looking forward to his findings and his results and how that goes.

21:39

Yeah, super exciting.

21:40

That is exciting.

21:42

Reitwiec and Michelle, thanks so much for coming on the show.

21:45

Yeah, thank you so much for having us.

21:47

That was a really fun chatting about all this.

21:50

Thank you for listening to the Circuit Python Show.

21:53

For show notes and transcript, visit www.

21:55

www.Cythonshow.com.

21:58

Until next time, stay

22:25

positive.