<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Computational Social Science |</title><link>https://namigabbasov.com/tags/computational-social-science/</link><atom:link href="https://namigabbasov.com/tags/computational-social-science/index.xml" rel="self" type="application/rss+xml"/><description>Computational Social Science</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sun, 01 Jun 2025 00:00:00 +0000</lastBuildDate><image><url>https://namigabbasov.com/media/logo_hu_e10f75d1e52e416b.png</url><title>Computational Social Science</title><link>https://namigabbasov.com/tags/computational-social-science/</link></image><item><title>Predicting Peace: Machine Learning and NLP for Peace Agreement Success</title><link>https://namigabbasov.com/research/peace-agreement-predictor/</link><pubDate>Sun, 01 Jun 2025 00:00:00 +0000</pubDate><guid>https://namigabbasov.com/research/peace-agreement-predictor/</guid><description>
&lt;blockquote class="border-l-4 border-neutral-300 dark:border-neutral-600 pl-4 italic text-neutral-600 dark:text-neutral-400 my-6"&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This is a very early prototype — work in progress. All local work will be pushed to GitHub once it is complete.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
— data, scripts, trained models, and Streamlit app&lt;/li&gt;
&lt;li&gt;
— explore predictions and SHAP explanations for any agreement configuration&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="project-overview"&gt;Project Overview&lt;/h2&gt;
&lt;p&gt;This project develops a machine learning and natural language processing framework to forecast whether a peace agreement will successfully end active armed conflict. Grounded in computational social science, it integrates structured metadata, contextual conflict characteristics, and the full text of peace agreements to build interpretable predictive models, bridging empirical conflict research with state-of-the-art AI methods.&lt;/p&gt;
&lt;p&gt;The project uses the
(University of Edinburgh), covering over 2,000 peace agreement texts with extensive metadata on conflict type, negotiation stage, institutional provisions, and implementation outcomes.&lt;/p&gt;
&lt;p&gt;Beyond academic contribution, the project is deployed as a live, interactive web application that enables researchers and practitioners to input agreement characteristics and receive real-time success predictions with AI-generated explanations.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="research-questions"&gt;Research Questions&lt;/h2&gt;
&lt;blockquote class="border-l-4 border-neutral-300 dark:border-neutral-600 pl-4 italic text-neutral-600 dark:text-neutral-400 my-6"&gt;
&lt;p&gt;Can AI systems reliably forecast whether a peace agreement will end armed conflict — and explain why?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote class="border-l-4 border-neutral-300 dark:border-neutral-600 pl-4 italic text-neutral-600 dark:text-neutral-400 my-6"&gt;
&lt;p&gt;Which features of a peace agreement — structural, institutional, or textual — are most predictive of durability?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h2 id="methods"&gt;Methods&lt;/h2&gt;
&lt;h3 id="feature-engineering"&gt;Feature Engineering&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Metadata encoded into binary and categorical indicators (conflict type, negotiation stage, security arrangements, human rights provisions, inclusion of social groups)&lt;/li&gt;
&lt;li&gt;Peace agreement texts preprocessed via tokenization, lowercasing, stopword removal, and TF-IDF representation&lt;/li&gt;
&lt;li&gt;Hybrid feature matrix combining structured metadata with textual information&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="classic-machine-learning-models"&gt;Classic Machine Learning Models&lt;/h3&gt;
&lt;p&gt;Trained across metadata and text combinations:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Logistic Regression&lt;/td&gt;
&lt;td&gt;Baseline linear classifier&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Support Vector Machines&lt;/td&gt;
&lt;td&gt;Margin-based classification&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Random Forest&lt;/td&gt;
&lt;td&gt;Best stable performance on metadata&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gradient Boosting / XGBoost&lt;/td&gt;
&lt;td&gt;Ensemble boosting methods&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AdaBoost&lt;/td&gt;
&lt;td&gt;Adaptive ensemble&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Key finding: text-only classic ML performed poorly; adding metadata and contextual variables substantially improved performance.&lt;/p&gt;
&lt;h3 id="transformer-based-models"&gt;Transformer-Based Models&lt;/h3&gt;
&lt;p&gt;Fine-tuned using Hugging Face:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Accuracy&lt;/th&gt;
&lt;th&gt;Precision&lt;/th&gt;
&lt;th&gt;Recall&lt;/th&gt;
&lt;th&gt;F1&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;DistilBERT-base-uncased&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DeBERTa-v3-Large&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.888&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.824&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.893&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.824&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;DeBERTa-v3-Large substantially outperforms classic ML for text classification, particularly on the class imbalance present in peace agreement outcomes.&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="DeBERTa-v3-Large achieves 0.888 accuracy on 1,508 PA-X agreements. Most predictive signals: security guarantees, human rights provisions, negotiation stage, conflict type, and international missions."
srcset="https://namigabbasov.com/research/peace-agreement-predictor/main_finding_hu_991940a8b9200d07.webp 320w, https://namigabbasov.com/research/peace-agreement-predictor/main_finding_hu_28fdf23d677bbae7.webp 480w, https://namigabbasov.com/research/peace-agreement-predictor/main_finding_hu_82e02ec63319f253.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://namigabbasov.com/research/peace-agreement-predictor/main_finding_hu_991940a8b9200d07.webp"
width="760"
height="429"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;em&gt;Best-performing model performance summary and top SHAP-identified predictive signals across 1,508 PA-X peace agreements.&lt;/em&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="explainable-ai-shap"&gt;Explainable AI (SHAP)&lt;/h2&gt;
&lt;p&gt;The deployed Random Forest integrates SHAP-based interpretability, enabling users to understand &lt;em&gt;why&lt;/em&gt; a specific agreement is predicted to succeed or fail.&lt;/p&gt;
&lt;p&gt;Most influential features identified by SHAP:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Negotiation stage&lt;/li&gt;
&lt;li&gt;Conflict type&lt;/li&gt;
&lt;li&gt;International missions and enforcement mechanisms&lt;/li&gt;
&lt;li&gt;Human rights provisions&lt;/li&gt;
&lt;li&gt;Security guarantees&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This explainability layer allows practitioners and researchers to interpret model predictions in a theory-informed way — connecting computational output to established conflict studies literature.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="interactive-application"&gt;Interactive Application&lt;/h2&gt;
&lt;p&gt;The
is a deployed Streamlit app that enables interactive exploration of model predictions.&lt;/p&gt;
&lt;p&gt;Users can:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Input metadata features describing any peace agreement&lt;/li&gt;
&lt;li&gt;Receive a predicted outcome (SUCCESS / FAILURE) with probability estimates&lt;/li&gt;
&lt;li&gt;Explore SHAP feature contributions explaining the specific prediction&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="research-contribution"&gt;Research Contribution&lt;/h2&gt;
&lt;p&gt;This project contributes to computational social science and AI-for-policy research by demonstrating that transformer-based NLP, combined with structured conflict metadata, can produce accurate and interpretable forecasts of peace agreement outcomes. Unlike prior work relying on static quantitative models, this framework integrates textual content, provides local explainability, and is deployed as a live tool accessible to non-technical users.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="work-in-progress"&gt;Work in Progress&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Survival analysis extending the framework to model peace &lt;em&gt;duration&lt;/em&gt; rather than binary success (Cox proportional hazards, Random Survival Forests, DeepHit)&lt;/li&gt;
&lt;li&gt;Natural-language explanation layer via OpenAI API to describe not only what is likely to fail, but what provisions could strengthen a treaty before signing&lt;/li&gt;
&lt;li&gt;Full interactive web application integrating the OpenAI API for real-time, human-readable prediction explanations accessible to researchers and policymakers&lt;/li&gt;
&lt;li&gt;Research manuscript in preparation for journal submission&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>