基於隱私保護之 FPGA 即時暴力 AI 偵測預警設計
Privacy-Preserving Real-Time Violence Detection and Early Warning Design on FPGA
摘要
本研究提出基於 FPGA 之類 EVS 影像前處理與輕量化暴力預警方法,以兼
顧即時處理、資料量降低與隱私保護需求。本研究以 AMD Zynq-7000 SoC 為核
心,建構由 CMOS 影像輸入至 FPGA 端類 EVS 前處理之資料路徑。前處理鏈將
原始影像轉換為以輪廓與亮度梯度變化為主之 Sobel 邊緣表示,使後端分析可減
少對完整外觀影像之依賴,並保留人體輪廓與動作變化資訊。
預警方法則由動態 ROI 萃取、多目標追蹤與 4-channel 時序特徵萃取組成,
將連續 frame 中目標之運動與幾何變化轉換為 30-frame 追蹤特徵視窗, 再以輕量
化雙分支 INT8 TCN 模型進行暴力行為判定。 所提出之 TCN 模型參數量僅 4,353,
並與 Energy Gate 及 Temporal Confirmation 構成 Cascade 預警機制,以排除低動
作能量視窗並降低單次誤判對警報結果之影響 ,使整體預警流程更符合邊緣端部
署需求。
實驗結果顯示, 類 EVS 前處理鏈於 120 MHz pixel clock 下可維持 1 pixel/cycle
之串流吞吐率,穩態 pipeline 處理時間為 13 cycles,約 108.3 ns。預警效能方面,
測試集達到 91.1% Precision、86.4% Recall 與 0.887 F1-score。結果顯示,所提出
方法可在減少影像資料量與外觀資訊揭露的條件下, 保留暴力預警所需之動作變
化特徵,並提供邊緣端監控場景中即時預警應用之設計參考。
顧即時處理、資料量降低與隱私保護需求。本研究以 AMD Zynq-7000 SoC 為核
心,建構由 CMOS 影像輸入至 FPGA 端類 EVS 前處理之資料路徑。前處理鏈將
原始影像轉換為以輪廓與亮度梯度變化為主之 Sobel 邊緣表示,使後端分析可減
少對完整外觀影像之依賴,並保留人體輪廓與動作變化資訊。
預警方法則由動態 ROI 萃取、多目標追蹤與 4-channel 時序特徵萃取組成,
將連續 frame 中目標之運動與幾何變化轉換為 30-frame 追蹤特徵視窗, 再以輕量
化雙分支 INT8 TCN 模型進行暴力行為判定。 所提出之 TCN 模型參數量僅 4,353,
並與 Energy Gate 及 Temporal Confirmation 構成 Cascade 預警機制,以排除低動
作能量視窗並降低單次誤判對警報結果之影響 ,使整體預警流程更符合邊緣端部
署需求。
實驗結果顯示, 類 EVS 前處理鏈於 120 MHz pixel clock 下可維持 1 pixel/cycle
之串流吞吐率,穩態 pipeline 處理時間為 13 cycles,約 108.3 ns。預警效能方面,
測試集達到 91.1% Precision、86.4% Recall 與 0.887 F1-score。結果顯示,所提出
方法可在減少影像資料量與外觀資訊揭露的條件下, 保留暴力預警所需之動作變
化特徵,並提供邊緣端監控場景中即時預警應用之設計參考。
This thesis proposes an FPGA-based EVS-like preprocessing and lightweight
violence early-warning method for privacy-preserving edge surveillance. The proposed
system is implemented on an AMD Zynq-7000 SoC. The FPGA-side preprocessing
pipeline converts CMOS image data into a Sobel edge representation, preserving contours
and brightness gradient changes while reducing appearance details.
For warning analysis, dynamic ROI extraction, multi-object tracking, and 4-channel
temporal feature extraction are used to convert target motion and geometric variations into
30-frame tracking feature windows. A lightweight dual-branch INT8 TCN model with only
4,353 parameters is then employed for violence detection. Together, the Energy Gate, the
TCN model, and the Temporal Confirmation form a cascade warning mechanism that filters
low-motion windows and reduces the impact of isolated misclassifications on alarm
decisions, making the overall pipeline more suitable for edge deployment.
Experimental results show that the EVS-like preprocessing pipeline achieves a
throughput of 1 pixel/cycle at a 120 MHz pixel clock, with a steady-state pipeline latency
of 13 cycles, approximately 108.3 ns. On the test set, the proposed method achieves 91.1%
precision, 86.4% recall, and an F1-score of 0.887. These results indicate that the proposed
method can preserve motion-related features required for violence early warning while
reducing image data volume and the exposure of identifiable appearance information,
providing a practical design reference for real-time edge surveillance applications.
violence early-warning method for privacy-preserving edge surveillance. The proposed
system is implemented on an AMD Zynq-7000 SoC. The FPGA-side preprocessing
pipeline converts CMOS image data into a Sobel edge representation, preserving contours
and brightness gradient changes while reducing appearance details.
For warning analysis, dynamic ROI extraction, multi-object tracking, and 4-channel
temporal feature extraction are used to convert target motion and geometric variations into
30-frame tracking feature windows. A lightweight dual-branch INT8 TCN model with only
4,353 parameters is then employed for violence detection. Together, the Energy Gate, the
TCN model, and the Temporal Confirmation form a cascade warning mechanism that filters
low-motion windows and reduces the impact of isolated misclassifications on alarm
decisions, making the overall pipeline more suitable for edge deployment.
Experimental results show that the EVS-like preprocessing pipeline achieves a
throughput of 1 pixel/cycle at a 120 MHz pixel clock, with a steady-state pipeline latency
of 13 cycles, approximately 108.3 ns. On the test set, the proposed method achieves 91.1%
precision, 86.4% recall, and an F1-score of 0.887. These results indicate that the proposed
method can preserve motion-related features required for violence early warning while
reducing image data volume and the exposure of identifiable appearance information,
providing a practical design reference for real-time edge surveillance applications.