-
Notifications
You must be signed in to change notification settings - Fork 3
/
app1_2.py
148 lines (136 loc) Β· 8.17 KB
/
app1_2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
import streamlit as st
import matplotlib.pyplot as plt
from PIL import Image
import numpy as np
import base64
def app():
st.title("π± Omdena Algeria Chapter π±")
st.write("\n")
st.write("\n")
st.markdown("Collaborate, Learn, Build, Grow",)
st.subheader("Part:2 πΎBuilding an Intelligent Control System for Greenhouses")
st.write("\n")
st.write("\n")
st.write("\n")
st.write("\n")
"""### gif from local file"""
file_ = open("images/part2.gif", "rb")
contents = file_.read()
data_url = base64.b64encode(contents).decode("utf-8")
file_.close()
st.markdown(
f'<img src="data:image/gif;base64,{data_url}" alt="cat gif">',
unsafe_allow_html=True,
)
# st.image(img1)
st.write("\n")
st.header("πProblem Statement")
st.markdown("""
- The management of all equipment under one control system, including heating, venting, and irrigation, is a hard task in terms of systems management and data collection. As a seasonal grower with product cycles of up to two years in duration, patience is necessary. It takes time to collect the data for these systems to work and learn.
- Greenhouse environments are also challenging for technology implementation due to broad temperature and humidity ranges, which influence both the electronic and mechanical components that contribute to their ongoing development. This can be a frustration for staff trying to complete their weekly plans.
- AI solutions for greenhouse growers are still in their initial phases of development. The integration of intelligent control systems requires changes to processes, which can be disruptive to production, so flexibility and managing expectations are important to manage the greenhouses effectively.
""")
st.write("\n")
st.header("π―Goal")
st.markdown("""
Build a strong community for sharing knowledge of AI and ML models in agriculture.\n
Decide the best values for managing the levels of temperature, humidity, the use of water, the light and other parameters inside the greenhouse.\n
Notify the growers when there are issues within the crop relating to growth rate, pests, and disease.
""")
st.write("\n")
st.write("### 1 Indoor Climate Conditions prediction")
img=Image.open("images/Greenhouse-monitoring.jpg")
# newsize=(280,300)
# img1=img.resize(newsize)
st.image(img,use_column_width='always')
st.markdown("""
- Growing crops in controlled environments lets us grow larger quantities and better-quality produce, year-round. Modern horticulture is built and thrives on this principle. One of the most important aspects of growing in a protected environment, such as a greenhouse, is climate control.
- Improving climate control in your greenhouse helps prevent diseases, boosts plant growth, increases quality and even saves energy.
- By controlling the immediate environment, crops are easily grown without the persistence of outdoor pathogens and pests.
- A Time series forecasting model is developed which can forecast the climate conditions within the next 5 minutes.
- If any of the forecasted values of climate factors are below conditions suitable for tomato growth, an error message is triggered. In actual conditions the necessary actuators can be activated to bring the conditions to suitable values. In the model built here, an error message stating the parameter is displayed.
""")
st.write("\n")
st.write("### 2 Disease Detection on plant leaves")
img2=Image.open("images/leaf_diseases.png")
# newsize=(280,300)
# img1=img.resize(newsize)
st.image(img2,use_column_width='always')
st.markdown("""
- Agricultural productivity is something on which Greenhouse economy highly depends.
- This is the one of the reasons that disease detection in plants plays an important role in agriculture field, as having disease in plants are quite natural.
- If proper care is not taken in this area then it causes serious effects on plants and due to which respective product quality, quantity or productivity is affected.
- A VGG16 and EfficientNet image classification model is developed which can detect whether a tomato leaf is healthy or infected along with the disease type if its affected.
- The **EfficientNetB3** trained on the **Plant Expert data consisting of 54 classes** got an **Accuracy of 98%**
""")
st.write("\n")
st.write("### 3 Irrigation recommendation system")
img3=Image.open("images/rec_irrigation.jpg")
# newsize=(280,300)
# img1=img.resize(newsize)
st.image(img3,use_column_width='always')
st.markdown("""
- Water availablity is always a challenge in desert regions of Algeria.
- Hence, it is very important to manage water requirements within a Greenhouse for irrigation purposes.
- Drip Irrigation, also known as trickle irrigation is most commonly used in regions with water scarcity.
- It works by delivering water slowly and directly to the plant root. The high efficiency of the system results from two primary factors:
- They absorb the water into the soil before it can evaporate or runoff.
- It only applies water where it is needed. For example, at the plantβs roots rather than everywhere. Drip systems are simple and relatively forgiving of errors in design and installation.
- Hence, it is a very effective method of watering plants.
- For comparison purposes, the standard sprinkler system has an efficiency of around 75-85%. A Greenhouse Drip Irrigation System, in contrast, has an efficiency level of over 90%.
- Over time, this difference in water delivery and efficiency will make a real difference in crop production levels quality, and in a companyβs bottom line.
- A model is developed to predict instances when would irrigation required by the crops and supply the water accordingly.
""")
st.header("πDirectory Structure")
st.code("""
βββ Part 2
β βββ Subproject1- Indoor Climate Factors
β βββ Reports
β βββ src
β βββ data
β βββ documents
β βββ references
β βββ tasks
β βββ Task1- Research
β βββ Task2- EDA
β βββ Task3- Preprocessing
β βββ Task4- Model Building
β βββ Task5- Deployment
β βββ visualizations
β βββ results
β βββ Subproject2- Diseases and Pests Detection
β βββ Reports
β βββ src
β βββ data
β βββ documents
β βββ references
β βββ tasks
β βββ Task1- Research
β βββ Task2- EDA
β βββ Task3- Preprocessing
β βββ Task4- Model Building
β βββ Task5- Deployment
β βββ visualizations
β βββ results
β βββ Subproject3- Recommendation Systems
β βββ Reports
β βββ src
β βββ data
β βββ documents
β βββ references
β βββ tasks
β βββ Task1- Research
β βββ Task2- EDA
β βββ Task3- Preprocessing
β βββ Task4- Model Building
β βββ Task5- Deployment
β βββ visualizations
β βββ results
β
βββ README.md
""")
st.write("\n")
st.header("πWebsite")
link='Check out this [link](https://github.com/OmdenaAI/Algeria-Chapter-Green/tree/main/Part%202)'
st.markdown(link,unsafe_allow_html=True)
st.markdown("Β© 2022 Omdena")