Skip to content
/ ALARM Public

Code for Paper "ALARM: Automated MLLM-Based Anomaly Detection in Complex-EnviRonment Monitoring with Uncertainty Quantification"

Notifications You must be signed in to change notification settings

RancyZ/ALARM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ALARM: Automated MLLM-Based Anomaly Detection in Complex-EnviRonment Monitoring with Uncertainty Quantification

All the experiments are run by Python 3.12.2 on Apple M3 Pro with 18GB of memory.

Installation

  1. Clone this repository.
  2. Install the required packages:
pip install -r requirements.txt
  1. The repository contains two case studies: Smart Home and Wound. Each case study is organized into two subfolders: one for code and one for data.
  2. Smart Home case study:
    • The metadata files and ground-truth annotations for the video data are provided under Smart Home/Data. Due to the large size of the SmartHome-Bench dataset (1,203 videos), the raw video files are not included in this repository.
    • To download the videos, please follow the instructions in the original SmartHome-Bench repository under the “Download Videos” section. Baseline methods are implemented following the same repository.
    • For ALARM LLM output generation, each LLM produces two files:
      • Step 1: Initial model responses, including Data Comprehension and Analytical Thinking.
      • Step 2: Refined outputs corresponding to the Reflection stage.
  3. Wound case study:
    • The wound dataset is fully provided in this repository.
    • The original dataset is sourced from Kaggle.
    • For ALARM LLM output generation, the corresponding code is implemented in llm_gen.ipynb.

Reproducibility Workflow

Which results to reproduce Data File Code File Output Run time at the above-specified computer conditions
Table 1 Smart Home/Data Smart Home/Code/LLM_output_generation
Smart Home/Code/UQ_calculation/desc
Smart Home/Code/UQ_calculation/reas
Smart Home/Code/UQ_calculation/ref
Smart Home/Code/UQ_calculation/All
The performance results in Table 1 14 hours
Figure 5 Smart Home/Data Smart Home/Code/UQ_calculation/desc
Smart Home/Code/UQ_calculation/reas
Smart Home/Code/UQ_calculation/ref
Smart Home/Code/UQ_calculation/All
The results under different P values in Figure 5 2 hours
Figure 6 Smart Home/Data Smart Home/Code/UQ_calculation/smooth_weight The results of smooth weights 1 minute
Figure 7 NA Smart Home/Code/UQ_calculation/cost
Wound/Code/UQ_calculation/cost
The results of optimal P vs. unit cost 1 minute
Table 2 Wound/Data Wound/Code/LLM_output_generation
Wound/Code/UQ_calculation/desc
Wound/Code/UQ_calculation/reas
Wound/Code/UQ_calculation/ref
Wound/Code/UQ_calculation/All
The performance results in Table 2 14 hours
Figure 10 Wound/Data Wound/Code/UQ_calculation/desc
Wound/Code/UQ_calculation/reas
Wound/Code/UQ_calculation/ref
Wound/Code/UQ_calculation/All
The results under different P values in Figure 10 2 hours
Figure 11 Wound/Data Wound/Code/UQ_calculation/smooth_weight The results of smooth weights 1 minute

About

Code for Paper "ALARM: Automated MLLM-Based Anomaly Detection in Complex-EnviRonment Monitoring with Uncertainty Quantification"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published