OCD Detector is a cutting-edge artificial intelligence system designed to identify and analyze Obsessive-Compulsive Disorder (OCD) patterns across multiple communication channels. By leveraging advanced machine learning technologies, our system provides valuable insights for mental health professionals and researchers.
The National Institute of Mental Health (NIMH) research indicates that individuals with OCD exhibit distinct patterns in their communication and behavioral manifestations[²], including:
Our system aligns with the NIH’s dimensional approach to OCD assessment[³], analyzing these patterns across digital communications to support clinical evaluation and research.
Our OCD detection system employs sophisticated algorithms and statistical methods to analyze behavioral patterns. See Research for more details.
The core methodology includes:
We utilize a modified attention mechanism that weighs behavioral markers ($b_i$) against temporal frequency ($f_t$):
\[A(b, f) = \sum_{i=1}^{n} \frac{b_i \cdot f_t}{\sqrt{d_k}}\]where $d_k$ represents the dimensionality of the behavioral space.
The severity score ($S$) is calculated using a weighted combination of detected patterns:
\[S = \alpha \sum_{i=1}^{n} w_i p_i + \beta \log(\frac{f_{obs}}{f_{exp}})\]where:
Our confidence metric ($C$) incorporates both model uncertainty and data quality:
\[C = \left(1 - \frac{\sigma_m^2}{\sigma_{max}^2}\right) \cdot \left(\frac{n_{valid}}{n_{total}}\right)\]where $\sigma_m^2$ represents model variance and $n_{valid}$ represents the number of valid data points.
This project is based on published scientific research papers, please refer to the Research for more details.
# Clone the repository
git clone https://github.com/skytells-research/ocd-detector.git
# Install dependencies
cd ocd-detector
pip install -r requirements.txt
# Start the application
python run.py
For detailed installation instructions, see Installation Guide.
Analysis Type | Accuracy | Precision | Recall |
---|---|---|---|
Text | 89% | 87% | 91% |
Image | 76% | 79% | 74% |
Voice | 82% | 84% | 81% |
We welcome contributions from the community! Please read our Contributing Guidelines before submitting pull requests.
# Create virtual environment
python -m venv venv
source venv/bin/activate
# Install development dependencies
pip install -r requirements-dev.txt
# Run tests
pytest
To start the frontend application on port 8502:
streamlit run frontend/app.py --server.port 8502
Please refer to the Running the Backend for detailed instructions.
If you use this project in your research, please cite:
@software{ocd_detector2024,
author = {Skytells Research},
title = {OCD Detector: AI-Powered OCD Pattern Analysis},
year = {2024},
url = {https://github.com/skytells-research/ocd-detector}
}
If you find this project useful, consider sponsoring us on GitHub to support ongoing development and maintenance. Sponsor Us
[¹] World Health Organization. (2022). Obsessive-compulsive disorder fact sheet. WHO Mental Health Atlas.
https://www.who.int/news-room/fact-sheets/detail/obsessive-compulsive-disorder[²] National Institute of Mental Health. (2023). Obsessive-Compulsive Disorder: Signs, Symptoms and Treatment.
https://www.nimh.nih.gov/health/topics/obsessive-compulsive-disorder-ocd[³] Mataix-Cols, D., et al. (2016). Dimensional Assessment of Obsessive-Compulsive Disorder: National Institute of Mental Health Proceedings. NIH Public Access.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4332094/
This project is licensed under the MIT License - see the LICENSE file for details.
For more info, Please contact Skytells Research on our website