Machine-Learning-Based-Conflict-Detection-

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:


✨ Features


🏗 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


Phase 2 – Explicit Conflict Detection

Uses Named Entity Recognition (spaCy Transformer) to extract:

Entity overlap is calculated using Jaccard Similarity.


Phase 3 – Implicit Conflict Detection

Uses Natural Language Inference (DeBERTa Cross Encoder)

Output labels:

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


🔍 Conflict Types

The system detects five categories of requirement conflicts.


💻 Technologies Used

Programming Language

Machine Learning

NLP

Desktop Application

Database

Data Processing


📁 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


📊 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


📷 Screenshots

Add screenshots here.

docs/images/home.png

docs/images/results.png

docs/images/explanation.png

🎯 Future Improvements


👨‍💻 Team Members

Abdur Rahman


Ramiatul Amin Chowdhury


Minhajun Noor Miraj


🎓 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:

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