An intelligent desktop application that automatically detects conflicting software requirements using SBERT, Named Entity Recognition (NER), and Natural Language Inference (NLI).
ConflictSense is a machine learning-powered desktop application designed to assist System Analysts during Software Requirements Engineering. The system automatically identifies conflicting requirement pairs within Software Requirement Specification (SRS) documents and provides human-readable explanations for each detected conflict.
Unlike traditional approaches that only classify requirement pairs as Conflict or No Conflict, ConflictSense:
- Detects both explicit and implicit conflicts
- Classifies different conflict types
- Generates explainable results
- Operates completely offline without external AI APIs
- Allows analyst feedback for continuous improvement
- Automatic SRS conflict detection
- Three-stage machine learning pipeline
- Detection of explicit and implicit conflicts
- Conflict type classification
- Natural language explanations
- Desktop GUI built with Python
- CSV, TXT and DOCX support
- SQLite feedback storage
- Offline execution (No paid API required)
SRS Document
β
βΌ
Preprocessing
β
βΌ
SBERT Semantic Similarity
β
βΌ
NER Entity Analysis
β
βΌ
NLI Contradiction Detection
β
βΌ
Conflict Classification
β
βΌ
Explanation Generator
β
βΌ
ConflictSense Desktop GUI
- Sentence-BERT (all-MiniLM-L6-v2)
- 384-dimensional sentence embeddings
- Cosine similarity filtering
- Removes approximately 87% of unrelated requirement pairs
Uses Named Entity Recognition (spaCy Transformer) to extract:
- Actor
- Action
- Object
- Metric
- Operator
Entity overlap is calculated using Jaccard Similarity.
Uses Natural Language Inference (DeBERTa Cross Encoder)
Output labels:
- Contradiction
- Neutral
- Entailment
Logical contradictions are identified even when requirements share little vocabulary.
The project combines multiple publicly available requirement engineering datasets.
| Dataset | Domain |
|---|---|
| PROMISE_exp | General Software |
| WorldVista EHR | Healthcare |
| OpenCOSS | Safety Critical Systems |
- Total requirement pairs: 1,847
- Five conflict categories
- Duplicate pairs
- Neutral pairs
- 22.7% carefully validated synthetic augmentation
The system detects five categories of requirement conflicts.
- Functional Conflict
- Security Conflict
- Metric Conflict
- Operator Conflict
- Resource Conflict
- Python 3.11
- Sentence Transformers
- HuggingFace Transformers
- Scikit-learn
- SBERT
- spaCy
- DeBERTa NLI
- Tkinter
- ttkbootstrap
- SQLite
- Pandas
- NumPy
ConflictSense/
β
βββ data/
β βββ datasets/
β βββ processed/
β
βββ models/
β βββ sbert/
β βββ classifier/
β
βββ gui/
β
βββ preprocessing/
β
βββ detection/
β
βββ explainability/
β
βββ database/
β
βββ outputs/
β
βββ main.py
βββ requirements.txt
βββ README.md
Clone the repository
git clone https://github.com/abdurrahmancce/ConflictSense.gitMove into the project directory
cd ConflictSenseInstall dependencies
pip install -r requirements.txtRun the application
python main.py- CSV
- TXT
- DOCX
| Metric | Score |
|---|---|
| Macro F1 Score | 0.86 |
| Conflict Precision | 0.86 |
| Conflict Recall | 0.81 |
| Duplicate F1 | 0.83 |
| Neutral F1 | 0.92 |
- 20 participants
- 41% reduction in manual review time
- SUS Score: 76.4
- Fully offline execution
Add screenshots here.
docs/images/home.png
docs/images/results.png
docs/images/explanation.png
- Domain-specific model fine-tuning
- Multilingual support
- Active learning
- Web-based deployment
- Conflict resolution suggestions
- Conflict graph visualization
- Professional analyst evaluation
Abdur Rahman
- Machine Learning Pipeline
- Desktop Application
- Documentation
Ramiatul Amin Chowdhury
- Dataset Preparation
- Evaluation
- Testing
Minhajun Noor Miraj
- Data Collection
- GUI Support
- Presentation
Course
CCE-3508 β System Analysis, Design and Development Sessional
Department
Computer and Communication Engineering (CCE)
International Islamic University Chittagong (IIUC)
Supervisor
Md. Ziaul Hoque
This project is based on recent research in:
- Requirements Engineering
- Software Conflict Detection
- Sentence-BERT
- Natural Language Inference
- Explainable Artificial Intelligence
See the Final Project Report for the complete bibliography.
This project is developed for academic and research purposes.
We would like to thank our supervisor, the Department of Computer and Communication Engineering (CCE), and International Islamic University Chittagong (IIUC) for their guidance and support throughout this project.
Abdur Rahman
Email: e241018@ugrad.iiuc.ac.bd
GitHub: https://github.com/abdurrahmancce