aditide commited on
Commit
aa0ff34
·
verified ·
1 Parent(s): f433f9f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +98 -3
README.md CHANGED
@@ -1,3 +1,98 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - multimodal,
5
+ - intent-prediction,
6
+ - gaze,
7
+ - eeg
8
+ ---
9
+
10
+
11
+ # Zero Input AI Model
12
+
13
+ ## Model Description
14
+ The Zero Input AI (ZIA) Model predicts user intent from multimodal inputs without explicit user interaction. It processes gaze coordinates, heart rate, EEG signals, and contextual data (time, location, app usage) using a transformer-based architecture to classify intents (10 classes). This model enables hands-free, intent-driven interfaces.
15
+
16
+ ## Intended Uses
17
+ - **Primary Use**: Predicting user intent for hands-free applications, such as smart assistants or accessibility tools.
18
+ - **Out-of-Scope**: Not intended for medical diagnostics due to synthetic training data.
19
+
20
+ ## Training Data
21
+ - **Dataset**: Synthetic data with 10,000 samples, each containing 100 timesteps of:
22
+ - Gaze: `(100, 2)` (x, y screen coordinates)
23
+ - Heart Rate: `(100,)` (beats per minute)
24
+ - EEG: `(100, 4)` (4-channel signals)
25
+ - Time: `(100, 32)` (sinusoidal encodings)
26
+ - Location: `(100, 3)` (one-hot encoded: home, work, public)
27
+ - Usage: `(100, 20)` (one-hot encoded app IDs)
28
+ - Intent: Scalar (0-9)
29
+ - Generated using custom scripts (`generate_zia_data.py` and `preprocess_zia_data.py`).
30
+
31
+ ## Performance Metrics
32
+ - Validation Accuracy: ~10-20% (limited by random synthetic data; real data expected to improve performance).
33
+ - Trained for 10 epochs with Adam optimizer (learning rate: 2e-5).
34
+
35
+ ## Usage Instructions
36
+ ```python
37
+ import torch
38
+ from zia_model import ZIAModel
39
+
40
+ # Load model
41
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
42
+ model = ZIAModel().to(device)
43
+ model.load_state_dict(torch.load("zia_model.pt"))
44
+ model.eval()
45
+
46
+ # Example input (replace with real data)
47
+ gaze = torch.randn(1, 100, 2) # [batch, seq, features]
48
+ hr = torch.randn(1, 100) # [batch, seq]
49
+ eeg = torch.randn(1, 100, 4) # [batch, seq, features]
50
+ context = torch.randn(1, 100, 55) # [batch, seq, time+location+usage]
51
+ with torch.no_grad():
52
+ logits = model(gaze, hr, eeg, context)
53
+ predicted_intent = torch.argmax(logits, dim=1)
54
+ ```
55
+
56
+ ## Limitations and Biases
57
+ - **Synthetic Data**: Trained on randomly generated data, which may not reflect real-world multimodal patterns.
58
+ - **Accuracy**: Low due to lack of correlations in training data.
59
+ - **Generalization**: Performance on real EEG, gaze, or heart rate data is untested.
60
+ - **Biases**: Synthetic data assumes uniform distributions, potentially missing diverse user behaviors.
61
+
62
+ ## Ethical Considerations
63
+ - **Privacy**: EEG and gaze data are highly sensitive. Real-world applications must ensure robust privacy protections.
64
+ - **Bias**: Synthetic data may not represent diverse populations, potentially leading to biased predictions.
65
+ - **Misuse**: Ensure the model is used ethically, avoiding unauthorized surveillance or profiling.
66
+
67
+ ## License
68
+ This model is licensed under the MIT License. See the `LICENSE` file for details.
69
+
70
+ ## Acknowledgments
71
+ Developed as a prototype for Zero Input AI research, inspired by multimodal intent prediction concepts.
72
+ ''')
73
+
74
+ # Save LICENSE file (MIT)
75
+ with open(os.path.join(local_dir, "LICENSE"), "w") as f:
76
+ f.write('''
77
+ MIT License
78
+
79
+ Copyright (c) 2025 [Aditi De]
80
+
81
+ Permission is hereby granted, free of charge, to any person obtaining a copy
82
+ of this software and associated documentation files (the "Software"), to deal
83
+ in the Software without restriction, including without limitation the rights
84
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
85
+ copies of the Software, and to permit persons to whom the Software is
86
+ furnished to do so, subject to the following conditions:
87
+
88
+ The above copyright notice and this permission notice shall be included in all
89
+ copies or substantial portions of the Software.
90
+
91
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
92
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
93
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
94
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
95
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
96
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
97
+ SOFTWARE.
98
+ ''')