About Vescueye
Problem Definition
In microsurgical procedures, especially in oral and maxillofacial surgeries, monitoring blood flow and flap viability is critical. Traditional methods are either invasive, require expensive equipment, or lack real-time monitoring capabilities, increasing the risk of flap failure and complications.
Proposed Solution
Vescueye is a non-invasive, real-time blood flow monitoring system using near-infrared imaging and temperature sensing. It helps surgeons monitor tissue perfusion remotely, using an embedded system connected to the cloud and a mobile interface for continuous observation and timely interventions.
Key Features
Real-Time Monitoring
Continuously tracks blood flow and tissue temperature during surgical procedures using NIR imaging and thermal sensors.
Non-Invasive
Eliminates the need for invasive equipment, reducing patient risk and improving comfort.
Cloud Integration
Stores data securely in the cloud for remote access, allowing doctors to monitor flap health anytime, anywhere.
User-Friendly Interface
Intuitive mobile and web applications for doctors and admins to easily monitor and interpret patient data.
Simple Hardware Design
Features a straightforward and robust hardware design for ease of use and maintenance.
Easy Doctor and Patient Management
Streamlines the process of managing doctor and patient data through an intuitive system.
Near-Infrared Imaging & Vein Detection
Vescueye uses near-infrared (NIR) light, typically around 850 nm, to illuminate the skin. Human tissue reflects most of the IR light, but oxygenated hemoglobin in veins absorbs it, making veins appear darker under NIR imaging.
A 700 nm long-pass filter blocks visible light, allowing only IR to pass. This enhances contrast between veins and surrounding tissue for accurate, non-invasive visualization.

High Level Architecture

Components Used
System Component Communication
The Vescueye system integrates hardware, cloud services, and applications to monitor facial artery conditions using near-infrared imaging and thermal sensing. Below is a description of how each component interacts:
- Raspberry Pi 3B: Captures thermal and near-infrared images using the Pi NOIR camera and MLX90614 temperature sensor. It processes the data locally and sends them to the cloud.
- AWS IoT Core: Acts as the MQTT broker to securely receive sensor data from the Raspberry Pi. It routes this data to other AWS services for further processing and storage.
- AWS S3: Stores captured image data and logs securely in cloud storage for access by web and mobile applications.
- Node.js Server: Acts as the backend API that handles requests from web and mobile apps. It processes patient and doctor data, fetches image and temperature data from S3, and stores metadata in MongoDB.
- MongoDB: Stores structured data such as patient records, doctor profiles, temperature history, image URLs, and timestamps.
- Web Admin Interface: Allows system administrators to manage patients, doctors, and device status using a secure web dashboard.
- Mobile Doctor Application: Provides doctors with a mobile interface to view patient data, monitor blood flow and temperature in real-time, and receive alerts.
- Patient Web Portal: Allows patients to view their historical data and progress, promoting engagement and transparency.
Software Components

OpenCV
Used for real-time image processing, contrast enhancement, and vein visualization techniques.

Node.js
Handles server-side operations, manages API endpoints, and communicates with database and cloud.

MongoDB
Stores patient data, temperature records, and processed image metadata in a scalable NoSQL database.

AWS IoT Core
Securely connects the Raspberry Pi hardware to the cloud, enabling real-time data upload and monitoring.

React Native
Develops a cross-platform mobile application for doctors and users to access real-time monitoring data.

Amazon S3
Utilized for secure, scalable, and durable storage of raw image and video data captured by the system.
Circuit Design & Hardware Structure

Implementation
Raw Images Captured Using Our Device



Enhanced Vein Visualization
To improve the clarity of vein structures captured by the camera, we implemented several image enhancement techniques using OpenCV. One of the most effective methods was CLAHE (Contrast Limited Adaptive Histogram Equalization), which helps enhance local contrast in infrared images without amplifying noise.
Additionally, we performed grayscale conversion, followed by contrast stretching and Gaussian blurring to suppress noise and improve edge definition. These preprocessing steps significantly enhanced the visibility of veins, especially under uneven lighting conditions.

Vein Continuity Scoring Method
To quantitatively assess flap viability, VescuEye implements a Vein Continuity Scoring Method. This method processes the NIR images through a series of steps to determine the health of the blood vessels.
- Color Filtering: Extracts relevant color channels from the NIR image to highlight vein-like structures.
- Thresholding: Converts the image to binary, separating veins (darker pixels) from background (lighter pixels) based on a calculated threshold.
- Morphological Filtering: Applies operations like erosion and dilation to remove noise, fill small gaps in veins, and smooth contours, enhancing vessel continuity.
- Vein Continuity Score Calculation: Based on the processed image, an algorithm calculates a score that represents the continuity and density of the visible vein network, indicating blood flow integrity.

Final Look (CAD Designs)



Final Product



Testing & Validation
Hardware Testing
-
Component Integration Tests:
- Camera & LED Synchronization: Verified proper operation of Pi NOIR camera with 850nm IR LEDs for consistent illumination and image capture.
- Sensor Accuracy: Calibrated MLX90614 temperature sensor against a professional thermometer for accurate readings. Tested VL53L0X distance sensor for precise distance measurements.
- Raspberry Pi Stability: Monitored system performance and resource utilization of Raspberry Pi 3B under continuous data capture and processing loads.
- Power Consumption Analysis: Measured power draw of the complete device to ensure extended battery life and efficient operation.
- Environmental Resilience: Tested device functionality under varying ambient temperatures and lighting conditions to simulate real-world surgical environments.
Software Testing
-
Unit Testing (Jest):
- Image Processing Algorithms: Verified the accuracy of color filtering, thresholding, and morphological filtering functions for vein enhancement.
- Vein Continuity Scoring: Validated the algorithm's ability to calculate a consistent and meaningful score based on processed images.
- Data Handling: Ensured proper formatting and conversion of sensor data before transmission to AWS IoT Core.
-
API Testing (Postman):
- Endpoint Validation: Tested all Node.js API endpoints for correct data retrieval, creation, update, and deletion operations (patients, doctors, historical data).
- Authentication & Authorization: Verified secure access controls for different user roles (admin, doctor, patient).
- Error Handling: Assessed API responses for various error scenarios (e.g., invalid input, missing data, server errors).
-
Integration Testing:
- End-to-End Data Flow: Tracked data from sensor capture on Raspberry Pi, through AWS IoT Core and Node.js backend, to display on web and mobile interfaces.
- Cloud Service Connectivity: Ensured seamless communication between Raspberry Pi, AWS IoT Core, S3, and MongoDB.
- User Acceptance Testing (UAT): Conducted pilot tests with potential users (medical professionals) to gather feedback on usability, functionality, and overall satisfaction.
System Testing & Validation



Vein Continuity Score Testing
- Informal Validation: Conducted using NIR images captured via our prototype to evaluate the behavior of the vein continuity scoring algorithm in real conditions.
-
Visible Vein Areas:
- Back of the Hand / Forearm: Scores ranged from 8.0 to 9.3, indicating strong and consistent vein visibility.
-
Low Visibility Areas:
- Palm Side Near Wrist: Scores between 2.5 to 3.2, reflecting reduced visibility in regions with fewer surface veins.
- Back of Upper Arm: Scores ranged from 1.8 to 2.7, confirming difficulty in capturing continuous vein paths in such areas.
-
Non-Skin Surfaces:
- Paper & Plastic Materials: Scores consistently below 2.0, confirming that the algorithm avoids false detection on irrelevant surfaces.
- Conclusion: Although not clinically validated, these results support the algorithm’s reliability in differentiating between vascular and non-vascular patterns across diverse test scenarios.
Project Budget
Category | Item/Description | Quantity | Unit Cost (LKR) | Total Cost (LKR) |
---|---|---|---|---|
Hardware | Raspberry Pi 3B | 1 | 20,500 | 20,500 |
Raspberry Pi NoIR Camera Sony IMX219 | 1 | 7,800 | 7,800 | |
5 inch LCD Touch Display | 1 | 10,390 | 10,390 | |
850nm IR LED | 52 | 20 | 1,040 | |
MLX90614 Temperature Sensor | 1 | 4,500 | 4,500 | |
VL53L0X Distance Sensor | 1 | 1,090 | 1,090 | |
Power Supply & Cables | 1 | 2,100 | 2,100 | |
Other Electronic Components | 1 | 1,000 | 1,000 | |
Enclosure/CAD 3D Printing | 1 | 12,000 | 12,000 | |
Software/Cloud Services | AWS IoT Core (estimated usage) | N/A | 0 (Free Tier) | 0 |
AWS S3 (estimated storage) | N/A | 0 (Free Tier) | 0 | |
MongoDB Atlas (cloud tier) | N/A | 0 (Free Tier) | 0 | |
Miscellaneous | Prototyping Materials (wires, resistors, etc.) | 1 | 1,000 | 1,000 |
Total Project Cost | 61,420 LKR |
Our Team

Dr. Isuru Nawinne
Project Supervisor
T.L.B Mapagedara
Team Member

R.J Yogesh
Team Member

J.G.C Jananga
Team Member

H.A.M.T Prasadinie
Team Member