1. INTRODUCTION
complex, data-driven projects, such as delayed dispute detection, inconsistent interpretations, limited capacity to handle large-scale data, and the absence of proactive mechanisms for risk prediction [4].
The construction industry is one of the most complex sectors due to the involvement of multiple stakeholders, diverse contracts, and constantly changing environments throughout a project’s lifecycle [1]. Traditional methods of contract management and dispute detection often rely on manual reviews conducted by legal and engineering experts [2, 3]. While these methods are valuable, they face significant challenges in
Artificial intelligence has emerged as an effective tool to address these challenges, particularly through machine-learning and deep-learning techniques. By leveraging Natural Language Processing (NLP) [5], these technologies enable the analysis of complex legal texts and the extraction of contractual patterns that may lead to disputes, offering early warnings and allowing legal and engineering teams sufficient time to make informed decisions [6, 7].
This research focuses on developing an integrated intelligent system for analyzing engineering contracts by combining machine-learning algorithms with neural-network architectures. Advanced programming languages and tools such as Python, Scikit-learn, spaCy, and TfidfVectorizer were utilized to build and train the system [8]. The framework was practically tested on a real-world Syrian construction project, demonstrating its efficiency in enhancing transparency, simplifying dispute management, and improving the quality of contractual decision-making, thereby supporting the digital transformation of the construction sector [9].
To clarify the theoretical foundation for this project, the following definitions describe the concepts and tools related to the intelligent system:
- Engineering Contract: A formal document created between an owner and a contractor that outlines all technical, financial, and scheduling requirements and obligations of the owner and the contractor. This document serves as the primary document for resolving disputes during the duration of a project.
- Artificial Intelligence (AI): An area of computer science focused on creating a computer system that can learn, make decisions, and perform analyses of data similar to a human being’s cognitive ability [10].
- The Role of AI: The advantages of AI include its ability to rapidly analyze vast amounts of information, make quick decisions, and forecast issues prior to their occurrence, making it an invaluable tool for modern project management.
- Programming in Python: Python was chosen to develop this system because of its versatility and the numerous advanced AI libraries available for its use [11].
- Machine Learning (ML): ML is the method used to create models that learn from previous data to help forecast or classify future incidents [12].
- Deep Learning: DL is a subdivision of ML developed using deep neural networks to analyze intricate datasets [13].
- Natural Language Processing (NLP): NLP allows computers to read, write, and comprehend human-created textual content [14].
- Scikit-learn: A basic ML framework containing classifiers such as Logistic Regression, SVM, and MLP. It also supports dataset splitting and model evaluation using metrics such as accuracy, precision, and recall. These core functionalities form the basis for the modelling components used in this study [15].
- TF–IDF Vectorizer: This tool converts textual information into numerical vectors using term frequency–inverse document frequency (TF–IDF) to identify and prioritize the most informative terms in legal and contractual documents related to civil disputes [16]. It is a key preprocessing technique for preparing training and testing datasets.
- spaCy: This advanced NLP utility provides a convenient, fast, and efficient resource to tokenize and clean legal text
and to extract important entities, such as parties, durations, and amounts, before establishing an ML model [17].
2. LITERATURE REVIEW
Engineering contracts set the legal foundation for project execution [18]. They define the responsibilities and rights of the parties involved, outline implementation procedures, establish quality standards, and specify the steps to follow in case of a dispute [19]. However, the complexity of these contracts and the presence of multiple stakeholders often lead to ongoing disputes [20]. These can arise from delayed payments, changes in work scope, or poor coordination. Minor claims can escalate over time without clear resolution methods, negatively affecting execution quality, schedules, and costs [21, 22].
In the past, managing disputes in engineering contracts depended on manual reviews by legal or engineering experts [23]. Unfortunately, these traditional methods often struggle with large data volumes and do not provide proactive signs that could identify disputes before they worsen [24]. Artificial intelligence has therefore emerged as a valuable tool because it can analyze complex texts and predict risks quickly and accurately [25]. AI techniques such as Machine Learning, Deep Learning, Natural Language Processing, and expert systems help extract patterns from large datasets, classify contractual clauses, and identify gaps that might lead to future disputes [26].
Several international studies have explored this topic. Putera et al. [27] showed that AI can help improve future justice by automating dispute analysis. Alqaisi et al. [9] created a model to predict the results of contract-change disputes using machine-learning algorithms. Francis et al. [28] reviewed AI applications for proactive dispute management. Similarly, Un et al. [29] focused on using machine-learning techniques to predict contract-dispute outcomes, while Raslan and Nassar [30] proposed a framework that combines AI with sustainability for dispute resolution. Harode et al. [31] introduced a machine-learning model for predicting design-clash resolution options.
These studies show that using AI in engineering contracts has moved beyond being an experimental trend [32]. It has become a practical way to improve dispute-management efficiency while lowering costs and time. However, there is still a gap in real-world applications within complex local settings, such as the Syrian contractual environment, where these technologies are seldom used systematically. This research aims to fill this gap by proposing an integrated AI-based system for dispute analysis and prediction tailored to the specific characteristics of Syrian engineering contracts [33].
3. METHODOLOGY
The study was concerned with creating an intelligent system that would analyze engineering contracts, classify high-risk contractual clauses [34], and give proactive recommendations to resolve disputes. The intelligent system was built with Python 3.10 and the Visual Studio Code environment [35]; its files are organized within a folder hierarchy that includes contract data, trained models, results, and visualizations.
The work started with data preparation using a file of
engineering-contract texts labelled with the dispute type [36]. During preprocessing, the texts were organized and cleaned by removing symbols and known stop words in Arabic and English, establishing a standard encoding, and transforming the texts into numerical vectors through TF–IDF. The data were then split into 80% for training and 20% for testing using stratified splitting, ensuring that all categories were represented in both sets.
In Stage One, Logistic Regression was used as the first model to check the processing pipeline. Its performance was then compared with additional algorithms such as SVM, MLP, and a Voting ensemble classifier. Specialized sub-models were also created for each dispute type and trained using texts identified with the target dispute type, providing more accurate predictions. The models were evaluated on the test set using accuracy, precision, recall, and F1-score; confusion matrices were used to assess errors and model performance.
The results suggested that MLP had the highest accuracy, recall, and F1-score, making it the most appropriate model for relatively short legal-text data. It was therefore selected as the final model, while Logistic Regression and SVM were retained in the final system for comparison and analysis. Both the trained model and the TF–IDF vectorizer were saved in .pkl files to avoid retraining and enable reproducibility. This reduces processing time in the production environment and facilitates rapid prediction of disputes and litigation [37].
4. DATA ANALYSIS
The following confusion matrices were generated during the training and testing phases of the models. They were used to compare the results and consequently justify the adoption of the Multi-Layer Perceptron model.
The model-performance results in Table 1 lead to the following observations:
a. The MLP provided the best overall performance, producing accurate results 88% of the time and the highest precision, recall, and F1-score among all models.
b. The Soft Voting model came second overall, maintaining a good accuracy of 72% and reasonably balanced performance across metrics, but it was still 16 percentage points less accurate than the MLP.
c. Logistic Regression, SVM, and Hard Voting produced almost identical results, indicating that Hard Voting did not improve the performance of these models.
d. The large performance gap between MLP and the other models indicates the MLP’s versatility in capturing complex patterns in legal texts, even with only small amounts of training data.
4.1 Integrating the Interface with the Custom GPT Model
A custom language model named BIM Contract Dispute Analys v2 by Eng. Rania Bashir was created to analyze contractual clauses in construction contracts, identify the potential dispute type, and suggest the best resolution process.
4.1.1 Configuration Specifications
The primary functions are to:
1. Analyze written contractual clauses in Arabic or English.
2. Identify the potential type of dispute, such as delay, payments, or scope of work.
3. Suggest the optimal resolution method, such as negotiation, mediation, arbitration, or litigation.
4. Reference the relevant article or clause from documents uploaded to the knowledge base, if available.
The model uses a formal and academic response style, even if a question is asked in colloquial language. Answers are strictly limited to contracts and project management; questions outside this scope receive an appropriate refusal.
The knowledge base contains contract files and specialized legal references, including:
I. FIDIC Conditions of Contract (General Conditions and
Red Book 2017),
II. NEC3 Engineering and Construction Contract and
Guidance Notes,
III. Integrated Project Delivery Guide,
IV. BIM Execution Plan,
V. BS EN ISO 19650-1:2018, and
VI. specialized references on dispute management, claims, and construction-contract law.
4.1.2 Workflow with the Language Model
The workflow consists of four stages:
1. Inputting the Contract Clause: The user inputs a paragraph or clause from a contract in PDF, Word, or plain-text form.
2. Text Analysis: The model finds legally significant words and phrases and classifies the dispute using its knowledge of FIDIC, NEC3, and IPD rules.
3. Recommending a Resolution: The model identifies the most appropriate form of resolution—negotiation, mediation, arbitration, adjudication, or court—and validates the recommendation with the appropriate clause or legal source from the uploaded files.
4. Producing the Output: The system produces formatted output in PDF or DOCX form that includes the analysis, classification, and recommended resolution, with diagrams or tables where appropriate.
4.2 Testing the Artificial Intelligence Model: Case Study
The case-study contract concerns the rehabilitation of the Ballet School in Homs. It represents a formal agreement between the Ministry of Culture of the Syrian Arab Republic (the employer) and the contractor for rehabilitation and maintenance works at the Ballet School in the city of Homs.
The contract defines the scope of works, financial framework, execution period, and legal references, based on the Public Entities Contracts Law No. 51 of 2004 and the General Conditions issued by Decree No. 450 of 2004. Its purpose is to
carry out all construction, renovation, and maintenance works specified in the approved technical specifications, drawings, and bills of quantities. The total contract value amounts to an unspecified sum in Syrian pounds, and the specified execution period is 100 calendar days starting from the day after either notification of the commencement order or handover of the work site, whichever occurs first.
The complete model-testing outputs are collected in Table 2.
5. DISCUSSION
The findings of this study showed that developing an artificialintelligence system to manage disputes in Syrian engineering contracts represents a significant advancement toward improving contractual practices and enhancing decision-making efficiency. The results demonstrated that an intelligent system capable of automatically analyzing contract clauses can substantially reduce the likelihood of disputes emerging or re-occurring in the future. This improvement stems from the system’s ability to process legal texts rapidly and consistently, overcoming the limitations of traditional manual review methods, which are often affected by interpretation differences, time pressure, and incomplete information.
The Multi-Layer Perceptron neural network emerged as the most efficient model in this study, showing a strong capability to understand contractual language and accurately identify dispute types. It achieved the highest performance scores (accuracy = 0.88 and weighted F1-score = 0.874), outperforming Soft Voting, SVM, and Logistic Regression classifiers. This superiority highlights the strength of non-linear models in capturing the linguistic and semantic complexity of legal text, even when trained on a limited dataset—one of the primary challenges in legal-AI applications. It also confirms that models such as MLP are better suited for handling nuanced variations in wording and contractual structure than more conventional linear models.
The findings further indicated that the model performed strongly in scope-related and payment-related disputes while demonstrating moderate performance in delay-related disputes due to insufficient representation in the dataset. The low or absent performance for under-represented categories such as “Contractor Delay” and “Force Majeure” was directly linked to the lack of available samples in the evaluation set rather than a flaw in the algorithm itself. This emphasizes the importance of expanding and balancing the dataset to unlock the full predictive potential of the system.
From a practical perspective, the study demonstrated the feasibility of deploying the intelligent system in real engineering contexts. The system was applied to the rehabilitation project of the Ballet School in Homs, where it proved capable of automatically analyzing contractual language and generating structured reports that included dispute descriptions and recommended pathways for resolution. It suggested routes such as negotiation, mediation, or arbitration, providing real value to decision-makers by enabling faster, clearer, and more
informed dispute-resolution processes.
Overall, these findings confirm that integrating artificial intelligence into engineering-contract management is not merely a technological enhancement but a methodological shift toward greater transparency, predictive analysis, and proactive risk mitigation within the Syrian construction sector.
6. CONCLUSION
6.1 Summary of Key Findings
The system starts by accepting inputs in various formats (PDF, DOCX, and CSV) and converting them to processable text. The text is then subjected to cleansing and numerical transformation using the TF–IDF algorithm to extract salient features.
Next, the text is processed by the main classifier (MLP), which assigns a type of dispute to the text, such as delay, payments, or scope of work. The output is then passed to a sub-model trained to give recommendations for the same dispute type. This provides an automated recommendation for resolution—negotiation, mediation, arbitration, or litigation— based on performance during training and evaluation.
This sequence reduces the time needed for consultation through manual contract analysis and improves the chance of detecting high-risk clauses. It also helps legal and engineering project-management teams make fast and informed decisions.
By integrating the system with a custom GPT model and a knowledge library containing FIDIC, NEC3, and IPD material, it becomes possible to further interpret legal clauses and generate consolidated, structured reports in which automated analysis and direct references to standard documents are combined.
6.2 Concluding Remarks
1. Use the MLP as the primary model in the initial operational phase while keeping the Soft Voting model as a secondary option where some disputes have similar text patterns.
2. Increase the training database by collecting new and varied data covering all categories, particularly under-represented categories such as “Contractor Delay” and “Force Majeure,” to improve dispute classification.
3. Regularly evaluate model performance using confusion matrices and per-category metrics to monitor performance and correct deviations as necessary.
4. Enhance the calibration of probabilistic models to improve the performance of ensemble-voting techniques in subsequent analytical phases.
5. Create pilot projects in selected government institutions to evaluate the effect of AI techniques on dispute resolution and on reducing the cost and time required to find solutions.
6. Invest in educational training for engineering and legal staff working with AI tools to maximize the sustainability of digital transformation and performance gains.