Projects that solve real-world business problems and have market potential
A centralized web application designed to monitor and manage underground water resources by simplifying well drilling licensing, ensuring regulatory compliance, and predicting water availability through advanced data analytics. It combats illegal drilling and promotes sustainable water management, targeting government agencies, agricultural businesses, environmental organizations, and research institutions focused on water conservation.
The app predicts water depth using a hybrid method combining radius-based regression (KNN) with graph-based aggregation (GNN), where wells within a 5 km radius influence predictions weighted by spatial proximity. For locations lacking nearby wells, a Random Forest Regressor uses soil and weather data from Google Earth Engine to make accurate predictions. Additionally, Aabar employs an open-source multilingual LLaMa language model for query handling and uses Retrieval-Augmented Generation (RAG) to provide precise information based on water law number 36-15.
Tags: Water, Hydrology, Prediction, AI, Random Forest, GNN, KNN, RAG, LLM
Collaborators: Abdelmonaim Bounite
An innovative platform that leverages artificial intelligence (AI), more precisely graph convolutional networks (GCN) in combination with genetic algorithms, to predict and optimize the energy consumption of buildings. It provides accurate predictions and recommendations for optimal building layout, aiming to reduce overall energy consumption in the construction sector.
The platform uses deep learning to analyze the geometric data of buildings, their positions, weather data, and space usage, enabling the prediction and optimization of energy consumption. Technologies used include ReactJS, Flask, MongoDB, PyTorch, Scikit-learn, pandas, PyTorch Geometric, and NumPy.
Tags: Energy, Construction, Optimization, Prediction, AI, Deep Learning, GCN, Genetic Algorithm
Collaborators: Ahmed Idrissi, Rihab Id'mhand, Noura Ed-dahby, Aya Kourdou
An AI-based solution that handles the problem of supply chain shortages in pharmaceutical products, as one of the current and sensitive problems in Morocco.
Developed using an LSTM network and trained to forecast the future demand in medicaments in around 500 cities, with an R² score up to 0.99 after data normalization. Furthermore, it was deployed into a web application to provide a user-friendly UI for stock managers to monitor the state of the market and plan for future deliveries. A business plan was also elaborated for an eventual launching of this start-up idea.
Tags: Supply Chain, Healthcare, Planning, Forecasting, AI, Deep Learning, LSTM
Collaborators: Adil Lakhdar Chaoui, Mouad Berqia
An innovative agricultural platform that leverages real-time NASA Earth observation data through the Google Earth Engine API to provide farmers with critical insights on land conditions such as temperature, water availability, and soil moisture. Its interactive dashboard helps farmers monitor crop health, plan irrigation, and track weather patterns, enabling more efficient and sustainable resource management.
The platform also had other pending non-developed features, like a multilingual virtual assistant (BOUCHTA) designed to support farmers with recommendations and predictions via voice and text inputs, a gamified forum where farmers share knowledge, and an alert system that sends timely notifications about water shortages, crop diseases, and extreme weather.
Tags: Agriculture, Planning, Forecasting, AI, Machine Learning, Data Engineering, Data Science, LLM & RAG
Collaborators: Ahmed Idrissi, Noura Ed-dahby, Nouhaila Atabet, Maroua Chattat
A project about making scholar institutions capable of achieving energetic independence with autonomous and scalable microgrids on production, consumption, and distribution levels using reinforcement learning (RL).
Inspired by the actual state-of-the-art in smart grids, based on much research about renewable energies and university campuses, and optimized with a creative RL reward function, which helps reduce the usage of urban electricity and increase the usage of green energies in a hybrid smart grid with green and fossil sources.
During simulations, our system was able to achieve up to 20% optimization regarding our objective, in comparison to a baseline algorithm that uses a conditional block of code (if/else) with the same purpose.
Tags: Energy, Micro-grid, Planning, AI, Reinforcement Learning, Data Science, R&D
Collaborators: Hicham Filali, Bouchra Sahri, Hajar El Idrissi, Omar El Taqi
This project studies Shamir’s Secret Sharing (SSS), a cryptographic method that splits a secret into parts requiring a minimum number to reconstruct it. It explores SSS’s math and security proofs and uses Python to simulate encryption, decryption, and brute-force attacks to test its strength.
The goal is to design a banking authentication system for multi-owner accounts using SSS, ensuring that access requires multiple owners’ approval. This enhances security by preventing single-user access and demonstrates practical applications of cryptography in finance.
Tags: Banking, Cybersecurity, Cryptography, Brute Force Attack, Formal Methods
Projects developed for educational, research, or scientific exploration purposes, including simulations, academic studies, and software packages
A distributed framework for exoplanet survey equipped with machine learning models that could train themselves autonomously using the data they classify based on the innovative self-supervised learning paradigm, and for which we proved the efficiency in our case study.
This project was also presented as a talk at the 4th Annual Meeting of the African Astronomical Society (AfAS) in Marrakech, Morocco.
A short presentation video is available on YouTube.
Tags: Astronomy, Astrophysics, Exoplanetary, Data Science, Machine Learning, Distributed Systems
Collaborators: Rihab Boudkour, Meryem El Karati
Inspired by scikit-learn, this package implements several fundamental machine learning algorithms from scratch in Python 3.8, including Single Layer Perceptron, Pocket Perceptron, Adaline, Linear and Logistic Regression, Polynomial Regression, and multi-class classifiers like One-vs-All and One-vs-One. It also includes key learning theory tools such as non-linear transformation, K-fold cross validation, gradient descent, regularization, and theoretical concepts like VC dimension and covering numbers.
Additionally, the package provides utility functions for generating dummy data (2D and 3D) and plotting results, including linear and non-linear decision boundaries and regression lines. All implementations and tools are organized within the lib folder for easy access and use.
Tags: Machine Learning, Learning Theory, Mathematics, Optimization, Data Generation, Data Visualization
Collaborators: Hicham Filali, Mohammed Nechba, Bouchra Sahri, Mohamed Mouhajir, Hanaa El Afia
A computer vision technique that allows images to be retrieved from a database based on the similarity of their actual visual content, rather than relying on metadata or keywords. This process involves extracting distinctive features—such as color, texture, and shape—from each image and representing them numerically. The system then compares these features using similarity measures to identify and return images from the database that most closely match the query image.
CBIR is widely used in areas like digital asset management, medical imaging, and e-commerce, where efficiently finding visually similar images is essential. By focusing on the intrinsic properties of images, CBIR systems provide a robust and objective way to organize and search large collections based on visual content.
Tags: Computer Vision, Mathematics, Software Development, Database Search, CBIR
Collaborators: Hicham Filali, Bouchra Sahri
This GitHub repository provides a Python package for unconstrained optimization. It includes implementations of multivariable algorithms like Gradient Descent, Conjugate Gradient, and Newton methods, as well as ten one-dimensional search methods such as Golden Section and Fibonacci. The package also features visualization tools and relies on libraries like NumPy, SciPy, and Matplotlib, along with custom modules for matrix operations, Gauss elimination, and matrix decompositions.
Organized with core modules and utilities, the project offers main scripts to test and compare methods on random functions. This setup creates an interactive learning tool to explore and visualize optimization algorithms effectively in Python.
Tags: Mathematics, Optimization, Linear Algebra, Visualization
An innovative approach for detecting overlapping communities in complex networks, such as social networks where nodes can belong to multiple groups. HFGC begins by selecting influential "master" nodes as initial community seeds, assigning them unique labels, while other nodes start unlabeled. Through iterative label propagation, each node updates its community membership vector based on its neighbors, allowing for fuzzy and overlapping community assignments that better reflect real-world network structures.
To improve efficiency, HFGC only updates newly colored nodes and their neighbors in each iteration, making it scalable for large graphs. While the algorithm is notably faster than many existing methods, its modularity scores can be lower, indicating room for refinement. An enhanced version, HFGC+, incorporates multi-criteria decision-making (w-TOPSIS) for better master node selection, though results suggest further research is needed to optimize both speed and community quality.
Tags: Mathematics, Graph Theory, Community Detection, Fuzzy Logic, Networks, Clustering
Collaborators: Mehdi Touil, Chaimae Jallouli
This Flocking Simulation repository implements the classic Boids algorithm to model and analyze collective bird-like behavior. It provides a framework where individual agents (boids) follow simple rules—separation (avoiding crowding), alignment (matching velocity with neighbors), and cohesion (moving toward the group’s center)—to produce realistic flocking dynamics. The system tracks key metrics such as polarization, angular variance, and kinetic energy to quantify the flock’s coordination and activity.
The repository is organized into modules for defining boids and flocks, running simulations, visualizing behavior in real time, and plotting analytical metrics. Users can customize parameters like flock size and interaction weights, enabling exploration of how these factors influence emergent group behavior.
Tags: Mathematics, Multi-Agents, Swarm Intelligence, Simulation, 2D Animation
Collaborators: Mehdi Touil
Accepted pull requests in public repositories
Time-LLM is a reprogramming framework to repurpose LLMs for general time series forecasting with the backbone language models kept intact. Notably, we show that time series analysis (e.g., forecasting) can be cast as yet another "language task" that can be effectively tackled by an off-the-shelf LLM.
I added a try/except block to launch the model and tokenizer download if not already available locally.
Tags: LLM, API, Time Series, Forecasting
Microsoft Azure is a cloud computing platform provided by Microsoft that offers a wide range of services, including computing, storage, networking, and analytics. It enables individuals, businesses, and governments to build, deploy, and manage applications and services through a global network of data centers. Azure is designed to be flexible and open, supporting various business strategies and stages of digital transformation.
I helped fix a small issue in one of the first tutorials of Azure when using Intelligent OCR services, calling begin_analyze_document_from_url() instead of begin_analyze_document() in the layout model code.
Tags: Azure, cloud computing, docs, OCR
Projects developed in volunteering context
The EMPIMO Digital Library (GMN) is a collection of digital books created in August 2018 by the Moroccan Team for Preparing International Mathematical Olympiads (EMPIMO). All documents available in this library originate from the EMPIMO Facebook community; I have simply gathered and organized them. This non-profit educational library is freely accessible to everyone under a Creative Commons CC BY-NC-SA license, which allows sharing and adapting the materials for non-commercial purposes with proper attribution and under the same license terms.
The library was developed by me during my high school years with basic HTML/CSS/JS and hosted on GitHub and has had more than 3100 visitors since April 2019.
Tags: Mathematics, Web Development, HTML, CSS, JavaScript, GitHub Webpages