樹莓派用於智慧邊緣之應用
Applications of Edge AI based on Raspberry pi
摘要
Thanks to the progress of science and technology, the Artificial Intelligence of Things (AIoT) not only reduces time costs and human resources, but also improves our quality of life to its fullest. However, AIoT gives rise to several issues that never exist despite its convenience in life. In order to solve the issues of personal privacy leak and transmission delay that caused by uploading cloud data, Edge AI emerges as a branch of AIoT.
Edge AI reduces the amount of cloud data by deploying Artificial Intelligence to the users' edge device with transfer learning or the technique of model compression. In this work, an intelligent wine mixer and a real-time rehabilitation monitoring system based on Raspberry pi were proposed. In the first part, our work focused on applying Machine Learning to predict the quality of wines, and an intelligent wine mixer is presented to provide higher quality base on the concept of co-fermentation. A wine tasting event was held to analyze the preferences of general public. In the second part, we set one-arm rowing as the target and developed a wearable real-time rehabilitation monitoring system with Raspberry pi. The proposed system classified user's current status into 1. Doing rehabilitation with right muscles 2. Doing rehabilitation with wrong muscles and 3. Idle through the Surface-Electromyography (sEMG). A modified Convolution Neural Network (CNN) based model and the Signal Extraction Algorithm (SEA) were established to reach the classification accuracy of 0.9002 ± 0.04493 and the delay of 0.1074 ± 0.0660 seconds.
Edge AI reduces the amount of cloud data by deploying Artificial Intelligence to the users' edge device with transfer learning or the technique of model compression. In this work, an intelligent wine mixer and a real-time rehabilitation monitoring system based on Raspberry pi were proposed. In the first part, our work focused on applying Machine Learning to predict the quality of wines, and an intelligent wine mixer is presented to provide higher quality base on the concept of co-fermentation. A wine tasting event was held to analyze the preferences of general public. In the second part, we set one-arm rowing as the target and developed a wearable real-time rehabilitation monitoring system with Raspberry pi. The proposed system classified user's current status into 1. Doing rehabilitation with right muscles 2. Doing rehabilitation with wrong muscles and 3. Idle through the Surface-Electromyography (sEMG). A modified Convolution Neural Network (CNN) based model and the Signal Extraction Algorithm (SEA) were established to reach the classification accuracy of 0.9002 ± 0.04493 and the delay of 0.1074 ± 0.0660 seconds.
拜現今日新月異的科技進步和網際網路的普及所賜,智慧聯網 (Artificial Intelligence of Things, AIoT) 的革新不僅大幅降低了各領域、應用中的時間、人力成本,也讓我們的生活品質上升到前所未有的標竿。然而,由於 AIoT 需要將蒐集到的資料上傳雲端來進行 AI 運算,因此有著個人隱私洩漏、網路延遲和造成伺服器運算負擔等問題。為了解決這些問題,智慧邊緣 (Edge AI) 透過使用較小的機器學習 (Machine learning) 模型或利用模型壓縮 (Model compression)、遷移式學習 (Transfer learning) 等方式來將 AI 部署到使用者身邊的邊緣裝置 (Edge device) 上,藉此降低需要上傳雲端的資料量。
本研究透過 Raspberry pi 實現了一個自動化的智慧混酒系統和穿戴式的即時復健監測系統,並透過 Edge AI 的方式將其應用在智慧製造與智慧醫療上。本研究所提出的智慧混酒系統利用機器學習的方式來進行紅酒的品質預測,並結合了 "混釀" 的概念來提升紅酒品質。此外,我們也透過品酒會來觀察一般民眾對於混合前後的紅酒感想,並將整個 AI 品質預測、紅酒混合的過程自動化到 Raspberry pi 上。而在即時復健監測方面,本研究以對改善肌筋膜疼痛症候群 (Myofascial Pain Syndrome, MPS) 造成之肩頸痠痛十分有效的划船動作來作為監測目標,透過穿戴者當下的表面肌電訊號 (Surface electromyography, sEMG) 來將穿戴者當下的狀態分成 1. 以正確發力方式進行復健 2. 以錯誤發力方式進行復健和 3. 未進行復健動作 3 種。接著,本研究也利用多執行緒 (Multi-threading)、環形佇列 (Circular buffer) 和模型壓縮等技術來將整個即時復健監測系統微型化到 Raspberry pi 上。此外,本研究也結合了 MobileNet 和其他 State of the art 的概念來設計模型的結構,並利用原創的訊號萃取演算法 (Signal Extraction Algorithm, SEA) 來擷取訓練資料,藉此達到對有限資料進行資料擴增後的結果,最後獲得了 0.9002 ± 0.04493 的高準確度和 0.1074 ± 0.0660 秒的低延遲。
本研究透過 Raspberry pi 實現了一個自動化的智慧混酒系統和穿戴式的即時復健監測系統,並透過 Edge AI 的方式將其應用在智慧製造與智慧醫療上。本研究所提出的智慧混酒系統利用機器學習的方式來進行紅酒的品質預測,並結合了 "混釀" 的概念來提升紅酒品質。此外,我們也透過品酒會來觀察一般民眾對於混合前後的紅酒感想,並將整個 AI 品質預測、紅酒混合的過程自動化到 Raspberry pi 上。而在即時復健監測方面,本研究以對改善肌筋膜疼痛症候群 (Myofascial Pain Syndrome, MPS) 造成之肩頸痠痛十分有效的划船動作來作為監測目標,透過穿戴者當下的表面肌電訊號 (Surface electromyography, sEMG) 來將穿戴者當下的狀態分成 1. 以正確發力方式進行復健 2. 以錯誤發力方式進行復健和 3. 未進行復健動作 3 種。接著,本研究也利用多執行緒 (Multi-threading)、環形佇列 (Circular buffer) 和模型壓縮等技術來將整個即時復健監測系統微型化到 Raspberry pi 上。此外,本研究也結合了 MobileNet 和其他 State of the art 的概念來設計模型的結構,並利用原創的訊號萃取演算法 (Signal Extraction Algorithm, SEA) 來擷取訓練資料,藉此達到對有限資料進行資料擴增後的結果,最後獲得了 0.9002 ± 0.04493 的高準確度和 0.1074 ± 0.0660 秒的低延遲。