<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CV |</title><link>https://ahmed-mohsen-7.github.io/tags/cv/</link><atom:link href="https://ahmed-mohsen-7.github.io/tags/cv/index.xml" rel="self" type="application/rss+xml"/><description>CV</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Thu, 01 Dec 2022 00:00:00 +0000</lastBuildDate><image><url>https://ahmed-mohsen-7.github.io/media/icon_hu_ff4c617481c8304a.png</url><title>CV</title><link>https://ahmed-mohsen-7.github.io/tags/cv/</link></image><item><title>Robot Navigation using Reinforcement Learning</title><link>https://ahmed-mohsen-7.github.io/projects/rl_navigation/</link><pubDate>Thu, 01 Dec 2022 00:00:00 +0000</pubDate><guid>https://ahmed-mohsen-7.github.io/projects/rl_navigation/</guid><description>&lt;p&gt;Built a custom OpenAI Gym environment inspired by Turtlebot3 to train robot navigation policies from scratch, and implemented and compared three reinforcement learning algorithms (DQN, DDPG, and TD3) across both discrete and continuous action spaces.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Key Contributions:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Custom Environment Design&lt;/strong&gt;: Built a Gym-compatible navigation environment (&lt;code&gt;world.py&lt;/code&gt;) from scratch, including a map-to-grayscale conversion pipeline (via OpenCV) to distinguish navigable space from walls and obstacles, and registered it as a proper Gym environment (&lt;code&gt;World-v1&lt;/code&gt; with obstacles, &lt;code&gt;World-v2&lt;/code&gt; without).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reward Shaping&lt;/strong&gt;: Designed a two-component reward function combining a distance reward (inverse of Euclidean distance to target) and a bearing reward (alignment between robot heading and target direction), balancing goal-seeking behavior with orientation control.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Algorithm Implementation &amp;amp; Comparison&lt;/strong&gt;: Implemented and trained three RL algorithms, DQN (discrete action space) and DDPG/TD3 (continuous action space, controlling linear and angular velocity), to solve the navigation task under identical environment conditions.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Environment Details:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Observation space: robot pose (x, y, θ) and target position (x, y)&lt;/li&gt;
&lt;li&gt;Action space: linear velocity (v) and angular velocity (w), continuous for DDPG/TD3&lt;/li&gt;
&lt;li&gt;Randomized start/target poses per episode, constrained to avoid walls, obstacles, and overlapping start/goal positions&lt;/li&gt;
&lt;li&gt;Motion modeled via an integration approximation for pose updates given (v, w)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Methods Used:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Deep Q-Network (DQN) for discrete action-space navigation&lt;/li&gt;
&lt;li&gt;Deep Deterministic Policy Gradient (DDPG) and Twin Delayed DDPG (TD3) for continuous action-space navigation&lt;/li&gt;
&lt;li&gt;Custom Gym environment with distance + bearing reward shaping&lt;/li&gt;
&lt;li&gt;Computer vision-based map preprocessing (grayscale conversion for navigable-space detection)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Software Used:&lt;/strong&gt;
Python, OpenAI Gym, Stable-Baselines3, OpenCV, Pillow&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Results (validated in simulation):&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This video shows the robot navigatin to a random target location, trained using RL policy.&lt;/p&gt;
&lt;div style="display: flex; justify-content: flex-end; margin-top: 2rem;"&gt;
&lt;iframe src="https://drive.google.com/file/d/1jKqXJ_4NQIm32j_P0myAXHUWCRvsIBO9/preview" width="640" height="480" style="max-width: 100%; border: none; border-radius: 8px;"&gt;&lt;/iframe&gt;
&lt;/div&gt;</description></item><item><title>Human Iris Detection</title><link>https://ahmed-mohsen-7.github.io/projects/human_iris/</link><pubDate>Wed, 01 Dec 2021 00:00:00 +0000</pubDate><guid>https://ahmed-mohsen-7.github.io/projects/human_iris/</guid><description>&lt;p&gt;Implemented a CNN-based pupil localization pipeline in Python, reproducing the methodology from the paper &amp;ldquo;Accurate Eye Pupil Localization Using Heterogeneous CNN Models&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Key Contributions:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Model Implementation&lt;/strong&gt;: Reproduced a heterogeneous CNN architecture for pupil detection, adapting the paper&amp;rsquo;s design to a practical Python/PyTorch workflow.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data Pipeline&lt;/strong&gt;: Built preprocessing and augmentation routines to prepare eye image datasets for training and evaluation.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Evaluation&lt;/strong&gt;: Tracked train/test loss across training and validated predicted vs. ground-truth iris centers on held-out test images.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Methods Used:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Dilation and Gaussian blurring for target (label) preprocessing&lt;/li&gt;
&lt;li&gt;Convolutional autoencoder as the model architecture&lt;/li&gt;
&lt;li&gt;Grid search across optimizers, loss functions, and activations to find the best combination:
&lt;ul&gt;
&lt;li&gt;optimizers: [SGD, Adam, Adamax, RMSprop]&lt;/li&gt;
&lt;li&gt;loss functions: [MSE, MAE]&lt;/li&gt;
&lt;li&gt;activations: [Tanh, ReLU, Sigmoid]&lt;/li&gt;
&lt;li&gt;best combination found: Adam + MSE + Tanh&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Software Used:&lt;/strong&gt;
OpenCV, PyTorch, NumPy, Pandas, scikit-learn&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sample Result:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;These images show the heat map and predections generated by the model.&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Predicted vs ground-truth iris center on test images"
srcset="https://ahmed-mohsen-7.github.io/projects/human_iris/Model_predictions_hu_c92b65136259d487.webp 167w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://ahmed-mohsen-7.github.io/projects/human_iris/Model_predictions_hu_c92b65136259d487.webp"
width="167"
height="753"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;</description></item></channel></rss>