Skip to content

Seeking a 6-month PFE internship · AI / Machine Learning / Data Science · from February

Mohamed Aymane Badia

Year 5 · AI & Data Science Engineering Student · EMSI

I build end-to-end AI projects, from preparing data to integrating models into applications.

100 %
Valid JSON outputs · after fine-tuning · 60/60
87 %
Correct fields · public CORD · 124/143
~0.94
Field recall · clean scans · 180 observations/model
See the evaluation method
Portrait of Mohamed Aymane Badia

01 / About

From experimentation to application.

I am a fifth-year engineering student in Artificial Intelligence & Data Science at EMSI, particularly interested in Machine Learning, Deep Learning and NLP.

As part of my end-of-year project (PFA, July – September 2026) at Lama Healthcare, I contributed to rebuilding a credentialing platform and ran document-extraction experiments, including LoRA fine-tuning. This PFA is distinct from the 6-month final-year internship (PFE) I am seeking.

I learn by building. My projects go beyond notebooks: I work from data preparation through training and evaluation to integration into an application — from Streamlit demos and Docker deployments to web apps.

My interests include NLP/LLMs, Computer Vision, Document AI and model deployment.

Languages

  • Arabic· Native
  • French· Bilingual
  • English· B2
Focus
ML · Deep Learning · NLP
Approach
Data → Model → Product
End-of-year project
Lama Healthcare · PFA · Jul – Sep 2026
Education
Year 5 · AI & Data Science · EMSI

What I’m looking for

PFE internship · 6 mois

Applied AI assignments, experimentation and putting models into production.

  • LLM / NLP
  • Computer Vision
  • Document AI
  • MLOps

Marrakech, Morocco · Starting : February · Work arrangement : On-site or remote

02 / Projects

Selected projects

Two case studies document an industry project and a personal project, followed by selected work in AI and software engineering.

Industry project · PFA

Private code

AI-powered credentialing platform and document extraction

Lama Healthcare — Practice One · PFA (July – September 2026) · team of 3

Contributed to rebuilding a credentialing platform for US medical practices, with an AI document-analysis pipeline under human review.

Problem

Multiple credentialing requirements and manual document entry.

Approach

Platform rebuild and Document AI pipeline with human validation.

Outcome

Extraction evaluated on public CORD; human review before saving.

Architecture

Architecture flow: AI-powered credentialing platform and document extractionFront end → API → Data → Workflow → AI extraction → Operations01Front end02API03Data04Workflow05AI extraction06Operations
Architecture flow: AI-powered credentialing platform and document extraction

The platform was rebuilt with Next.js and Supabase, practice-level data isolation, a 12-state credentialing workflow enforced by the database, and an audit trail. The document pipeline extracts structured fields and OCR evidence, verifies them, then requires human approval before saving.

Read the project details

Problem

Healthcare professionals must be credentialed with each insurer, while licenses, certifications and attestations expire. Tracking renewals and manually entering information from scans or photos takes time and can lead to errors.

Approach

The platform was rebuilt with Next.js and Supabase, practice-level data isolation, a 12-state credentialing workflow enforced by the database, and an audit trail. The document pipeline extracts structured fields and OCR evidence, verifies them, then requires human approval before saving.

My contribution

  • Owned the front end: design system, reusable components and portal interfaces
  • Contributed to the dashboard, provider records, pipeline, alerts and audit grid
  • Built the public document-upload page with a secure link and one-time code
  • Compared four vision-language models on 180 observations each
  • Fine-tuned Qwen3-1.7B with LoRA on a T4 GPU without using health data

Architecture

  1. 01

    Front end

    Next.js App Router, strict TypeScript, Tailwind and shared Zod validation

  2. 02

    API

    Each route: authentication → validation (Zod) → practice scope → audit log

  3. 03

    Data

    Supabase PostgreSQL with Row-Level Security, private storage and short-lived signed URLs

  4. 04

    Workflow

    12-state credentialing cycle per provider and insurer, with SQL-enforced transitions

  5. 05

    AI extraction

    Specialized model → JSON and OCR evidence → verification model → human review

  6. 06

    Operations

    Vercel, Upstash Redis rate limiting, scheduled expiry alerts, Resend and Twilio

Technologies

  • Next.js
  • TypeScript
  • Tailwind CSS
  • Supabase
  • PostgreSQL
  • Zod
  • Hugging Face Transformers
  • PEFT / LoRA
  • TRL

Extraction results were measured on the public CORD dataset, never on real health documents. The dashboard screenshot is withheld pending publication permission.

Personal project

TrendRadar

Real-time trend detection and social-media virality prediction.

Problem

Spot emerging topics early in a noisy bilingual feed.

Approach

Bilingual NLP, spike detection and virality estimation.

Outcome

Streamlit dashboard; no quantitative result is published.

Architecture

Architecture flow: TrendRadarCollection → Preprocessing → Models → Detection → Prediction → Visualization01Collection02Preprocessing03Models04Detection05Prediction06Visualization
Architecture flow: TrendRadar

An end-to-end ML application that collects Reddit posts, processes them with a French/English NLP pipeline, groups them by topic, detects activity spikes and estimates post virality in an interactive dashboard.

Read the project details

Problem

Spotting emerging topics early in a noisy, bilingual feed is difficult: keyword counts miss context, and trends often become obvious only after their peak.

Approach

An end-to-end ML application that collects Reddit posts, processes them with a French/English NLP pipeline, groups them by topic, detects activity spikes and estimates post virality in an interactive dashboard.

My contribution

  • Designed the full data → models → dashboard pipeline (~3,300 lines of Python across 5 modules)
  • Built a bilingual NLP pipeline with spaCy, NLTK and language detection
  • Implemented spike detection and fixed unstable scores and duplicate alerts
  • Engineered virality features: early velocity, engagement, and author/subreddit diversity
  • Built the multi-tab Streamlit interface and admin dashboard

Architecture

  1. 01

    Collection

    Reddit API client with retries, streaming and Parquet cache

  2. 02

    Preprocessing

    Language detection, spaCy lemmatization and NER (FR/EN), TF-IDF

  3. 03

    Models

    KMeans topic clustering and Random Forest classification

  4. 04

    Detection

    Sliding-window spike score to surface emerging terms and hashtags

  5. 05

    Prediction

    Gradient-boosted virality model (XGBoost / LightGBM)

  6. 06

    Visualization

    Streamlit dashboard: clusters, spikes, virality and feature importance

Technologies

  • Python
  • Scikit-learn
  • spaCy
  • NLTK
  • Pandas
  • Plotly
  • Streamlit
  • XGBoost / LightGBM

Deep Learning · NLP

Image captioning — CNN vs attention vs Transformer

PyTorch system comparing three decoder architectures.

  • PyTorch
  • ResNet50
  • LSTM
  • Attention
  • +2 additional technologies
Project details

Problem

Which decoder architecture produces the best image descriptions? A fair comparison requires the same encoder, data and evaluation.

Approach

A frozen ResNet50 encoder feeds three decoders — LSTM, Bahdanau attention and Transformer — sharing the same Flickr8k training pipeline, BLEU-1 to BLEU-4 evaluation, beam search and attention visualizations. The pipeline is verified end to end; full Flickr8k training results are not published yet.

  • PyTorch
  • ResNet50
  • LSTM
  • Attention
  • Transformer
  • Streamlit

BLEU-1 to BLEU-4 scores for the three decoders and sample captions have not been published here.

Deep Learning · Computer Vision

CIFAR-10 image classification with a CNN

GPU-trained convolutional network served in a web demo.

Airplane class prediction in the Streamlit app
Cat class prediction in the Streamlit app
Dog class prediction in the Streamlit app
  • PyTorch
  • CUDA
  • CNN
  • Streamlit
  • +1 additional technologies
Project details

Problem

Classify images into 10 categories with a compact model trained on 32×32 images.

Approach

A 3-block CNN (BatchNorm, Dropout, approximately 500,000 parameters), trained with PyTorch on a Tesla T4 GPU and served in a containerized Streamlit app (Docker Compose). A MobileNetV2 filter rejects out-of-domain images, and uncertain predictions (confidence < 0.80 or high entropy) are rejected.

Test-set accuracy
~78%
Parameters
~500k
  • PyTorch
  • CUDA
  • CNN
  • Streamlit
  • Docker

NLP · Deep Learning

News category classification

BiLSTM compared with a TF-IDF + SVM baseline on 42 imbalanced categories.

  • TensorFlow / Keras
  • BiLSTM
  • TF-IDF
  • LinearSVC
  • +2 additional technologies
Project details

Problem

Automatically route articles into 42 overlapping categories (for example, Arts and Arts & Culture).

Approach

An NLP pipeline (cleaning, stop words, tokenization, padding) feeding an Embedding + BiLSTM network with softened class weights and early stopping, compared with a TF-IDF (unigrams and bigrams) + linear SVM baseline on the same split.

Top-1 accuracy · TF-IDF + SVM
63.5%
Top-3 accuracy · TF-IDF + SVM
83.3%
Top-1 accuracy · BiLSTM
55.4%

Evaluated on 41,889 held-out articles (42 categories). Fully balanced class weights dropped POLITICS recall to 6% (36.7% accuracy); softening them brought it back to 70%.

  • TensorFlow / Keras
  • BiLSTM
  • TF-IDF
  • LinearSVC
  • NLTK
  • Scikit-learn

Full-stack · AI / ML

Real-time flight tracker & AI travel assistant

React application with flight data and a conversational assistant.

  • React
  • JavaScript
  • AviationStack API
  • Flask
  • +2 additional technologies
Project details

Problem

Travelers need to check departures and discover destination ideas in one place.

Approach

React interface connected to the AviationStack API (search by flight number or airline, status filter, sorting and pagination), plus a Flask server connecting a conversational assistant to Google Gemini with a dedicated system prompt and per-session history.

  • React
  • JavaScript
  • AviationStack API
  • Flask
  • Gemini API
  • REST APIs

AI / ML · NLP

Invoice Intelligence AI — invoice extraction (OCR + LLM)

OCR plus a small LoRA-fine-tuned LLM that turns an invoice into structured JSON.

  • Transformers
  • PEFT / LoRA
  • PyTorch
  • Tesseract
  • +4 additional technologies
Project details

Problem

Manually entering invoice or receipt details (vendor, date, line items, amounts) is slow and error-prone, and OCR alone only returns unstructured raw text.

Approach

Photo or PDF → Tesseract OCR (PyMuPDF for PDFs) → Qwen2.5-0.5B-Instruct fine-tuned with LoRA (8.8M trainable parameters out of 503M) → structured JSON → arithmetic repair and Pydantic validation → Streamlit demo.

Field accuracy · synthetic test set
0.99
Base model, no fine-tuning
0.54

Measured on 40 held-out synthetic documents. Generalisation to real receipts is still limited; real-ticket tests are documented in the repository.

  • Transformers
  • PEFT / LoRA
  • PyTorch
  • Tesseract
  • PyMuPDF
  • Pydantic
  • Streamlit
  • pytest

AI / ML

Smart traffic lights — Q-learning

Reinforcement-learning agent controlling the lights of a simulated intersection.

  • Python
  • NumPy
  • Pandas
  • Streamlit
  • +1 additional technologies
Project details

Problem

Fixed-time traffic lights do not adapt to traffic: queues grow as soon as one road is busier than the other.

Approach

Tabular Q-learning implemented from scratch: state = (north-south queue, east-west queue, light phase), 32 states, keep / switch actions, reward = −(waiting cars), Poisson arrivals, 1,000 episodes, comparison with two baseline strategies and a Streamlit dashboard.

Queue vs fixed-time lights
−32.4%
Queue vs greedy policy
−16.5%

Simulation: 1,000 episodes of 100 steps, average number of waiting cars per step.

  • Python
  • NumPy
  • Pandas
  • Streamlit
  • Docker

03 / Skills

Technical skills

A selection of skills used in my projects; other tools I have used are listed below.

Core skills

AI & Machine LearningModelling, training and evaluation
  • TensorFlow / Keras
  • CNN
  • LSTM / BiLSTM
  • Vision-Language Models
  • Transfer Learning
  • Clustering (KMeans)
  • Ensemble models (RF, Boosting)
NLP & DataPreparation, analysis and visualization
  • spaCy
  • NLTK
  • TF-IDF
  • Pandas
  • NumPy
  • Plotly
  • Matplotlib
  • Data Visualization
DevelopmentInterfaces, APIs and integration
  • React
  • JavaScript
  • Tailwind CSS
  • Supabase
  • PostgreSQL
  • Flask
  • REST APIs
ToolsWorking environment
  • Git
  • GitHub
  • Vercel
  • Kaggle
  • Google Colab
  • CUDA (entraînement GPU)
  • Postman
  • Jupyter

04 / Experience

Experience & education

  1. Experience

    End-of-year project internship (PFA) · Front end & AI

    July – September 2026

    Lama Healthcare — Practice One · Las Vegas, Nevada, USA

    As part of a three-person team, contributed to rebuilding a credentialing platform for US medical practices and ran document-extraction experiments.

    • Owned the front end: design system, reusable components and portal screens, including an interface redesign
    • Delivered the dashboard, provider records, credentialing workflow, alerts, audit and a public document-upload page
    • Compared vision-language models on clean scans and fine-tuned Qwen3-1.7B with LoRA on a T4 GPU
    • Contributed to role-based access checks, data masking and audited access
    • Next.js
    • TypeScript
    • Tailwind CSS
    • Supabase
    • PostgreSQL
    • Zod
    • Transformers
    • PEFT / LoRA
    Read the detailed case study
  2. Education

    Engineering program · Artificial Intelligence & Data Science · Year 5

    EMSI — Moroccan School of Engineering Sciences

    2022 – 2027 · Year 5 in 2026–2027

    Year-4 end-of-year project (PFA) at Lama Healthcare, July – September 2026.

05 / GitHub

Repositories & projects

Explore my public GitHub profile and repositories.

Mohamed Aymane Badia

@BADIAMOHAMEDAYMANE

All repositories

06 / Contact

Let’s talk

I am seeking a six-month PFE internship in AI, Machine Learning or Data Science.

To discuss an internship or a project, reach me by email or on LinkedIn.

Available from February

Location
Marrakech, Morocco
Work arrangement
On-site or remote