projects

Code, models and demos behind my research, teaching and side projects.

My research is on argument mining in political debates, and the projects build on each other:

  1. DataElecDeb60to20US presidential debates annotated with arguments and fallacies
  2. StructureGraph relationsPredicting support and attack from the argument graph
  3. LanguageRooseBERTA language model pre-trained on political debates
  4. FallaciesFallacyRAGRetrieval guided by argument relations
  5. ToolsDISPUToolPutting the analysis in front of readers, with DebateLens

Selected research

More research

Supporting code and data for the papers above.

Political Debates Graph Analysis

Political Debates Graph Analysis

2023–2025 · ArgMining@ACL 2025

Code for 'Leveraging Graph Structural Knowledge to Improve Argument Relation Prediction in Political Debates'. Knowledge graph embeddings over the argument graph of US presidential debates predict support, attack and equivalence relations.

Python · PyTorch · PyKEEN · Knowledge graphs

ElecDeb60to20

ElecDeb60to20

2023 · Dataset (fork)

Annotated corpus of US presidential debates (1960-2020) with argument components, support and attack relations, and fallacies. A fork of the public dataset repository, which my work on fallacy detection and relation prediction builds on.

Dataset · Argument mining · Fallacies

Personal projects

Apps I build in my spare time, for iPhone and Apple Watch.

DebateLens

DebateLens

2026 · iOS app, work in progress

A SwiftUI iOS app that lets journalists read US presidential debates (1960-2020) as annotated argumentation: claims and premises, what supports or attacks them, and the fallacies used. Built on ElecDeb60to20.

Swift · SwiftUI · iOS

ServiceBook

ServiceBook

2026 · iOS app

A SwiftUI app that turns a vehicle's owner's manual into a live maintenance checklist, tracking what is overdue, due soon or upcoming by km and months. Claude finds the manual online or reads a PDF and converts it into the schedule; all data stays on the device.

Swift · SwiftUI · SwiftData · Claude API

GymLog

GymLog

2026 · iOS and watchOS app

An iPhone app to plan gym routines and chart weight progress, with a standalone Apple Watch app that runs the workout: sets, reps, weights, circuits and a programmable rest timer that buzzes when it is time to go again. It includes a catalog of 85 exercises with figures, syncs over WatchConnectivity with no account or server, and saves workouts to Apple Health.

Swift · SwiftUI · watchOS · HealthKit

Teaching

Data Analysis and Visualization

Data Analysis and Visualization

2024–2025 · Course material, CentraleDigitalLab@Nice

Slides, Colab notebooks and solutions for the Data Analysis and Visualization course at CentraleDigitalLab@Nice: exploratory analysis, missing data and outliers, imbalanced data, text encoding, dimensionality reduction and visualization.

Python · Plotly · Jupyter

Machine learning and data

Projects from my MSc in Deep Learning and Applied AI at Sapienza.

Multi-Source LMs for Audio

Multi-Source LMs for Audio

2024

Can a language model trained on vector-quantized audio help music generation and source separation? Code to train a VQ-VAE on the Slakh dataset, a Transformer on the quantized representation, and a BERT fine-tuned on codebook indices.

Python · PyTorch Lightning · Hydra

Cross-Lingual Embeddings

Cross-Lingual Embeddings

2024

An encoder-decoder model that places Italian and French embeddings in a shared latent space, trained with a contrastive loss on Europarl parallel corpora, with hyperparameter optimization and an ablation study.

Python · PyTorch · Transformers

Segmentation Is All You Need

Segmentation Is All You Need

2023

Is segmentation always a useful preprocessing step in computer vision? Compares thresholding, watershed and clustering-based segmentation before classification and object detection, on images of the ten Formula 1 teams.

Python · Computer vision · Object detection

Earlier work

Smaller projects from my BSc in Turin and the start of my MSc.

  • 2022 SarcasTweetClassifies Italian tweets as sarcastic or not; the best model is served by a Flask app in Docker. CodeNotebook
  • 2022 Smart HousesHome energy demand response: an LSTM forecasts prices and multi-agent RL schedules appliances. With Vincenzo Imperati. CodeReport
  • 2022 Know a Person by Its HeartBiometric identification from smartwatch-style ECG signals, evaluated with CMC curves on the PTB database. CodeReport
  • 2022 Prodigit BotTelegram bot for booking study rooms at Sapienza, built with a small team. Inactive since the end of the COVID emergency. Code
  • 2021 QRestaurant · Bachelor thesisCOVID-19 guest registration for restaurants via personal QR codes. Spring Boot backend and React web app. BackendWeb appThesis (IT)

More on GitHub.