cancelnet
An AI-powered framework for intelligent phrase-based interrupt control in risk-sensitive applications.
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.8%) to scientific vocabulary
Repository
An AI-powered framework for intelligent phrase-based interrupt control in risk-sensitive applications.
Basic Info
- Host: GitHub
- Owner: Srijon25
- License: mit
- Language: Python
- Default Branch: main
- Size: 0 Bytes
Statistics
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
CancelNet
CancelNet is a modular, AI-powered framework for intelligent, phrase-based interrupt control in risk-sensitive environments. It enables applications to semantically recognize spoken or textual cancel phrases (like “stop now”, “abort mission”) and respond accordingly—based on customizable risk profiles and interrupt thresholds.
Designed with safety, flexibility, and developer usability in mind, CancelNet is ideal for robotics, voice-controlled systems, autonomous processes, and critical decision workflows.
🚀 Features
🔍 Semantic Phrase Detection
Uses Sentence-BERT to match user input to interrupt phrases even when phrased differently (e.g., “halt everything” ≈ “stop now”).⚠️ Risk-Sensitive Interrupt Control
Choose behavior for high-, medium-, or low-risk applications.🧪 Simulation Mode
Test phrase recognition and system reactions before deployment.📊 Logging & Confidence Scoring
Track decisions, confidence levels, and triggered interrupts.✅ Modular & Lightweight
Easy to integrate into existing systems or extend for new use cases.
📦 Installation
Clone the repository and install dependencies:
```bash git clone https://github.com/Srijon25/CancelNet.git cd CancelNet pip install -r requirements.txt
Requires Python 3.8+
🧠 Quick Start
Run a demo simulation to test phrase-based interrupts:
python examples/demo_interrupt.py
Output includes matched phrases, confidence scores, and interrupt results based on the selected risk profile.
🧪 Run Tests
Unit tests cover the phrase detector and controller logic:
pytest
🧰 Project Structure
CancelNet/
├── cancelnet/
│ ├── detector.py # Phrase recognition (Sentence-BERT)
│ ├── controller.py # Interrupt decision engine
│ ├── riskprofiles.py # Risk tier configuration
│ ├── simulator.py # Testing and simulation engine
│ ├── logger.py # Event logging
│ └── utils.py # Helper functions
├── tests/
│ ├── testdetector.py
│ ├── testcontroller.py
├── examples/
│ └── demointerrupt.py # Sample run
├── README.md
├── paper.md # JOSS publication paper
├── LICENSE
├── CITATION.cff
├── requirements.txt
└── pyproject.toml
🧾 Citation
If you use CancelNet in your work, please cite:
@software{shill2025cancelnet, author = {Srijon Kumar Shill}, title = {CancelNet: A Framework for Intelligent Phrase-Based Interrupt Control in Risk-Sensitive Applications}, year = {2025}, publisher = {GitHub}, url = {https://github.com/Srijon25/CancelNet}, version = {1.0.0} }
Or use the included CITATION.cff file.
📚 Use Cases
🩺 Voice-controlled surgical or diagnostic machines
🛸 Autonomous drone cancelation triggers
🏭 Industrial automation with emergency overrides
🧠 AI chatbots or assistants with safety clauses
🧑💻 Author
Srijon Kumar Shill Independent Researcher 📧 theunpredictable157@gmail.com
📄 License
This project is licensed under the MIT License. See LICENSE for details.
Owner
- Login: Srijon25
- Kind: user
- Repositories: 1
- Profile: https://github.com/Srijon25
Citation (CITATION.cff)
cff-version: 1.2.0
authors:
- family-names: Shill
given-names: Srijon Kumar
affiliation: Independent Researcher
title: CancelNet: A Framework for Intelligent Phrase-Based Interrupt Control in Risk-Sensitive Applications
version: 1.0.0
date-released: 2025-06-07
url: https://github.com/YOUR_USERNAME/CancelNet
license: MIT
GitHub Events
Total
- Release event: 2
- Watch event: 1
- Push event: 12
- Create event: 2
Last Year
- Release event: 2
- Watch event: 1
- Push event: 12
- Create event: 2
Dependencies
- pytest *
- scikit-learn *
- sentence-transformers *
- spacy *