Behdad Jamshidi commited on
Commit
d7f241b
·
1 Parent(s): 3577433

Add Hugging Face dataset card

Browse files
Files changed (1) hide show
  1. README.md +180 -3
README.md CHANGED
@@ -1,3 +1,180 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pretty_name: Home Monitoring System
4
+ task_categories:
5
+ - tabular-classification
6
+ language:
7
+ - en
8
+ tags:
9
+ - smart-home
10
+ - home-monitoring
11
+ - iot
12
+ - sensor-data
13
+ - time-series
14
+ - tabular
15
+ - anomaly-detection
16
+ - activity-monitoring
17
+ - energy-monitoring
18
+ - ambient-assisted-living
19
+ size_categories:
20
+ - 1K<n<10K
21
+ ---
22
+
23
+ # Home Monitoring System
24
+
25
+ ## Dataset Summary
26
+
27
+ **Home Monitoring System** is a tabular smart-home sensor dataset for research and prototyping in home monitoring, Internet of Things (IoT), activity-aware systems, energy monitoring, and baseline anomaly-detection workflows.
28
+
29
+ The dataset contains **5,040 timestamped records** from a home-monitoring scenario sampled at regular 6-minute intervals over 21 days. Each row combines door activity, hallway motion, living-room temperature, fridge power consumption, and a label field.
30
+
31
+ ## Dataset Files
32
+
33
+ | File | Description |
34
+ |---|---|
35
+ | `train.csv` | Main dataset file with timestamped smart-home sensor measurements |
36
+
37
+ ## Dataset Details
38
+
39
+ | Field | Value |
40
+ |---|---|
41
+ | Dataset type | Tabular time-series sensor data |
42
+ | Number of rows | 5,040 data rows |
43
+ | Number of columns | 8 |
44
+ | Time range | 2025-01-01 00:00:00 to 2025-01-21 23:54:00 |
45
+ | Sampling interval | 6 minutes |
46
+ | Label values in current file | `none` |
47
+ | License | MIT |
48
+
49
+ ## Column Description
50
+
51
+ | Column | Type | Description |
52
+ |---|---|---|
53
+ | `timestamp` | datetime | Timestamp for each observation |
54
+ | `door_state_front` | numeric | Front-door sensor signal |
55
+ | `door_state_front_event_duration_seconds` | numeric | Duration of the front-door event in seconds |
56
+ | `motion_detected_hallway` | numeric | Hallway motion sensor signal |
57
+ | `motion_detected_hallway_event_duration_minutes` | numeric | Duration of hallway motion event in minutes |
58
+ | `temperature_living_room` | numeric | Living-room temperature reading |
59
+ | `power_consumption_fridge` | numeric | Fridge power consumption reading |
60
+ | `label` | categorical | Event or condition label; current dataset rows are labeled `none` |
61
+
62
+ ## Basic Statistics
63
+
64
+ | Feature | Minimum | Maximum | Mean |
65
+ |---|---:|---:|---:|
66
+ | `temperature_living_room` | 9.77 | 37.11 | 20.19 |
67
+ | `power_consumption_fridge` | 9 | 605 | 134.80 |
68
+ | `door_state_front` | 0 | 5.20 | 0.13 |
69
+ | `motion_detected_hallway` | 0 | 5.20 | 1.06 |
70
+
71
+ Non-zero activity appears in 135 rows for `door_state_front` and 1,104 rows for `motion_detected_hallway`.
72
+
73
+ ## Intended Uses
74
+
75
+ This dataset can be used for:
76
+
77
+ - Smart-home monitoring prototypes
78
+ - IoT sensor data analysis
79
+ - Time-series feature engineering
80
+ - Baseline modeling for normal home operation
81
+ - Anomaly-detection experiments using normal-only data
82
+ - Energy monitoring and appliance-consumption analysis
83
+ - Activity-aware home automation research
84
+ - Teaching examples for tabular time-series preprocessing
85
+
86
+ ## Out-of-Scope Uses
87
+
88
+ This dataset should not be used as a standalone safety, health, clinical, elder-care, or security monitoring system. Any deployment in a real home-monitoring environment requires external validation, privacy review, operational testing, and domain-specific safeguards.
89
+
90
+ ## Loading the Dataset
91
+
92
+ ### Hugging Face `datasets`
93
+
94
+ ```python
95
+ from datasets import load_dataset
96
+
97
+ dataset = load_dataset("MBJamshidi/HomeMonitoringSystem")
98
+ train = dataset["train"]
99
+ print(train[0])
100
+ ```
101
+
102
+ ### pandas
103
+
104
+ ```python
105
+ import pandas as pd
106
+
107
+ df = pd.read_csv("train.csv", parse_dates=["timestamp"])
108
+ print(df.head())
109
+ ```
110
+
111
+ ## Example Preprocessing
112
+
113
+ ```python
114
+ import pandas as pd
115
+ from sklearn.model_selection import train_test_split
116
+
117
+ df = pd.read_csv("train.csv", parse_dates=["timestamp"])
118
+
119
+ df["hour"] = df["timestamp"].dt.hour
120
+ df["day_of_week"] = df["timestamp"].dt.dayofweek
121
+
122
+ features = [
123
+ "door_state_front",
124
+ "door_state_front_event_duration_seconds",
125
+ "motion_detected_hallway",
126
+ "motion_detected_hallway_event_duration_minutes",
127
+ "temperature_living_room",
128
+ "power_consumption_fridge",
129
+ "hour",
130
+ "day_of_week",
131
+ ]
132
+
133
+ X = df[features]
134
+ y = df["label"]
135
+
136
+ X_train, X_test, y_train, y_test = train_test_split(
137
+ X,
138
+ y,
139
+ test_size=0.2,
140
+ shuffle=False,
141
+ )
142
+ ```
143
+
144
+ ## Notes for Machine Learning
145
+
146
+ - The current `label` column contains only `none`, so supervised multi-class classification is not meaningful without additional labels.
147
+ - The dataset is well suited to normal-baseline modeling, exploratory time-series analysis, and unsupervised anomaly-detection workflows.
148
+ - Use chronological train/test splitting for time-series experiments.
149
+ - Report feature engineering, scaling, split dates, and evaluation metrics clearly for reproducibility.
150
+
151
+ ## Limitations
152
+
153
+ - The dataset covers one 21-day period only.
154
+ - The current file contains normal or unlabeled records only, based on the `none` label.
155
+ - Sensor definitions are limited to the available column names and should be interpreted conservatively.
156
+ - Models trained on this dataset should be externally validated before use in operational monitoring.
157
+
158
+ ## Citation
159
+
160
+ If you use this dataset in research, software, reports, or educational material, please cite the dataset repository:
161
+
162
+ ```bibtex
163
+ @misc{jamshidi_home_monitoring_system,
164
+ title={Home Monitoring System},
165
+ author={Jamshidi, Mohammad Behdad},
166
+ year={2026},
167
+ publisher={Hugging Face},
168
+ howpublished={\url{https://huggingface.co/datasets/MBJamshidi/HomeMonitoringSystem}}
169
+ }
170
+ ```
171
+
172
+ ## License
173
+
174
+ This dataset is released under the MIT License.
175
+
176
+ ## Maintainer
177
+
178
+ Mohammad Behdad Jamshidi
179
+
180
+ - Hugging Face: [MBJamshidi](https://huggingface.co/MBJamshidi)