A comprehensive system for monitoring patient posture compliance during retinal detachment rehabilitation, consisting of backend API, web interface, mobile application, and data analysis components.
This system is the subject of peer-reviewed research published in:
Posture Compliance Monitoring System for Retinal Detachment Rehabilitation
DOI: 10.48130/vns-0025-0014
Published in Visual Neuroscience, 2025
@article{posture_compliance_2025,
title={Posture Compliance Monitoring System for Retinal Detachment Rehabilitation},
author={SheathedSharp(Zixian Zhu)},
journal={Visual Neuroscience},
year={2025},
doi={10.48130/vns-0025-0014},
url={https://www.maxapress.com/article/doi/10.48130/vns-0025-0014}
}This research project implements a multi-platform posture monitoring system with the following components:
- π§ Backend (Node.js/Express) - REST API server with MySQL database
- π₯οΈ Web Frontend (Vue.js 2) - Healthcare provider interface with 3D visualization
- π± Mini-program (WeChat Mini Program) - Patient mobile application with Bluetooth connectivity
- π Data Analysis (Python) - Machine learning models and compliance analysis
- RESTful API endpoints for doctor and patient operations
- MySQL database for patient records and posture data
- WebSocket support for real-time communication
- CORS configured for cross-platform access
- Vue.js 2 with Vue Router and Vuex
- Three.js integration for 3D eyeball simulation
- Element UI components for interface
- Real-time posture angle visualization
- Bluetooth device integration
- Patient data upload and progress tracking
- User authentication and management
- Core posture degree processing modules
- Machine learning models (exponential, quadratic)
- Patient compliance analysis and visualization
- Position data processing and categorization
- Day/night analysis separation
| Component | Technologies | Purpose |
|---|---|---|
| Backend | Node.js, Express, MySQL, WebSocket | API services & data management |
| Web Frontend | Vue.js 2, Vuex, Vue Router, Three.js | Healthcare provider interface |
| Mobile App | WeChat Mini Program, Bluetooth API | Patient data collection |
| Data Analysis | Python, Pandas, NumPy, Matplotlib | ML models & statistical analysis |
| Database | MySQL | Patient records & posture data |
| Visualization | Three.js, ECharts, D3.js | 3D eyeball simulation & charts |
- Real-time Monitoring Dashboard: Track patient compliance in real-time
- 3D Eyeball Visualization: Interactive 3D model showing patient positioning
- Compliance Analytics: Detailed reports on patient adherence patterns
- Alert System: Notifications for non-compliance events
- Historical Data Analysis: Trend analysis and progress tracking
- Mobile App Interface: Easy-to-use WeChat mini-program
- Bluetooth Device Integration: Seamless sensor connectivity
- Progress Tracking: Visual feedback on compliance performance
- Educational Content: Guidance on proper positioning techniques
- Real-time Feedback: Immediate alerts for position corrections
- Data Export: CSV/Excel export for further analysis
- Machine Learning Models: Pre-trained compliance prediction models
- Statistical Tools: Advanced analytics for research purposes
- Anonymized Datasets: Privacy-compliant data for studies
- Node.js 14+ and npm
- Python 3.7+ with pip
- MySQL 5.7+
- WeChat Developer Tools (for mini-program)
-
Copy the environment configuration:
cp .env.example .env
-
Configure your database credentials and other settings in
.env
cd backend
npm install
npm run test # Development server with nodemoncd web
npm install
npm run serve # Development server
npm run build # Production buildcd mini-program
npm install
# Use WeChat Developer Tools for compilation and testingcd script
python -m pip install -r requirements.txt
# Run analysis scripts as needed
python get_position_Axyz_revision_LR.pyThe system processes patient posture data through several stages:
- Data Collection: Bluetooth sensors collect angle measurements
- Position Analysis: Raw data processed to determine posture positions (FD, SS, RL)
- Compliance Calculation: Machine learning models analyze adherence patterns
- Visualization: Generate compliance reports and 3D visualizations
/backend/- Node.js API server/web/- Vue.js web application/mini-program/- WeChat mini-program/script/- Python data analysis tools/script/model/- Machine learning models/script/utils/- Analysis utilities/script/data/position_data/- Processed position data (CSV files)/docs/images/- Research paper figures and documentation images
This system was developed for clinical research on posture compliance during retinal detachment rehabilitation. The research addresses the critical need for accurate monitoring of patient positioning during post-operative recovery, which is essential for successful retinal reattachment.
- π Compliance Monitoring: Real-time tracking of patient posture with high accuracy
- π€ Machine Learning: Advanced models for predicting compliance patterns
- π± Patient Engagement: Mobile interface improves patient adherence
- π₯ Clinical Integration: Seamless workflow for healthcare providers
The system has demonstrated significant improvements in:
- Patient compliance rates with posturing requirements
- Clinical outcomes in retinal detachment cases
- Healthcare provider monitoring efficiency
- Patient education and engagement
The study employed:
- Multi-platform data collection across web, mobile, and sensor devices
- Machine learning algorithms for compliance pattern analysis
- Clinical validation with anonymized patient data
- Statistical analysis of compliance outcomes
This project is released under academic license for research and educational purposes.
- β Research and educational use permitted
- β Citation required when using in academic work
- β Modification and distribution allowed with attribution
- β Commercial use requires separate license agreement
- π§ Contact authors for commercial licensing inquiries
All patient data files and personal information have been removed or anonymized to protect patient privacy in compliance with:
- HIPAA (Health Insurance Portability and Accountability Act)
- Medical Research Ethics guidelines
- Data Protection Regulations
The system is designed to work with anonymized patient identifiers and maintains the highest standards of data privacy.
For questions about this research or system implementation:
- π Paper: https://www.maxapress.com/article/doi/10.48130/vns-0025-0014
- π Issues: Use GitHub Issues for technical problems
We thank all patients, healthcare providers, and research collaborators who contributed to this study. Special recognition to the clinical teams who validated the system in real-world healthcare settings.






