How web scraping and AI are helping to find missing children
Tags: usecases, webscraping, ai
Published: 2023-11-03 12:08:06

---
title: How web scraping and AI are helping to find missing children
published: true
date: 2023-08-06 22:00:00 UTC
tags: usecases, webscraping, AI
canonical_url: https://blog.apify.com/web-scraping-ai-missing-children/
---

The Missing Children initiative began with a Facebook page. Web scraping Facebook for data labeling has taken it to a whole new level and the initiative is now reuniting families all over Egypt.

## **The Missing Children initiative**

Ever since the [2011 Egyptian revolution](https://en.wikipedia.org/wiki/2011_Egyptian_revolution), child abduction has been on the rise in Egypt. During the revolution alone, [1,200 persons were reported missing](https://www.icmp.int/the-missing/where-are-the-missing/egypt/), and the problem of lost persons is still not going away. Children make up the largest proportion of victims. Thousands of children go missing in Egypt every year. There are five main reasons: adoption, begging, sex trade, organ trade, and ransom.

This tragic situation was the motivation behind the [Missing Children (Atfal Mafkoda) initiative](https://atfalmafkoda.com/en/home). Atfal Mafkoda is a community effort and [Facebook page](https://www.facebook.com/atfalmafkoda/) with over 2 million followers that works on identifying missing and trafficked children and those mistreated in orphanages. The initiative has so far tracked down over 3,000 people to reunite them with their families.

The Missing Children initiative was launched in 2016 by engineer Rami el-Gebali, beginning with a "No to using children as beggars" campaign. Mr. Gebali asked people to take pictures of children begging on the streets and send them to the page. As a result, he collected tens of thousands of such photos, and a match-making process between begging children and misplaced children began.

While that campaign led to only three children being found, the vast number of images led to the page having the largest database of missing children with pictures in Egypt.

> **"Our motto is that no family should suffer the pain of missing a living loved one. We want to spread our model across the world. We proved the concept, and we know it works."**
> 
> - Rami el-Gebali, founder of Atfal Mafkoda\*\*

![Founder of the Missing Children initiative which uses AI and webscraping to track abducted children](https://blog.apify.com/content/images/2023/08/F563F779-7411-446C-8D0E-9EEE7E7C2E69_1_201_a.jpeg)

_Rami el-Gebali, founder of the Missing Children initiative_

## **AI face recognition to the rescue**

In 2023, something made Rami el-Gebali realize that there had to be a way to speed up the complicated process of finding lost children. A community member pointed out that there was a photo that looked just like a person who had been missing for ten years. That person has now finally been reunited with his family. But Atfal Mafkoda had that photo two months after the person went missing. AI could have solved that case in one minute! Relying on human beings to do in ten years what AI would do in the blink of an eye didn't make sense!

The problem was that the process of finding lost children is not effective when the photos are too old, the picture quality is low, or the children have been missing for so long that their photos no longer match their current facial features. Atfal Mafkoda needed AI face recognition technology: face detection, face enhancement, face comparison, and face aging.

Enter Rami el-Gebali's neighbor, Youssef A. Abukwaik - a highly experienced software engineer and author of the [SuSE Linux Installation & Configuration Handbook](https://www.amazon.com/SuSE-Linux-Installation-Configuration-Handbook/dp/0789723557).

Rami asked Youssef for his help. So Mr. Abukwaik consulted a former manager who teaches at Boston University and inquired about the possibility of starting a graduation project for the semester that would benefit both the students and the Missing Children initiative.

What followed was the [Spark project](https://www.bu.edu/spark/2023/05/10/demo-day-2023/), for which the students won an Audience Choice Award. The students applied generative deep learning methods to improve forensic face aging to provide higher-quality aged face photos. Thanks to those brilliant students, Mr. Abukwaik was able to implement what the students did ([see the GitHub repo here](https://github.com/BU-Spark/ml-atfal-mafkoda-missing-children#readme)) and apply it to the Missing Children initiative.

![The Missing Children Facebook page: Web scraping Facebook for AI and data labeling](https://blog.apify.com/content/images/2023/08/Web-scraping-and-AI-finding-Missing-Children-in-Egypt-1.jpeg)

_The Atfal Mafkoda (Missing Children) Facebook page_

## **Web scraping Facebook for data labeling**

The next step was [web scraping](https://apify.com/web-scraping). Youssef needed to scrape the Atmal Mafkoda Facebook page in order to turn it into a dataset for [data labeling](https://blog.apify.com/what-is-data-labeling-in-ai/). And this is where Youssef ran into problems.

> **"Apify allowed me to fully scrape our own Facebook page without the limitations I had experienced with alternative solutions. I was able to drill down up to 5,000 posts without blocks. No other open-source solution or alternative I tried compared to that."**
> 
> - Youssef A. Abukwaik, Software Engineer\*\*

Youssef first tried downloading the Facebook page, but it wasn't easily parsable. So he turned to an open-source Facebook scraper. Facebook blocked him after just 30 requests. He then tried a proxy application, but the configuration was hard to do. After scraping 500 posts, he had to start all over again after encountering problems.

So, Youssef did what any of us would do: he turned to search engines and googled "[How to scrape Facebook](https://blog.apify.com/how-to-scrape-facebook-pages-posts-comments-photos-and-more/)." Google autocompleted his search with 'How to scrape Facebook in 2023', and the first result was Apify.

> **"Apify has incredible potential for AI and machine learning. It was a turnkey solution that let me harvest the data in our Facebook community for data labeling and put it to use without any extra work."**
> 
> - Youssef A. Abukwaik, Software Engineer

## **How Apify is helping the Missing Children initiative**

Apify allowed Youssef to fully scrape the Atfal Mafkoda Facebook page without the limitations he experienced in alternative solutions he came across. He was able to extract up to 5,000 posts without getting blocked.

Also, the ability to have a dataset is profoundly helpful. The scraped results don't disappear, so he doesn't have to use them immediately. He can do queries against the data, which sticks around long enough to perform business logic without having to suffer re-running. With one run, Youssef is able to re-download and work with the output.

Mr. Abukwaik now has an administration site where he can pull Facebook data. The data appears in a structured way, and he can see all the posts so he knows when he needs to do face matching with the John/Jane Does, and label them according to whether a person is missing or reunited with their family.

💡[Get fast, reliable data for your AI and machine learning at Apify!](https://apify.com/data-for-generative-ai?ref=top_nav)

## **A global database of missing people**

The Missing Children initiative is focused on Egypt for now, but as [its founder has said](https://www.bbc.co.uk/news/world-middle-east-53564935.amp?fbclid=IwAR09W8qn86399bUPBHAW-qUCFAXASQLB24enHWJS3Hc7N_fdgHtj0qsEYnk), Our dream is to have one global database of missing people around the world.

Apify shares that dream, and with this and the [Thorn project](https://apify.com/success-stories/fighting-child-traffickers-with-technology), which uses Apify to help find trafficked children in the US, let's hope that the dream becomes a reality very soon!

* * *

_Want to read more of Apify's web scraping & AI-related success stories? Then check out the content below._

- [**How web scraping is bridging language barriers**](https://blog.apify.com/how-web-scraping-is-bridging-language-barriers-for-migrants-and-refugees-in-the-eu/)

- [**How web scraping, AI, and the EU have come together to sweep away fake discounts in Europe**](https://blog.apify.com/how-web-scraping-ai-and-the-eu-have-come-together-to-sweep-away-fake-discounts-in-europe/)

- [**Helping the planet with data**](https://apify.com/success-stories/helping-the-planet-with-data)

- [**Scaling up an AI-powered content agency with data extraction**](https://apify.com/success-stories/content-data-extraction-content-agency)

_Read even_ [_more success stories here_](https://apify.com/success-stories)