| Literature DB >> 35208374 |
Michail Moraitis1, Konstantinos Vaiopoulos1, Athanasios T Balafoutis1.
Abstract
Urban agriculture can be shortly defined as the growing of plants and/or the livestock husbandry in and around cities. Although it has been a common occupation for the urban population all along, recently there is a growing interest in it both from public bodies and researchers, as well as from ordinary citizens who want to engage in self-cultivation. The modern citizen, though, will hardly find the free time to grow his own vegetables as it is a process that requires, in addition to knowledge and disposition, consistency. Given the above considerations, the purpose of this work was to develop an economic robotic system for the automatic monitoring and management of an urban garden. The robotic system was designed and built entirely from scratch. It had to have suitable dimensions so that it could be placed in a balcony or a terrace, and be able to scout vegetables from planting to harvest and primarily conduct precision irrigation based on the growth stage of each plant. Fertigation and weed control will also follow. For its development, a number of technologies were combined, such as Cartesian robots' motion, machine vision, deep learning for the identification and detection of plants, irrigation dosage and scheduling based on plants' growth stage, and cloud storage. The complete process of software and hardware development to a robust robotic platform is described in detail in the respective sections. The experimental procedure was performed for lettuce plants, with the robotic system providing precise movement of its actuator and applying precision irrigation based on the specific needs of the plants.Entities:
Keywords: plant detection; precision irrigation; robot; urban agriculture; vegetables
Year: 2022 PMID: 35208374 PMCID: PMC8877115 DOI: 10.3390/mi13020250
Source DB: PubMed Journal: Micromachines (Basel) ISSN: 2072-666X Impact factor: 2.891
List of components.
| Component | Short Usage Explanation | Quantity | |
|---|---|---|---|
| 1 | V-Slot 2040 1500 mm—Natural Anodized | Parallel horizontal bars | 2 |
| 2 | V-Slot 2040 1000 mm—Natural Anodized | Parallel horizontal bars stabilization | 3 |
| 3 | V-Slot 2040 250 mm—Natural Anodized | Various extensions | 5 |
| 4 | V-Slot 2020 1000 mm—Natural Anodized | Vertical bars of Π frame | 2 |
| 5 | V-Slot 2040 1000 mm—Black Anodized | Vertical bar | 1 |
| 6 | V-Slot 2040 250 mm—Black Anodized | Vertical bar extension | 1 |
| 7 | V-Slot Gantry Set 2020 × 2080 Xtreme | X, Y axes wagons | 3 |
| 8 | Inside Hidden Corner Bracket 2020 | - | 12 |
| 9 | Cast—90 Degree Corner Bracket | - | 40 |
| 10 | Stepper Motor Mount Plastic NEMA 17 | - | 1 |
| 11 | Ζ axis motor base—3D printed | - | 1 |
| 12 | Stepper Motor Mount—NEMA 17 | X, Y axes motor mounts | 3 |
| 13 | Idler Pulley Plate | X, Y axes idler pulley plates | 3 |
| 14 | Timing Belt—GT2 | - | 11 m |
| 15 | Belt Locking—for GT2 Belts | Belt tensioners | 3 |
| 16 | Aluminum GT2 Timing Pulley—6 mm Belt—20 Tooth—5 mm Bore | Toothed pulleys | 3 |
| 17 | OpenBuilds Smooth Idler Kit | Free pulleys (opposite side than motors) | 3 |
| 18 | Stepper Motor 2.8kg.cm (200 steps/rev) 42BYGHW208 | - | 4 |
| 19 | OpenBuilds Solid V Wheel Kit | Vertical bar support/scroll wheels | 5 |
| 20 | Eccentric Spacer—6 mm | Eccentric spacers for vertical bar’s wheels | 6 |
| 21 | Spacer Sleeve ID 3.6 mm L 5 mm—Black | Spacers for Z axis motor support | 6 |
| 22 | Z axis motor gear (D-shaft)—3D printed | - | 1 |
| 23 | Rack Mod.1 15 × 15 mm split in 18 cm individual parts—3D printed | - | 6 |
| 24 | Quad Tee Nut—MAKERLINK | 120ο frame’s quad connecting Tee Nuts for end to end V-Slot connections | 20 |
| 26 | OpenBuilds Tee Nuts M5 | Nuts—V-Slot | 75 |
| 27 | Bolts M5—L 10 mm Low Profile Black | Frame support screws—V-Slot | 75 |
| 28 | Endcap for 2040 V-Slot—Green | - | 2 |
| 29 | Endcap for 2020 V-Slot—Green | - | 2 |
| 30 | Rubber Cap/Foot (Rubber only) | Temporary rubber feet | 8 |
| 31 | Power Supply Industrial 12 V 8.5 A 102 W MeanWell—LRS-100-12 | - | 1 |
| 32 | Arduino Mega2560 Rev3 | - | 1 |
| 33 | A4988 Stepper Motor Driver | - | 4 |
| 34 | OpenBuilds Micro Limit Switch Kit with Mounting Plate | Limit switches’ kits | 8 |
| 35 | Bluetooth Module for Arduino—HC05 | Communication tests | 1 |
| 36 | Camera Module based on ESP32 | - | 1 |
| 37 | Camera housing and base—3D printed | - | 1 |
| 38 | Soil Hygrometer Module | - | 1 |
| 39 | NodeMCU—Lua based ESP8266 | - | 1 |
| 40 | ESP8266 WiFi Module ESP-12 | - | 1 |
| 41 | DC-DC Step-Down 1.3–35 V 3 A | - | 3 |
| 42 | Liquid Pump Motor—Micro 12 V | - | 1 |
| 43 | Polyethylene irrigation pipe of 6 mm | - | 8 m |
| 44 | Dripper 14–70 L/h | - | 1 |
| 45 | Cable Drag chain 10 × 10 mm 1 m | Cable management | 2 |
| 46 | Construction box 176 × 126 × 57 mm | Electronic equipment protection | 1 |
| 47 | Other components such as: | Screws, washers, nuts, cables, cable ties, heat-shrinkable cable insulation, resistors, capacitors, etc. | - |
Figure 1Plain schematic of CityVeg’s layout.
Figure 2View of the assembled CityVeg platform, indicating the position of each specific part.
Figure 3V-Slot aluminum profiles’ types and dimensions.
Figure 4Details of the: (a) Frame’s inside hidden corner brackets; (b) V-Slot wagon and 90-degree corner brackets holding the Π frame (c) Frame’s quad connecting Tee Nuts for end to end V-Slot connections; (d) X axis layout and; (e) Z axis wagon and motor layout.
Figure 5Detailed view of the motors of: (a) X axis (1 of the 2); (b) Y axis and; (c) Z axis.
Figure 6(a) Gear/rack graphic designs on the V-Slot extrusion and; (b) Z axis motor base design on the V-Slot wagon.
Figure 7(a,b) Soil humidity sensor and; (c) NodeMCU microcontroller.
Figure 8(a) ESP-32 CAM; (b) Camera, camera casing design and 3D printed casing; (c) Limit switch components and; (d) Installed limit switch.
Figure 9(a) Electric pump and; (b) Relay module.
Figure 10Flow chart of CityVeg overall system pipeline.
Figure 11Image stitching example. Five separate images being combined into a single one.
Figure 12(a) Garden parcel segmentation for the 5 images’ acquisition and; (b) Image stitching process.
Figure 13LabelImg tool and lettuce plant labeling.
Figure 14Example of a G-code section.
Figure 15Example of a stitched image.
Figure 16Plant detection and localization example.
Plant detection test results.
| No. of Image | No. of Lettuce Plants in the Picture | No. of Detected Lettuce Plants | Comments |
|---|---|---|---|
| 1 | 8 | 8 | Plants at early stage of growth, 2 weeds detected as lettuces (FP) but with a low score. |
| 2 | 17 | 15 | Plants at advanced stage of growth with partial overlap of the foliage. |
| 3 | 17 | 16 | Plants at advanced stage of growth, bounding box incorrectly placed in 1/17 plants and two nearby plants were detected as one. |
| 4 | 16 | 15 | Plants at advanced stage of growth. |
| 5 | 17 | 16 | Plants at advanced stage of growth with partial overlap of the foliage. Two nearby plants were detected as one. |
| 6 | 21 | 21 | Plants at advanced stage of growth. |
| 7 | 11 | 10 | Plants at early stage of growth, a small lettuce was missed (FN). |
| 8 | 13 | 14 | Plants at early stage of growth. Two nearby plants were classified as individual plants with very low scores (42% and 47%) and as a single plant with a high score (94%) (FP). |
| 9 | 15 | 14 | Plants at early stage of growth, 1 small lettuce was missed (FN). |
| 10 | 22 | 19 | Plants at early stage of growth, 3 small lettuces were missed (FN). |
Confusion Matrix.
| Actually Positive | Actually Negative | |
|---|---|---|
| Predicted Positive | 148 (TP) | 4 (FP) |
| Predicted Negative | 9 (FN) | 2 (TN) |
Recall, Precision, Accuracy and F1-score for all lettuce plants.
| Metric Value | Recall | Precision | Accuracy | F1-Score |
|---|---|---|---|---|
| Score | 0.9426 | 0.9736 | 0.9202 | 0.9579 |
Recall, Precision, Accuracy and F1-score separately for lettuce plants at early growth stages and advanced ones.
| Metric Value | Recall | Precision | Accuracy | F1-Score |
|---|---|---|---|---|
| Early | 0.9375 | 0.9615 | 0.9059 | 0.9494 |
| Advanced growth stages | 0.9481 | 0.9865 | 0.9359 | 0.9669 |
Figure 17Plant detection and localization example in lettuce plants of early growth stages. CityVeg was unable to detect the bottom right lettuces which are the smallest ones in the picture.
Figure 18Plant detection and localization example in lettuce plants of advanced growth stages. All lettuces are successfully detected.
Figure 19(a) Schematic representation of the exporting of the bounding boxes’ centers and; (b) Equation used to extract the centre’s coordinates.
Figure 20Repeatability and accuracy after 10 measurements. Adapted from [73].
Figure 212D schematic representation of the set paths. The green dots represent the pen marks. In some cases the dots are less than 10 due to overlap between them.
Repeatability and accuracy test results.
| Target | Coordinates (X, Y) | Distance in mm from the Target’s Center (mm) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Iterations | |||||||||||
| 1st | 2nd | 3rd | 4th | 5th | 6th | 7th | 8th | 9th | 10th | ||
| 1 | (50, 50) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 2 | (50, 75) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 3 | (75, 35) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 4 | (115, 50) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 5 | (150, 25) | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 0 |
| 6 | (170, 90) | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
Figure 22CityVeg second movement test, “Hello”. (a) Step 1/3, (b) Step 2/3, (c) Step 3/3.