<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Amt Al-Rhman Saleh Hormos</title>
    <description>The latest articles on DEV Community by Amt Al-Rhman Saleh Hormos (@amoota_saleh_ad6fcc0ffdcc).</description>
    <link>https://dev.to/amoota_saleh_ad6fcc0ffdcc</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4165428%2Fd18cd99c-92d1-497d-b14e-f82e061da51d.jpg</url>
      <title>DEV Community: Amt Al-Rhman Saleh Hormos</title>
      <link>https://dev.to/amoota_saleh_ad6fcc0ffdcc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amoota_saleh_ad6fcc0ffdcc"/>
    <language>en</language>
    <item>
      <title>I Built an Offline AI That Tells You What to Plant in One of the Hottest Climates on Earth 🌱</title>
      <dc:creator>Amt Al-Rhman Saleh Hormos</dc:creator>
      <pubDate>Fri, 09 Oct 2026 14:39:26 +0000</pubDate>
      <link>https://dev.to/amoota_saleh_ad6fcc0ffdcc/i-built-an-offline-ai-that-tells-you-what-to-plant-in-one-of-the-hottest-climates-on-earth-4np</link>
      <guid>https://dev.to/amoota_saleh_ad6fcc0ffdcc/i-built-an-offline-ai-that-tells-you-what-to-plant-in-one-of-the-hottest-climates-on-earth-4np</guid>
      <description>&lt;p&gt;I Built an Offline AI That Tells You What to Plant in One of the Hottest Climates on Earth 🌱&lt;/p&gt;

&lt;p&gt;This is my submission for the &lt;strong&gt;Hacktoberfest 2026 Open-Source AI Challenge — Week 1: Touch Grass&lt;/strong&gt; 🌿&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem: "touching grass" is hard when the grass is 40°C
&lt;/h2&gt;

&lt;p&gt;I live in &lt;strong&gt;Hadhramaut, Yemen&lt;/strong&gt;, where summer temperatures routinely cross 40°C and gardening advice written for mild climates just… dies. Literally. I've watched well-meaning "plant tomatoes in spring!" tips kill more seedlings than they've saved, because &lt;em&gt;here&lt;/em&gt;, the right question isn't just &lt;em&gt;what&lt;/em&gt; to plant — it's &lt;strong&gt;what can survive my roof, my sun, my water, and my skill level&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;So for this week's theme — &lt;em&gt;build something with open-source AI that gets people off the screen and into the world&lt;/em&gt; — I built the &lt;strong&gt;Hadhramaut Garden Assistant&lt;/strong&gt;: a Python tool that asks you five quick questions and recommends what to plant, powered by a real machine-learning model trained on plants that actually tolerate heat.&lt;/p&gt;

&lt;p&gt;The screen is the shortest part of the experience. Five questions, one answer, then you go outside and plant mint on your roof. 🌿&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;A bilingual (Arabic/English) command-line assistant that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Asks about your conditions&lt;/strong&gt; — planting month, daily sun hours, how often you can water, available space (a pot, a small bed, or open land), and your gardening experience level.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runs a trained Decision Tree classifier&lt;/strong&gt; (from the open-source &lt;code&gt;scikit-learn&lt;/code&gt; library) to pick the best plant for you, with a confidence score and two alternatives.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gives practical advice&lt;/strong&gt; — harvest time in days and a tip per plant (e.g. mint: &lt;em&gt;"plant it in its own pot — its roots will invade everything around it!"&lt;/em&gt;).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The dataset covers &lt;strong&gt;18 heat-tolerant plants&lt;/strong&gt; — tomato, cucumber, okra, eggplant, pepper, mint, basil, parsley, coriander, radish, carrot, onion, garlic, lettuce, spinach, fenugreek, moringa, and aloe vera — each described by suitable planting months, sun, water, space, and difficulty.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who it's for
&lt;/h2&gt;

&lt;p&gt;Absolute beginners in hot climates — especially across the Arab world and the Gulf — who have a balcony, a rooftop, or a small plot and want to grow food but don't know where to start.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works (the open-source AI part)
&lt;/h2&gt;

&lt;p&gt;No cloud API. No API keys. No internet required after installation — everything runs on your own laptop:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Rule-based dataset generation:&lt;/strong&gt; suitability rules are expanded into &lt;strong&gt;972 labeled training examples&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Training:&lt;/strong&gt; a &lt;code&gt;DecisionTreeClassifier(random_state=42)&lt;/code&gt; learns the suitability patterns from those examples.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prediction:&lt;/strong&gt; your five answers go through the model, which returns the best pick with a confidence score, plus the next two suitable alternatives.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why open innovation matters here
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It runs with no internet.&lt;/strong&gt; Where I live, connectivity and power aren't things you can take for granted. An offline, open model keeps working when a cloud service would be a loading spinner.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It costs nothing.&lt;/strong&gt; scikit-learn is free and open source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's yours to change.&lt;/strong&gt; Don't like my 18 plants? Add your own, retrain in seconds, done.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your data stays yours.&lt;/strong&gt; Your location, your habits, your garden — none of it leaves your laptop.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it yourself
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/amootasa/garden-assistant
cd garden-assistant
pip install scikit-learn
python3 garden_assistant.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F31i4es3it63c10l068wn.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F31i4es3it63c10l068wn.jpg" alt="Garden Assistant running on Kali Linux" width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  I took it outside 😄
&lt;/h2&gt;

&lt;p&gt;I ran it on my Kali Linux machine — cloned the repo, installed scikit-learn, and answered the five questions with my real conditions. It recommended &lt;strong&gt;mint&lt;/strong&gt; with 100% confidence, with basil and radish as backups. Honestly, mint was the best choice for October — perfect for someone who loves mint and uses it all the time in Hadhramaut — and now I have a pot of mint planted at the entrance of my house. 💚🌿&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;How decision trees actually learn: turning domain knowledge into a generated dataset and letting the model discover the patterns.&lt;/li&gt;
&lt;li&gt;That input validation is a security habit, not just UX — every input is checked, because I'm an information security student and I refuse to ship an &lt;code&gt;eval()&lt;/code&gt; on user input. 😄&lt;/li&gt;
&lt;li&gt;Writing the whole thing bilingual taught me that good developer UX crosses languages.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;More plants (dates and sidr trees are very Hadhramaut 🌴)&lt;/li&gt;
&lt;li&gt;A simple phone-friendly version for gardeners who don't use laptops&lt;/li&gt;
&lt;li&gt;Letting users save their garden and track harvest dates&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Links:&lt;/strong&gt; &lt;a href="https://github.com/amootasa/garden-assistant" rel="noopener noreferrer"&gt;GitHub repo&lt;/a&gt; · Built with &lt;a href="https://scikit-learn.org" rel="noopener noreferrer"&gt;scikit-learn&lt;/a&gt; (open source) · Submitted for #hf26challenge Week 1: Touch Grass&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If you're a beginner gardener in a hot climate — try it, plant something, and tell me how it went. That's the whole point: the screen should be the shortest part. 🌱&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>hacktoberfest</category>
      <category>python</category>
    </item>
  </channel>
</rss>
