Machine learning · Applied AI · On-device systems

Ahmed Hussein

I build machine learning that works where people use it: on-device models, agents that learn from behaviour, and tools built for daily use.

Final-year MSc engineering student in data technology at Jönköping University, graduating 2027. I take projects from first idea to a running, measured system, and I report the results as they are.

Portrait of Ahmed Hussein
Now: lead developer, Dramatizer 2
  • 0.78validation accuracy for a behavioural-learning game agent
  • 10 sof audio is enough to clone a voice in my Discord bot
  • 2 daysfrom blank repo to a presented, working agent
  • 18 hof GPU training in a reported negative RL result

01 Project spotlight

Dramatizer

Paralinguistic optimization and customization for needs

2026 – present 4-person team Lead developer

Speech carries more than words. Dramatizer works on the rest: how a line is delivered.

It optimizes the paralinguistic side of speech (emphasis, pauses, pace and non-verbal sounds) and customizes the delivery to what a listener or a use case needs, while keeping the words and the speaker's voice intact.

The project is in active development, so the details are kept private for now. I'm happy to walk through it in a conversation.

  • ParalinguisticsEmphasis, pauses, pace and vocal sounds
  • OptimizationFinds a better delivery automatically
  • CustomizationShaped to the listener's needs

02 Related research · reinforcement learning

Can RL make a voice clone pass as human?

Adversarial voice cloning Course project, 2026 2-person team

I framed the robustness of four anti-spoofing detectors (AASIST, RawNet2 and others) as a constrained RL problem. An agent applies one bounded edit to the Mel spectrogram inside the synthesiser, while speaker similarity and word error rate must stay within limits.

Two designs, PPO-Lagrangian and SAC, were each trained for 400 iterations (18 GPU hours). The result is negative, and I report it plainly: both made clones easier to detect and sound worse to people. A gradient-based baseline on the same intervention point succeeded on 13 to 15 of 15 items.

A paired listening test (30 items per condition) also showed that detector scores did not track how human a clip sounded within any condition (r from −0.12 to +0.31, none significant).

  • PyTorch
  • PPO-Lagrangian
  • SAC
  • CosyVoice 2
  • AASIST
  • RawNet2
  • Whisper
  • TorchAudio-SQUIM
Detector score, human rating and audio quality per arm
ArmDetector
soft-min ↑
MOS
human ↑
PESQ
quality ↑
Unedited clone0.1853.973.47
PPO-Lagrangian0.0852.532.82
SAC + gradient hint0.1353.203.29
Chart: change in MOS per item against the same clip unedited. Design A mean −1.43, Design B mean −0.77; both significantly worse.
Each edited clip rated against the same clip unedited. Both RL designs lose listener score (p < 0.001).

03 Selected projects

From two-day prototypes to client work

Agents · Games2025

The Assistant

Behavioural-learning game agent, built in 2 days at the AI and Games summer school

  • Trained an agent to reproduce a player's own way of completing tasks: 0.78 validation accuracy from text and game state.
  • Removed the need for hand-labelled data by generating training gameplay with Gemma and an A* planner.
  • Built the full loop, from capturing player actions to the agent mimicking them in game, and presented it to the organisers.

Python · Gemma 4n E2B · A* search

On-device LLM · Vision2026

D&D AI Game Master Assistant

An on-device LLM that plays characters at the tabletop

  • Plays assigned characters entirely on device, so campaign data never leaves the table.
  • A vision interface reads battle maps for grid layout, terrain and token positions, so tactics come from the board itself.
  • Bridges a JavaScript map-capture front end to a Python inference backend.

Python · JavaScript · Gemma 4n E2B on Ollama · multimodal vision

Voice2026

Ash_bot

Voice cloning Discord bot, used to read books aloud

  • Clones a voice from a 10-second clip, with style control per phrase, and runs several voices at once.
  • Benchmarked every voice on real-time factor, word error rate (Whisper) and speaker similarity.

Python · CosyVoice 2 · Whisper · discord.py · NumPy · FFmpeg

Data · Client2025 – 2026

Customer Segmentation & Ensemble ML

Demand forecasting for a B2B client

  • Outperformed a single global model by splitting customers into stable and unstable groups with Kaplan-Meier survival analysis and ensembling a model per group.
  • Delivered concrete targeting recommendations and an IEEE-format report to the client.

Python · scikit-learn · Kaplan-Meier · Pandas

Knowledge graphs · LLM2025 – 2026

O-Star

Ontology and LLM question answering about the night sky

  • Designed the ontology schema and connected SPARQL queries to an LLM backend, answering natural-language questions about astronomical observations.
  • Delivered in a five-person team.

Python · SPARQL · Clingo · Llama 3 on Groq

Hex-mapper atlas view: a world map split into numbered regions, each made of hex tiles
Tools · Games2025 – 2026

Hex-mapper

A browser suite for building hex maps

  • A map editor, a creator for reusable multi-hex pieces, and an atlas that splits a world map into clickable regions, each with its own map.
  • Cuts the time to lay out terrain and tiles for games and tactical planning. A Godot port is in progress.

JavaScript · HTML Canvas · Godot

From the workshop

Smaller tools I built for myself and my tabletop group, most of them running locally on one GPU.

A generated hex tile of a birch forest in a hand-drawn style

Generative image · LoRA

Hexmaker

Trained an SDXL style LoRA on 239 hex tiles (about two hours on an RTX 3080), so a prompt like “birch forest, lush” becomes a tile that matches the pack, cut to the hex and exported at 72, 150 and 300 DPI.

Python · SDXL · kohya sd-scripts · ComfyUI

Agents · RL workbench

Board-game agent bench

A test bench for agents in tic-tac-toe, four in a row and luffarschack: one m,n,k engine, an arena that swaps sides each game, tournaments and a log of every move.

Python · PyTorch (CUDA) · Tkinter

Tools · Knowledge

Hexgate

An Obsidian-style notebook for battle maps: pins, areas and linked Markdown notes, kept beside the map in a sidecar file so the map itself is never changed.

JavaScript · Python (standard library)

Computer vision · Tools

Asset Extractor

Slices icon packs and sprite sheets into separate, named images using multiple grids and free boxes, with GPU background removal (rembg) or colour keying.

Python · Flask · rembg

Tools · Data export

Characterizer

Builds character tokens and sheets in the browser and exports them as Foundry VTT actors, writing about 70 fields into a template or a new actor.

JavaScript · Foundry VTT (dnd5e)

04 Experience & education

Background

  1. Mar – Jun 2025

    Data & Digitalization Consultant Intern

    Garo AB, Jönköping

    • Replaced a recurring manual workflow with a data pipeline that processes and delivers consumer-facing product content end to end.
    • Developed web display features and generative solutions that communicated product benefits more clearly.
  2. 2025

    International Summer School on AI and Games

    Selected participant, scholarship

    • Intensive programme on game agents, learning from player behaviour, and applied ML for interactive systems. The Assistant was built here.
  3. 2021 – 2027

    MSc Engineering, Data Technology (Civilingenjör)

    Jönköping University (JTH)

    • Machine Learning, Deep Learning, AI & Knowledge Representation, Optimization Algorithms, Control Engineering & Transform Theory, Digital Systems (VHDL), Databases.

05 Technical skills

Toolkit

Programming
Python, C#, C/C++, Java, JavaScript, SQL (MySQL), VHDL, SPARQL, Clingo
ML & data
PyTorch, scikit-learn, Pandas, NumPy, CUDA, MLflow, OR-Tools, Kaplan-Meier survival analysis
Platforms
Ollama, Groq API, Gemma and Llama 3 models, Flask, CosyVoice 2 and 3, Whisper, Git
Focus areas
Machine learning, deep learning, reinforcement learning, NLP, knowledge representation, optimization
Languages
Swedish (fluent), English (fluent), Arabic (native)

06 Contact

Looking for ML and applied-AI roles from 2027.

I'm also happy to talk about thesis collaborations, internships or an interesting problem before then.