Shipped

Multi-attribute face detection

A Faster R-CNN face detector that predicts age range, gender, and expression. It started as a four-person undergraduate thesis comparing ResNet-50 and MobileNetV3 backbones, in which I built most of the model architecture. I am now improving the MobileNetV3 version.

stack: Python, PyTorch, torchvision, Faster R-CNN

Problem

Detect every face in an image and predict three attributes for each one: age range, gender, and expression. No single dataset had all three labels.

Approach

Faster R-CNN with a modified RoI head: each detected face gets one bounding box plus a label for each of the three attributes, instead of one box per class. Non-maximum suppression and the loss were changed to match. The thesis compared a ResNet-50 backbone against MobileNetV3, both starting from COCO-pretrained weights.

This was a team thesis. Vito Xavier led the research design and methodology. I built most of the model architecture, implemented the algorithms, and did data analysis. Kenny Nathaniel wrote the literature review and also worked on data analysis. Abram Setyo Prabowo supported the technical work and validated the findings.

Training data: a balanced subset of 6,000 LAGENDA images for age range and gender, and 1,200 hand-picked ExpW (Expression in-the-Wild) images for expression, since the full ExpW set has inaccurate boxes and class imbalance. Neither dataset has all three labels, so each image gets placeholder values for the labels it lacks. To fit the available compute, training ran in three stages of about 2,000 images each.

The work is published as a paper at ICIMTech 2025: Multi-Task Face Attribute Detection with ResNet50 and MobileNetV3 Backbones in Faster R-CNN.

Since the thesis, I have been reworking the MobileNetV3 model on my own to improve its accuracy. ResNet-50 is dropped from that work. The MobileNetV3 model is still being improved. Each version so far has a tab below with its recorded runs and scores, and its own rows in the results tables.

Demo: recorded runs

Score Test Comparison (Thesis) Full results
  • Finding faces (ExpW) Thesis not measured. The thesis weights were not measured on ExpW face boxes. v3.1 64%
  • Finding faces (Lagenda) Thesis 53% v3.1 71%
  • Gender Thesis 23% v3.1 57%
  • Expression (7 kinds) Thesis 3% v3.1 26%
  • Age (8 ranges) Thesis 13% v3.1 18%

Results and evaluation

Results per version

Every version is measured on the same held-out reporting sets with the same metric, so these rows compare like for like. “Thesis weights, re-measured” is the thesis model run on those sets, not the paper’s figures.

Age (8 ranges), per version
RowmAP@0.50:0.95mAP@0.50PrecisionRecallF1
Thesis weights, re-measured0.1320.1900.2330.3180.260
v10.0990.1580.2530.2900.268
v20.1860.2430.2460.3990.298
v3.10.1800.2350.2140.3890.275

Source: Test runs of each version on the held-out Lagenda reporting set.

Gender, per version
RowmAP@0.50:0.95mAP@0.50PrecisionRecallF1
Thesis weights, re-measured0.2300.3500.3900.5510.445
v10.3260.5760.5720.6790.620
v20.5550.7420.4410.8060.557
v3.10.5700.7630.4220.8190.556

Source: Test runs of each version on the held-out Lagenda reporting set.

Expression (7 kinds), per version
RowmAP@0.50:0.95mAP@0.50PrecisionRecallF1
Thesis weights, re-measured0.0310.1010.2110.2470.198
v10.2200.3220.4280.4570.420
v20.2330.3340.3820.4720.392
v3.10.2610.3810.3900.5020.421

Source: Test runs of each version on the held-out ExpW reporting set.

Finding faces (Lagenda), per version
RowmAP@0.50:0.95mAP@0.50PrecisionRecallF1
Thesis weights, re-measured0.5310.8390.6190.8950.732
v10.4530.8270.7330.8690.795
v20.7120.9590.4870.9790.650
v3.10.7090.9610.5000.9740.661

Source: Test runs of each version on the held-out Lagenda reporting set.

Finding faces (ExpW), per version
RowmAP@0.50:0.95mAP@0.50PrecisionRecallF1
Thesis weights, re-measurednot measurednot measurednot measurednot measurednot measured
v10.6260.9570.8490.9730.907
v20.6500.9790.6570.9920.791
v3.10.6400.9840.6950.9920.817

Source: Test runs of each version on the held-out ExpW reporting set.

not measured: The thesis weights were not measured on ExpW face boxes.

Precision, recall, and F1 count only detections that score above a fixed threshold of 0.1. v2 and v3.1 find more faces than v1, but they also keep more low-confidence boxes above that threshold. So their precision, and with it their F1, is lower than v1’s even though their mAP is much higher. mAP ranks detections by confidence and does not depend on the threshold, so it is the main metric here.

Thesis results, as reported in the paper

These are the multi-task MobileNetV3 results from Table I of the paper. The paper also reports ResNet-50, which is left out here because the improved model drops it. Scores are COCO-style mAP at an IoU of 0.50 and averaged over 0.50 to 0.95, plus precision, recall, and F1. For those last three, a detection counts as correct when its box reaches an IoU of 0.50 and its label matches. Each model is scored at the epoch with its highest precision.

The paper used other test splits and older metric code than the per-version tables, so treat its table as a reference point, not a like-for-like comparison. Two of its figures are wrong. Its expression F1 does not follow from its own precision and recall, so it is left out here. Its expression mAP@0.50:0.95 equals its mAP@0.50, which a correct metric cannot give.

Thesis results, MobileNetV3, as reported in the paper
RowmAP@0.50:0.95mAP@0.50PrecisionRecallF1
Age range0.09710.13310.14020.32020.1645
Gender0.15870.23530.17790.30190.2199
Expression0.04710.04710.14400.1550·

The paper did not report speed or size. They stay empty here rather than estimated.

Runtime
RowLatencyModel size
MobileNetV3not measurednot measured

not measured: The paper did not report this.

What changed in each version

Thesis

The thesis model is a Faster R-CNN with a MobileNetV3 backbone that finds faces and predicts age, gender and expression for each one. Expression trained only a linear layer on frozen features. These are the thesis weights re-measured on the same held-out sets and metric as v1 to v3, so all four versions compare like for like. The paper's own figures came from other test splits and older metric code.

v1

v1 fixes the thesis code's bugs. ExpW face boxes had been read from the wrong columns, and evaluation could score the wrong task's labels. Each detection now carries all three predictions under one face score. A face detector plus manual review removed broken and misplaced boxes from both datasets, and images that copied an evaluation image left the training set. New held-out sets separate choosing the best epoch from reporting. Training starts from ImageNet/COCO weights instead of the thesis checkpoints, which may have seen evaluation images, and one model learns age, gender and expression at once. Gender and expression rose sharply, expression most of all. Age and face box tightness fell below the thesis weights; the data analysis after v1 found why, and v2 addresses it.

v2

Same network, different training. Lagenda faces with no age or gender label used to train as background, which taught the model that real faces are not faces; v2 trains them as faces of unknown class. Inputs are larger, because the median Lagenda face was tiny at the old size. Each sample is a whole image with all its faces, faces without annotations are ignored rather than counted as background, and training adds horizontal flips and mixed precision. The box loss had been divided by three times too much, and that is fixed. Age, gender and face box tightness rose sharply. Expression rose only slightly, because most ExpW images hold one face, so these fixes changed little for it.

v3.1

Same data and training recipe as v2; the classification heads change. In v1 and v2 each attribute head also had a background class, so three heads each learned whether a box is a face. v3.1 has one face-or-background output, and the attribute heads choose only among their own classes. An intermediate version, v3, also trained age with an ordinal loss. Its age got worse and it over-predicted the youngest bins, and the follow-up run showed the ordinal loss caused that, not the face head. So v3.1 keeps the face head and trains age with a plain softmax, as v2 did. Compared with v2, gender and expression improved. Age and face boxes came out slightly lower. v3.1 has the best mean over the three tasks of any version, and its training kept improving until the last epoch.

Model card and limitations

The labels are the datasets’ categories, not facts about the people in an image. Gender is a two-label visual guess and says nothing about how anyone identifies. Age is a coarse bin.

In the thesis model, the reported probabilities are low, often under 0.2, because each softmax also covers the background class. Read them as a ranking between labels, not as calibrated confidence. Postprocessing applies a score threshold to the age task only. v1 and v2 compute their probabilities the same way. In v3.1, the face head gives the probability that a box is a face. Each class’s probability is that face probability times the attribute head’s probability for the class. The gallery shows the probabilities unchanged as whole percentages. It draws a face only when its face score clears that version’s threshold. For Thesis, v1, and v2 the face score is the mean non-background probability of the age and gender heads; for v3.1 it is the face head’s probability.

The thesis results have no breakdown by group, so how the model performs across age, gender, or skin tone is unknown.

Images with several faces are the hard case. On a small hand-picked set of single-person images, both thesis models scored markedly higher than on the full test set.

Age range and expression score lowest in every version’s results, so read those labels in the gallery as weak guesses.

Trade-offs I made

  • Only MobileNetV3 carries forward: in the paper it scored higher than ResNet-50 on age range and gender, and it is cheaper to run.
  • Recorded runs instead of uploads: the gallery replays runs recorded once on licensed images, so the site needs no inference server.

How it runs in production

The gallery shows recorded runs of each version, generated once on a CPU and served as static files.

Paper and data credits

  • Paper: V. Xavier, R. D. Susilo, K. Nathaniel, and A. S. Prabowo, “Multi-Task Face Attribute Detection with ResNet50 and MobileNetV3 Backbones in Faster R-CNN”, 2025 International Conference on Information Management and Technology (ICIMTech), IEEE, pp. 674-679. DOI 10.1109/ICIMTECH67074.2025.11265049.
  • LAGENDA by the Layer Team, licensed under CC BY 2.0 (dataset page). A subset was used for training. The authors ask to cite: M. Kuprashevich and I. Tolstykh, “MiVOLO: Multi-input Transformer for Age and Gender Estimation”, arXiv:2307.04616, 2023; and M. Kuprashevich, G. Alekseenko, and I. Tolstykh, “Beyond Specialization: Assessing the Capabilities of MLLMs in Age and Gender Estimation”, arXiv:2403.02302, 2024.
  • ExpW (Expression in-the-Wild) from Z. Zhang, P. Luo, C. C. Loy, and X. Tang, “From Facial Expression Recognition to Interpersonal Relation Prediction”, arXiv:1609.06426, 2016 (project page). A subset was used for training.

All projects

Raymond Dehenrich Susilo

Applied ML engineer with a DevOps background

Open to data scientist, ML / MLOps engineer, AI engineer roles

Jakarta, IndonesiaAvailability: 1 month notice period (can be shortened if needed)raymondsusilo.com

Download CV (PDF)

Summary

I'm based in Jakarta. I studied Computer Science with an AI focus at Bina Nusantara University. My thesis, written in a team of four, built a Faster R-CNN face detector that predicts age range, gender, and expression, comparing ResNet-50 and MobileNetV3 backbones. I built most of its model architecture. I now work as a junior DevOps engineer. Most of that work is full-stack Python on a monitoring platform, plus infrastructure and PowerShell automation.

Looking for: data scientist, ML / MLOps engineer, AI engineer roles in Jakarta.

Experience

Junior DevOps Engineer, PT. CreateIT Solution IndonesiaMay 2026 to present

  • Designed and maintain a release flow with versioned rollbacks for production web apps
  • Set up cross-region VPS monitoring (Prometheus, Grafana, Loki, Tempo) with alerts to Microsoft Teams
  • Built a Flask and PostgreSQL platform on a client's RMM API for custom alert suppression and reporting
  • Patch and troubleshoot client Windows servers; wrote PowerShell health checks for server hardware and backups

Stack: Python, Flask, PostgreSQL, Docker Compose, PowerShell, Prometheus, Grafana, Loki, Tempo, WireGuard, K3s, Argo CD, GitHub Actions, Gitea Actions

AI Data Annotator (part-time), FreelanceMay 2025 to present

  • Review and compare LLM outputs, rating their accuracy, reasoning, and summaries
  • Compare models on coding tasks and review the code they generate

Stack: LLM evaluation, Code review

Machine Learning Engineer Intern, PT. Astra Daihatsu MotorMarch 2024 to February 2025

  • Designed and implemented ETL pipelines for data integration, accuracy, and accessibility for analysis
  • Analyzed incoming data to find patterns and insights for project-specific ML use cases
  • Built a dashboard that gave meetings and reporting analytical insight from historical data
  • Developed and deployed predictive models to find trends and improve workflows

Stack: Python, SQL, ETL, Talend, Power BI

Skills

Languages
Python (used in production)
ML and computer vision
PyTorch (used in projects), torchvision (used in projects), Computer vision (used in projects)
LLM apps
LangGraph (learning), LLM output evaluation (used in production), LLM applications (learning)
Backend
Flask (used in production), PostgreSQL (used in production)
DevOps and infrastructure
Monitoring and alerting (used in production), PowerShell (used in production), Windows Server administration (used in production), Docker and Docker Compose (used in production), Linux (Ubuntu) (used in projects), CI/CD (GitHub Actions, Gitea Actions) (used in production), K3s and Argo CD (used in production)
Tools
Git (used in production)

Projects

Multi-attribute face detectionShipped

A Faster R-CNN face detector that predicts age range, gender, and expression. It started as a four-person undergraduate thesis comparing ResNet-50 and MobileNetV3 backbones, in which I built most of the model architecture. I am now improving the MobileNetV3 version.

Vulnerability triage agentIn progress

An agent that takes CVE IDs or a scanner report and produces a prioritized triage report. Currently being built.

Self-hosted infrastructureShipped

The VPS and homelab this site runs on: Docker services behind Nginx, a WireGuard tunnel to a Traefik-fronted homelab.

Image captioning with a TransformerShipped

An encoder-decoder Transformer written from scratch in PyTorch that turns an image into a one-line caption, trained on the full COCO captions set.

Education

Bachelor of Computer Science, Bina Nusantara UniversitySeptember 2021 to April 2025

Focus: Artificial Intelligence

Thesis: Multi-Task Face Attribute Detection with ResNet50 and MobileNetV3 Backbones in Faster R-CNN. Multi-attribute face detection (age range, gender, and expression) with Faster R-CNN, comparing ResNet-50 and MobileNetV3 backbones. It uses a custom prediction head and staged training, because no single dataset had all three labels. Written with three co-authors; I built most of the model architecture, implemented the algorithms, and did data analysis.