Skip to content

About

ConflictSense automatically detects and explains conflicts in Software Requirement Specification (SRS) documents using modern NLP and machine learning techniques.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

ConflictSense: Machine Learning-Based Conflict Detection for Software Requirements

An intelligent desktop application that automatically detects conflicting software requirements using SBERT, Named Entity Recognition (NER), and Natural Language Inference (NLI).

Python Machine Learning License Status


πŸ“– Overview

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

✨ Features

  • 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)

πŸ— System Architecture

SRS Document
      β”‚
      β–Ό
Preprocessing
      β”‚
      β–Ό
SBERT Semantic Similarity
      β”‚
      β–Ό
NER Entity Analysis
      β”‚
      β–Ό
NLI Contradiction Detection
      β”‚
      β–Ό
Conflict Classification
      β”‚
      β–Ό
Explanation Generator
      β”‚
      β–Ό
ConflictSense Desktop GUI

🧠 Machine Learning Pipeline

Phase 1 – Semantic Candidate Filtering

  • Sentence-BERT (all-MiniLM-L6-v2)
  • 384-dimensional sentence embeddings
  • Cosine similarity filtering
  • Removes approximately 87% of unrelated requirement pairs

Phase 2 – Explicit Conflict Detection

Uses Named Entity Recognition (spaCy Transformer) to extract:

  • Actor
  • Action
  • Object
  • Metric
  • Operator

Entity overlap is calculated using Jaccard Similarity.


Phase 3 – Implicit Conflict Detection

Uses Natural Language Inference (DeBERTa Cross Encoder)

Output labels:

  • Contradiction
  • Neutral
  • Entailment

Logical contradictions are identified even when requirements share little vocabulary.


πŸ“‚ Dataset

The project combines multiple publicly available requirement engineering datasets.

Dataset Domain
PROMISE_exp General Software
WorldVista EHR Healthcare
OpenCOSS Safety Critical Systems

Final Dataset

  • Total requirement pairs: 1,847
  • Five conflict categories
  • Duplicate pairs
  • Neutral pairs
  • 22.7% carefully validated synthetic augmentation

πŸ” Conflict Types

The system detects five categories of requirement conflicts.

  • Functional Conflict
  • Security Conflict
  • Metric Conflict
  • Operator Conflict
  • Resource Conflict

πŸ’» Technologies Used

Programming Language

  • Python 3.11

Machine Learning

  • Sentence Transformers
  • HuggingFace Transformers
  • Scikit-learn

NLP

  • SBERT
  • spaCy
  • DeBERTa NLI

Desktop Application

  • Tkinter
  • ttkbootstrap

Database

  • SQLite

Data Processing

  • Pandas
  • NumPy

πŸ“ Project Structure

ConflictSense/
β”‚
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ datasets/
β”‚   β”œβ”€β”€ processed/
β”‚
β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ sbert/
β”‚   β”œβ”€β”€ classifier/
β”‚
β”œβ”€β”€ gui/
β”‚
β”œβ”€β”€ preprocessing/
β”‚
β”œβ”€β”€ detection/
β”‚
β”œβ”€β”€ explainability/
β”‚
β”œβ”€β”€ database/
β”‚
β”œβ”€β”€ outputs/
β”‚
β”œβ”€β”€ main.py
β”œβ”€β”€ requirements.txt
└── README.md

πŸš€ Installation

Clone the repository

git clone https://github.com/abdurrahmancce/ConflictSense.git

Move into the project directory

cd ConflictSense

Install dependencies

pip install -r requirements.txt

Run the application

python main.py

πŸ“„ Supported Input Files

  • CSV
  • TXT
  • DOCX

πŸ“Š Results

Metric Score
Macro F1 Score 0.86
Conflict Precision 0.86
Conflict Recall 0.81
Duplicate F1 0.83
Neutral F1 0.92

Usability Study

  • 20 participants
  • 41% reduction in manual review time
  • SUS Score: 76.4
  • Fully offline execution

πŸ“· Screenshots

Add screenshots here.

docs/images/home.png

docs/images/results.png

docs/images/explanation.png

🎯 Future Improvements

  • Domain-specific model fine-tuning
  • Multilingual support
  • Active learning
  • Web-based deployment
  • Conflict resolution suggestions
  • Conflict graph visualization
  • Professional analyst evaluation

πŸ‘¨β€πŸ’» Team Members

Abdur Rahman

  • Machine Learning Pipeline
  • Desktop Application
  • Documentation

Ramiatul Amin Chowdhury

  • Dataset Preparation
  • Evaluation
  • Testing

Minhajun Noor Miraj

  • Data Collection
  • GUI Support
  • Presentation

πŸŽ“ Academic Information

Course

CCE-3508 β€” System Analysis, Design and Development Sessional

Department

Computer and Communication Engineering (CCE)

International Islamic University Chittagong (IIUC)

Supervisor

Md. Ziaul Hoque


πŸ“š References

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.


πŸ“„ License

This project is developed for academic and research purposes.


⭐ Acknowledgements

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.


πŸ“¬ Contact

Abdur Rahman

Email: e241018@ugrad.iiuc.ac.bd

GitHub: https://github.com/abdurrahmancce


About

ConflictSense automatically detects and explains conflicts in Software Requirement Specification (SRS) documents using modern NLP and machine learning techniques.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages