Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
4d8ff3b
17 faults
msiket-iit Feb 26, 2025
609c6ef
Merge remote-tracking branch 'origin/anomaly_detection' into anomaly_…
Neoyuchen Jul 4, 2025
24bb61b
17 faults
Neoyuchen Jul 4, 2025
5eba207
17 faults
Neoyuchen Jul 4, 2025
0de76f5
save faults_label
Neoyuchen Jul 7, 2025
1b0f99d
adjust sampling time
Neoyuchen Jul 7, 2025
520fb97
generate random faults
Neoyuchen Jul 11, 2025
cc6c207
add qa pairs generations codes for 1/7/14-day data
yananma1029 Jul 26, 2025
4a502c4
add qa pairs data
yananma1029 Jul 26, 2025
de5c245
modify time format using day and HH:MM only
yananma1029 Jul 26, 2025
6cdeda1
solve time format inconsistency
yananma1029 Jul 26, 2025
5f2ef91
solve time format inconsistency
yananma1029 Jul 26, 2025
cb2e19e
update qa pairs generations using 30-day data consistently
yananma1029 Jul 28, 2025
c1e423d
Remove generate_qa_pairs_14days.py generate_qa_pairs_7days.py
yananma1029 Jul 28, 2025
57e5fe5
update qa pairs generations using 30-day data consistently
yananma1029 Jul 28, 2025
95984e0
update time format
yananma1029 Jul 29, 2025
5011a26
solve answer format inconsistency
yananma1029 Jul 30, 2025
d1cdedf
update numerical answer to int/float; return timestamp in minutes; ch…
yananma1029 Jul 30, 2025
54d3822
return time as timestamp in minutes
yananma1029 Jul 30, 2025
dacc916
change heavy meals criteria
yananma1029 Jul 31, 2025
0f5237f
generate random scenarios
Neoyuchen Aug 14, 2025
d18ed20
add random scenarios
yananma1029 Aug 14, 2025
e521d68
update generate_inputs.py to support random scenarios
yananma1029 Aug 14, 2025
e5bcb79
update to support random scenarios
yananma1029 Aug 14, 2025
6a3555a
change exercise time
yananma1029 Aug 18, 2025
b22c210
add insulin_mUmin as context info
yananma1029 Aug 19, 2025
72affbe
modify answer instruction
yananma1029 Aug 20, 2025
093c5af
modify instruction
yananma1029 Aug 21, 2025
72c4c1c
solve last BG 0 problem
Neoyuchen Sep 5, 2025
6840b18
update answer instruct
yananma1029 Sep 11, 2025
3b39b95
solve controller and hypo problem
Neoyuchen Sep 16, 2025
e3ca5ca
solve controller and hypo problem
Neoyuchen Sep 16, 2025
dc79264
rounded all values to one decimal
yananma1029 Sep 20, 2025
a15c075
feat: add OpenAPS oref0 controller as OpenAPS option in therapy
Kexin-Wei Sep 23, 2025
02ca198
fix: remove meal bolus as it will cause hypoglycemia
Kexin-Wei Sep 24, 2025
8fa661b
Add anomaly QA builder and ground-truth rules at repo root
elinchen0926 Oct 2, 2025
99d3172
Save insulin input as CSV in generate_results.py
elinchen0926 Oct 2, 2025
47b77cd
Update build_anomaly_dataset.py
elinchen0926 Oct 2, 2025
a710a4e
pack data generation with faults and ramdom scenarios
Neoyuchen Oct 3, 2025
10f2d85
Merge remote-tracking branch 'origin/anomaly_detection' into anomaly_…
Neoyuchen Oct 3, 2025
b295878
pack data generation with faults and ramdom scenarios
Neoyuchen Oct 3, 2025
6558015
pack with ReadMe
Neoyuchen Oct 3, 2025
7af8af8
update help info
Neoyuchen Oct 15, 2025
e4111e0
update help info
Neoyuchen Oct 15, 2025
fe7d1d6
update help info
Neoyuchen Oct 15, 2025
cfb05d1
update qa meta
Neoyuchen Oct 28, 2025
3ecb9b3
feat: add iob inside
Kexin-Wei Oct 30, 2025
9c6d354
feat: add iob inside
Kexin-Wei Oct 30, 2025
2037414
with openaps and iob output
Neoyuchen Oct 30, 2025
9fe7833
with openaps and iob output
Neoyuchen Oct 30, 2025
adab358
Update README.md
Neoyuchen Oct 30, 2025
61369e1
Update README.md
Neoyuchen Oct 30, 2025
d13a2b1
Update README.md
Neoyuchen Oct 31, 2025
3b0de84
feat: add meal bolus inside OpenAPS
Kexin-Wei Nov 3, 2025
648d873
Merge branch 'openaps' of https://github.com/schlevik/py-mgipsim into…
Neoyuchen Nov 5, 2025
cdc6619
fix: carb_entry key misalignment with server
Kexin-Wei Nov 5, 2025
95b3c08
Merge branch 'openaps' of https://github.com/schlevik/py-mgipsim into…
Neoyuchen Nov 5, 2025
b11329e
fix: meal entry error
Kexin-Wei Nov 6, 2025
13a8543
feat: add meal bolus on_the_go mode and planned mode to switch inbetween
Kexin-Wei Nov 7, 2025
bc359c9
fixed iob and qa context bugs
Neoyuchen Nov 17, 2025
020bfc4
Merge remote-tracking branch 'origin/anomaly_detection' into anomaly_…
Neoyuchen Nov 17, 2025
f8723bc
Merge branch 'openaps' into anomaly_detection
Neoyuchen Nov 17, 2025
8a31b2b
fix: bolus entry delivery to openaps
Kexin-Wei Nov 18, 2025
c927cdd
feat: update default profile and add profile check and correction fun…
Kexin-Wei Nov 18, 2025
225bdda
fix: block bolus in planned mode
Kexin-Wei Nov 18, 2025
7f2c560
fix: correct adult profile setting
Kexin-Wei Nov 18, 2025
9e06faf
fix: multi-patient last updates
Kexin-Wei Nov 18, 2025
b3351b1
fix: change to planned mode by default
Kexin-Wei Nov 18, 2025
0da8419
Merge branch 'openaps' into anomaly_detection
Neoyuchen Nov 18, 2025
2d6a426
fixed cross the day error
Neoyuchen Nov 24, 2025
53b88d5
fixed cross the day error
Neoyuchen Nov 24, 2025
148375c
update answer instructions
yananma1029 Apr 14, 2026
29462ff
updates
Neoyuchen Apr 15, 2026
c9e6be5
Merge branch 'anomaly_detection' into yanan
yananma1029 Apr 15, 2026
3b306ae
Merge pull request #1 from schlevik/yanan
yananma1029 Apr 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ loadmatlabpatients.py

/eval_meal_est.py
/roc_results8.pkl

.vscode/
.claude/
.venv/
19 changes: 19 additions & 0 deletions QA_pairs/json_format.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import json

def print_structure(data, indent=0):
prefix = " " * indent
if isinstance(data, dict):
for key, value in data.items():
print(f"{prefix}{key} ({type(value).__name__})")
print_structure(value, indent + 2)
elif isinstance(data, list):
print(f"{prefix}[List of {len(data)} items]")
if data:
print_structure(data[0], indent + 2) # Print structure of first item
else:
print(f"{prefix}{type(data).__name__}")

# Load and inspect your JSON
with open("morning_runner_1_questions_answers_openloop_insulin.jsonl", "r") as f:
json_data = json.load(f)
print_structure(json_data)

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions QA_pairs/morning_runner_0_questions_answers_hcl0.jsonl

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions QA_pairs/morning_runner_1_questions_answers_hcl0.jsonl

Large diffs are not rendered by default.

Large diffs are not rendered by default.

116 changes: 116 additions & 0 deletions QA_pairs/test.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading