I'm a senior AI engineer and researcher in Ontario, Canada. I've built AI for cybersecurity at Trend Micro and machine learning for cancer research at Medicia Research. I created PyGAD, an open-source genetic algorithm library, and founded Vilvik. I've also written six books and more than 90 tutorials on machine learning, computer vision and Python, and I build mobile apps.
Vilvik is my company, an early-stage Canadian startup. Its online application runs evolutionary optimization in the cloud, so you can optimize a decision, tune a model, or evolve a game agent from the browser, the REST API, or Python, without setting anything up. Vilvik also offers AI consulting.
pip install vilvikWebsite · Python SDK · GitHub · LinkedIn · X
PyGAD is the open-source genetic algorithm library behind it all. It handles single and multi-objective problems and can train Keras and PyTorch models.
Website (pygad.com) · Documentation · GitHub · PyPI
| Project | What it does | Stars |
|---|---|---|
| NumPyCNN | Convolutional neural networks built from scratch with NumPy | |
| NeuralGenetic | Train neural networks for classification and regression with the genetic algorithm | |
| Mask-RCNN-TF2 | Port of Matterport's Mask R-CNN object detection and segmentation to TensorFlow 2 | |
| NumPyANN | Artificial neural networks implemented with NumPy | |
| TorchGA · KerasGA | Train PyTorch and Keras models with PyGAD | |
| FederatedLearning | A federated learning demo in Python using sockets | |
| CoinTex | A cross-platform game written in Python with Kivy, on Google Play | |
| ArithmeticEncodingPython | Data compression with arithmetic encoding in Python | |
| GARI | Reproduce an image with the genetic algorithm by evolving pixel values | |
| CIFAR10CNNFlask | A CNN image classifier served over HTTP with Flask | |
| AndroidFlask | Upload images from an Android app to a Python Flask server |
![]() |
![]() |
![]() |
![]() |
| Transformers and Large Language Models A Hands-On Guide to RAG and Agentic AI Apress, 2026 Amazon · Springer · Code |
Introduction to Deep Learning and Neural Networks with Python A Practical Guide Academic Press, 2020 Amazon · Code |
Building Android Apps in Python Using Kivy with Android Studio With Pyjnius, Plyer, and Buildozer Apress, 2019 Amazon · Code |
Practical Computer Vision Applications Using Deep Learning with CNNs With Examples in Python Using TensorFlow and Kivy Apress, 2018 Amazon · Code |
All my books are on my Amazon author page.
More books: Do Machine Learning Yourself with Python (Leanpub, 2019) · TensorFlow: A Guide to Build Artificial Neural Networks Using Python (LAP Lambert, 2017)
My work has more than 1,000 citations on Google Scholar. Selected papers:
- PyGAD: An Intuitive Genetic Algorithm Python Library. Multimedia Tools and Applications, vol. 83, pp. 58029-58042, 2024. (arXiv)
- An Adaptive High-Fidelity Image Compression Framework for Internet of Vehicles, with Amiya Nayak. IEEE ICC, 2022.
- Crowd Density Estimation Using Multiple Features Categories and Multiple Regression Models, with Ahmed Hamad and Khalid Amin. IEEE ICCES, 2017.
All my papers are on Google Scholar and ResearchGate.
I've published more than 90 tutorials on machine learning, deep learning and Python, including three articles for Neptune.ai, and some have been translated into Chinese, Turkish, Russian and Hungarian.
![]() Takmila Quran memorization by filling in the missing word Google Play · App Store |
![]() Mawj Quran Radio Live Quran radio, recitations and archives Google Play · App Store |
![]() SwellFire Lead a growing squad through gates to boss battles Google Play · App Store |
![]() CoinTex 60 arcade levels across 6 worlds, built with Python Google Play · App Store · Code |
![]() EasyUpload Send files from Android to a desktop PC Google Play |
PyGAD and my other open-source projects are free. If they help you, you can support them here:
In Canada, you can also send an Interac e-Transfer to ahmed.f.gad@gmail.com.
















