M. Mansour

Personal page · Revised 5 November 2026

Mohamad Mansour

Email moemansour03@gmail.com GitHub mohamadmansourX Scholar profile LinkedIn mohamadmansourx X @MoeMansour0

Abstract

I build and study machine learning systems, mostly in Beirut. Most of my research has been on explainability: methods that say why a classifier decided what it did, and ways to check whether such explanations can be trusted. Two papers came out of that work with Julia El Zini and Mariette Awad at the American University of Beirut. CEnt searches for the smallest feasible change to an input that flips a model's decision [1]. The second asks whether explanations of sentiment classifiers are faithful to the model and plausible to people [2]. Before that I worked on seizure detection from EEG, with a model that ranks the connectivity features behind each prediction [3].

Other projects covered reinforcement learning for room navigation, text classification for product reviews, document image processing, and a telescope for hunting comets, drawn up for the 2023 NASA Space Apps Challenge. I now work at Whish Money on internal AI projects. (If you came here from the loan calculator, it is in section 3.)

Keywords explainable AI, counterfactual explanations, sentiment analysis, EEG, reinforcement learning, computer vision, OCR, PyTorch, TensorFlow

Now November 2026

I work at Whish Money, a payments company in Lebanon, on AI projects that are internal to the company. Nothing from this period is public, so the reference list below stops at 2023. The housing loan page in section 3 is the one public thing from this year.

Publications

  1. The CEnt pipeline in five steps: train a VAE on the full dataset; sample from the VAE encoding and train a decision tree on the original representation; build a graph with the edge construction technique; locate the factual and search for the closest counterfactual node; generate counterfactuals with random perturbations.
    Fig. 1 The CEnt pipeline, from the VAE to the counterfactuals.
    Handwritten digits 5 and 6 shown as the original, as a CEM counterfactual, with CEM visual contrast, and with CEnt visual contrast.
    Fig. 2 MNIST digits: CEnt's contrast (bottom row) against CEM's. CEnt changes a few pixels; CEM repaints the digit.

    Julia El Zini, Mohamad Mansour, Mariette Awad.1 CEnt: An Entropy-based Model-agnostic Explainability Framework to Contrast Classifiers’ Decisions arXiv:2301.07941, January 2023.

    Given an input and any classifier, CEnt looks for the smallest feasible change that would flip the decision, while respecting features that cannot change. It fits a decision tree to the model near the input, scores the splits by entropy, turns them into a graph and walks the shortest path to the other side of the boundary. A VAE supplies the distances, so the proposed change stays close to real data. Benchmarked on the adult, COMPAS, Give Me Some Credit and HELOC tabular sets, with image examples on MNIST and Fashion MNIST and a text classifier.

  2. Evaluation setup: a sentiment analysis model and an explainability model produce rationales for a sentence. Faithfulness is measured as accuracy on the explanations; plausibility is measured against ground-truth rationales using precision, recall and fallout.
    Fig. 3 Faithfulness on the top path, plausibility on the bottom. Eight sentiment models, three explainers.

    Julia El Zini, Mohamad Mansour, Basel Mousi, Mariette Awad. On the Evaluation of the Plausibility and Faithfulness of Sentiment Analysis Explanations In Artificial Intelligence Applications and Innovations (AIAI 2022), IFIP AICT vol. 647, pp. 338–349. Springer, 2022.

    Two questions about explanations of sentiment classifiers: do the extracted rationales actually drive the prediction (faithfulness), and do they match what people would point to (plausibility)? We collected human rationales for a small dataset and ran LIME, Anchors and SHAP over eight models, from a CNN and bmLSTM to BERT, RoBERTa and XLNet. Anchors sat closest to human judgment, and the transformers were easier to explain than the convolutional and recurrent models.

  3. EEG recordings are turned into connectivity features and fed to a deep network for seizure prediction. The model weights are then evaluated to rank the features that trigger a seizure prediction.
    Fig. 4 Connectivity features in, a seizure decision out, and a ranking of the features that triggered it.

    Mohamad Mansour, Fouad Khnaisser, Hmayag Partamian.1 An Explainable Model for EEG Seizure Detection based on Connectivity Features arXiv:2009.12566, September 2020.

    Connectivity measures between EEG channels, directed and undirected, feed a network that decides whether a short window is seizure activity. Relevance is read off the trained weights and activations, which gives a ranking of the features behind each decision and a way to check it against what is already known about seizures.

Projects and code

  1. 2026 Housing loan helper English and Arabic

    What a housing loan in Lebanon costs per month, who is lending at the moment (Banque de l’Habitat, PCH, the banks) and the rules, in plain words. One page, no backend, shareable links.

  2. 2023 StellarVisionX NASA Space Apps Challenge, team lead

    A concept for a telescope that hunts comets from about 42 million km out from the Sun, with its cameras pointed sideways along the plane the planets and comets move in rather than out into deep space. Built over the October 2023 hackathon weekend with Ziad Farhat, Reem Zahreddine, Lucia Nassim and Kosay Darwish, two months after comet Nishimura was found by accident.

  3. 2021 to 2023 Small tools on GitHub

    Merge_COCO_FILES merges COCO annotation files and is the most used thing I have published, at 40 stars. SauvolaNet-Training and TextBPN-Training are training code for document binarization and scene text detection, from a stretch of OCR work.3

  4. 2021 Navigating Agent AUB and CYENS

    Room navigation for embodied agents in Habitat, comparing combinations of reinforcement learning algorithms and training methods.

  5. Screenshot of the HIST 273 course website home page, with a navigation bar and a grid of lecture tiles.
    Fig. 5 The course site. Each tile is one lecture.
    2021 HIST 273 course site AUB

    Lectures were recorded and scattered across drives during the Covid semesters. I made a page where my classmates and I could find each one in a click.

  6. A text preprocessing pipeline (remove non-alphabetic characters, lowercase, lemmatize, n-grams) above a diagram of unsupervised data augmentation with supervised and unsupervised consistency losses.
    Fig. 6 Preprocessing on top; the consistency loss from unsupervised data augmentation below.
    2020 Extracting Insights AUB and Asurion

    Classifying product reviews and pulling themes out of them, with unsupervised data augmentation to get more out of a small labelled set.

Affiliations