Inspiration
We wanted to incorporate VR applications into an application that is more accessible to the general public, thus using computer vision to simulate the interactive element of 'picking up' materials. We also recognized the need for more hands-on, interactive learning modules in primary school. This brought us to explore the need for more accessible dissection labs, as specimens were difficult to obtain in primary and secondary education, and many younger students are often intimidated by the smell, concerned by dangerous chemicals (ie, formaldehyde), or skeptical about the overall concept of an animal dissection. By making a more gamefied, educational online application, while keeping the hands-on aspect of dissections, it can help students explore biology and learn anatomy more memorably.
What it does
Models an animal or plant in 3D for dissection. Hand gestures can be used to cut the specimen, pick up parts, and zoom into parts for further inspection. Educational panels are provided to walk the user through information so they can learn the anatomical parts of the specimen, and a custom AI chatbot to help answer any questions the student may have during the learning process.
How we built it
- 3D and physics: Three.js for rendering, with Rapier physics so removed parts fall and settles realistically
- Hand tracking: Google's MediaPipe Hand Landmarker, which is run on the local browser so no video ever leaves the device
- Gestures: custom recognition for pointing (scalpel), pinching (grab/peel), and two-hand zoom, with smoothing to reduce tracking jitter
- Models: the models are built in code with Three.js, using textures we generated with Python scripts and custom-made 3D blender models
- AI tutor: Gemini API behind a small Node.js server, which sends the tutor the current state of the dissection (specimen, tool, incision progress, organs removed)
- Frontend: Vite and vanilla JavaScript
Challenges we ran into
The 3D depth mapping of the hand tracker was difficult at first due to being constrained by a single webcam. Tracking motion in horizontal directions was fairly simple, but depth perception was difficult to track. We considered using april tags attach on a wand or setting up a second camera, but decided against it since it went against our accessibility values. We addressed this issue by calibrating the points between joints in the hand, and using the distance between those points to estimate the depth of the hand. We also added snapping for incisions/cutting to help make it friendlier.
We also found it difficult to obtain the 3D models for our dissections. We initially looked for open-source models on PolyHaven and PolyFork, but they weren't specific enough for what we were looking for in the dissection. Instead, we used a combination of Codex and Blender to generate custom models for our dissection lab, as it was able to contain enough detail for our lab.
Accomplishments that we're proud of
We're proud of our implementation of computer vision for interactive and more hands-on dissections on-screen. The hand models that mapped the real tracked hand on camera took a lot of iteration and eventually gave us a satisfying result. We were also proud of the detail of the models, being able to dissect individual parts of a specimen as well as analyze the function of each organ. This also included our chatbot, which used Gemini's API to provide live analysis and feedback based on the user's dissection.
What we learned
We learned that 3D models make it less flexible to implement the desired UI – with more complex and detailed textures, the rendering would take longer and slow down the device and functionality. This vital tradeoff was a difficult decision to make, but we decided that functionality for the simulation was more important than perfect visuals for the MVP. We also learned that finding and making 3D models was much more challenging than we first anticipated, since we were unable to find any publicly available models for our project.
What's next for Scalpless
- Larger variety of realistic models so more dissections can be done digitally.
- More suitable visuals & engaging animation for better user experience and aesthetic interface
- Photo-scanning and auto-modeling so any animal/plant taken a photo of in real life can be dissected for anatomical education on-the-go.