基於物聯網的蘭花病害自動診斷之模組化框架設計與實作
Design and Implementation of a Modular IoT-Based Framework for Automated Orchid Disease Diagnosis
摘要
本研究針對溫室中的蘭花病害檢測分析,提出一套基於微服務架構的模組化系統框架。其以 IoTtalk 物聯網平台為核心,將過去 OrchidTalk-v1 與 v2 高度耦合的病害分析流程進行解構與重組,轉化為多個可獨立運行的功能單元,並透過 IoTtalk 的資料傳輸機制達成跨模組協作,實現分析流程的鬆耦合與高彈性。為提升系統可操作性與易用性,本研究開發具備使用者友善介面的 CtrlBoard,作為系統的核心控制中樞與驅動單元。實現了無需撰寫程式碼(No-Code)即可完成資料上傳、參數設定與流程自動化分析。CtrlBoard 亦導入自動化迭代機制,可驅動各模組依序執行多組超參數,解決過去需人工反覆設定參數的限制。
在模型優化方面,研究引入 Optuna 超參數優化機制,以自動搜尋最佳模型配置,取代傳統手動調參過程,並提升模型對不同輸入資料的適應能力。於實驗設計中,針對 Rolling Window、CWT 與 LSTM-CNN 模組進行多組超參數之比較分析,並探討不同模組串接對模型效能的影響,結果顯示,導入 CWT 後,F1-score 由 36.36% 提升至 77.35%;再結合 Hill Function 後,F1-score 進一步提升至 83.11%,Precision 提高至 97.22%。對於Optuna 的引入,相較 OrchidTalk-v2,可使Precision 與 Recall 分別提升 2.4% 與 2.9%,驗證其在強化模型的實質效益。
在模型優化方面,研究引入 Optuna 超參數優化機制,以自動搜尋最佳模型配置,取代傳統手動調參過程,並提升模型對不同輸入資料的適應能力。於實驗設計中,針對 Rolling Window、CWT 與 LSTM-CNN 模組進行多組超參數之比較分析,並探討不同模組串接對模型效能的影響,結果顯示,導入 CWT 後,F1-score 由 36.36% 提升至 77.35%;再結合 Hill Function 後,F1-score 進一步提升至 83.11%,Precision 提高至 97.22%。對於Optuna 的引入,相較 OrchidTalk-v2,可使Precision 與 Recall 分別提升 2.4% 與 2.9%,驗證其在強化模型的實質效益。
This study proposes a modular system framework based on a microservice architecture for orchid disease detection and analysis in greenhouse. Built on the IoTtalk platform, the system decouples and reconstructs the tightly coupled OrchidTalk-v1 and v2 processes into independently operable functional modules. This reconstruction leverages IoTtalk's standardized data transmission to establish a loosely coupled, highly flexible analytical workflow. To enhance system operability, the user-friendly CtrlBoard was developed as the central control unit. CtrlBoard enables a no-code workflow, allowing users to upload data, configure hyperparameters, and perform automated analysis without programming. In addition, an iterative mechanism is implemented to execute multiple hyperparameter configurations sequentially, substantially reducing manual tuning and repetitive operations.
Furthermore, the Optuna hyperparameter optimization framework was integrated to automatically search for optimal model configurations, enhancing model adaptability to diverse data conditions. Experimental results demonstrate the efficacy of the new architecture and modules: incorporating CWT elevated the model's F1-score from 36.36% to 77.35% and combining it with the Hill Function further raised the F1-score to 83.11% and Precision to 97.22%. Additionally, the introduction of Optuna improved Precision and Recall by 2.4% and 2.9%, respectively, compared to OrchidTalk-v2, demonstrating the benefits in enhancing model performance.
Furthermore, the Optuna hyperparameter optimization framework was integrated to automatically search for optimal model configurations, enhancing model adaptability to diverse data conditions. Experimental results demonstrate the efficacy of the new architecture and modules: incorporating CWT elevated the model's F1-score from 36.36% to 77.35% and combining it with the Hill Function further raised the F1-score to 83.11% and Precision to 97.22%. Additionally, the introduction of Optuna improved Precision and Recall by 2.4% and 2.9%, respectively, compared to OrchidTalk-v2, demonstrating the benefits in enhancing model performance.