Codelord01 commited on
Commit
173be5c
·
verified ·
1 Parent(s): 6c9fd07

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language: en
4
+ library_name: keras
5
+ tags:
6
+ - intrusion-detection
7
+ - cyber-physical-systems
8
+ - iot-security
9
+ - lstm
10
+ - time-series
11
+ - cybersecurity
12
+ datasets:
13
+ - ToN_IoT
14
+ ---
15
+
16
+ # ClimIDS: Sensor-Layer Intrusion Detection System
17
+
18
+ This model card is for **ClimIDS**, a lightweight, LSTM-based intrusion detection system (IDS) for the physical sensor layer of IoT deployments.
19
+
20
+ ## Model Description
21
+ ClimIDS analyzes time-series data from environmental sensors (temperature, pressure, humidity) to detect anomalies in climate-monitoring systems. Its lightweight architecture (~5,000 parameters) makes it suitable for edge devices.
22
+
23
+ - **Architecture:** `LSTM -> Dropout -> Dense -> Dense (Sigmoid)`
24
+ - **Dataset:** Trained on `IoT_Weather` subset of ToN_IoT
25
+ - **Performance:** 98.81% accuracy, 99.7% attack recall
26
+
27
+ ## Intended Use
28
+ - **Primary Use:** Real-time binary classification of sensor telemetry
29
+ - **Input:** `(batch_size, 10, 3)` — features `[temperature, pressure, humidity]`, normalized
30
+ - **Output:** Float between 0.0 (Normal) and 1.0 (Attack), threshold 0.5
31
+
32
+ ## How to Use
33
+ ```python
34
+ import tensorflow as tf
35
+ import numpy as np
36
+ from huggingface_hub import hf_hub_download
37
+
38
+ MODEL_PATH = hf_hub_download("Codelord01/sensor_binary", "sensor_binary.keras")
39
+ model = tf.keras.models.load_model(MODEL_PATH)
40
+ model.summary()
41
+
42
+ sample_data = np.random.rand(1, 10, 3).astype(np.float32)
43
+ prediction_prob = model.predict(sample_data)
44
+ predicted_class = 1 if prediction_prob > 0.5 else 0
45
+ print(f"Prediction Probability: {prediction_prob:.4f}")
46
+ print("Anomaly Detected" if predicted_class == 1 else "Normal Conditions")