albahrani.dev

Mahmoud Albahrani

محمود البحراني

I build data pipelines, and the models that depend on them.

Final-year computer science at Imam Abdulrahman Bin Faisal University in Dammam, Saudi Arabia. Graduating June 2027.

Euler's formula on the unit circle A point travels round a circle of radius one, once a minute. Its horizontal distance from the centre is cos θ and its height is sin θ. Re Im 0 π/2 π 3π/2 θ

eiθ = cos θ + i sin θ

Fig. 1. Euler’s formula, turning once a minute. The hand can be dragged.

Work

Two projects. Both are public, and every figure below can be checked against the code.

Sentiment in Arabic hotel reviews

PySpark, AraBERT, Hugging Face Transformers

A PySpark pipeline in three layers, bronze, silver and gold, over 105,698 Arabic hotel reviews, and an AraBERT model fine-tuned on what came out of it. Spark runs the model too, as batch inference.

While cleaning the data I found that about 40% of the reviews, 42,102 of them, opened with a title Booking.com writes from the guest’s own score, the Arabic for “Exceptional” or “Disappointing”. A model could pass by reading the first word. I removed those titles before training, so these scores are not comparable with published ones that keep them. They are the ones I can defend.

On 10,217 reviews it had never seen, the fine-tuned model is right 91.85% of the time, against 85.76% for a TF-IDF and logistic-regression baseline. That is 43% fewer errors, and the gain is largest on short reviews, where there is least to read.

It is not finished. Dialect negation still catches it out: “المكيف خربان”, the AC is broken, reads as negative, but “المكيف ما يبرد”, the AC doesn’t cool, comes back positive. The README lists that with the other limits.

Fig. 2. Test accuracy by review length. The shorter the review, the more the fine-tuned model adds.
Accuracy, after the leaking titles were removed
ModelValidationTest
TF-IDF and logistic regression85.15%85.76%
AraBERT v02, fine-tuned91.91%91.85%
Figure 2 as a table
Review lengthBaselineAraBERT
Short, up to 10 words81.7%89.8%
Medium, 11 to 4086.6%92.2%
Long, over 4091.0%94.7%

Saudi real-estate warehouse

PySpark, PostgreSQL, Spark MLlib

Property sales published by the Saudi Ministry of Justice, from the first quarter of 2020 to the first quarter of 2026. Twenty-five quarterly files in three different column layouts, read with PySpark and loaded into a PostgreSQL star schema: one fact table, four dimensions.

1,439,719 rows went in and 1,439,705 came out. The fourteen that were rejected are accounted for, and every row that stayed still knows which file it came from.

On top of the warehouse, K-means over 2,532 residential districts, with k = 4 chosen by the elbow method and the silhouette score. Four markets came out of it: affordable, emerging, high-demand and premium. The fastest growth is not at the top of the market. It is in the middle.

Fig. 3. The four district segments. Growth compares median price per m² in 2024–26 with 2020–21; below the 1.0× line, prices fell.
The segments, by their medians
SegmentDistricts SAR per m²Deals Plot, m²Growth
Affordable5121201146120.90×
Emerging896422836001.86×
High-demand5547828324951.63×
Premium5701,917913211.26×

Record

Education

  1. 2022 – 2027

    B.Sc. Computer Science

    Imam Abdulrahman Bin Faisal University, Dammam

Experience

  1. Mar 2026 – now

    E-commerce specialist, part-time

    Artist Hub, a specialty coffee brand

  2. Feb 2026

    Quality assurance specialist, freelance

    A marketplace platform and SaaS client, under confidentiality

    Risk-based testing of a live ordering system: 29 test cases across payments and workflow. Found that high-value orders could go through with no stock check, rated it P1, and recommended validating on the server.

  3. Feb 2025 – May 2026

    Sales associate, part-time

    Jarir Bookstore, Dammam

    Turned vague requests into specific answers, and mentored new colleagues.

  4. Jan – Apr 2025

    Public relations volunteer

    AI & Robotics Club, Imam Abdulrahman Bin Faisal University

    Sponsorship outreach and logistics for technical events. Member of the Month, twice.

Certificates

  1. 2025 – 2026

    Neural Networks; Improving Deep Neural Networks

    DeepLearning.AI

  2. 2025

    Machine Learning Foundations

    AWS

  3. 2025

    Introduction to Generative AI with AWS

    Udacity

Tools

  1. Data

    Apache Spark, PostgreSQL, SQL, Pandas, NumPy

  2. Models

    PyTorch, Hugging Face Transformers, Spark ML

  3. Languages

    Python, SQL, C++, Java

  4. Spoken

    Arabic, native. English, fluent.

Contact

If you are building something with data, or hiring the people who do, write to me.

mahmoudbahrani103@gmail.com

محمود