Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
4
4
category
stringclasses
5 values
time
stringlengths
12
15
location
stringclasses
9 values
event
stringlengths
15
123
proactive
bool
2 classes
reason
stringlengths
22
238
E001
Anomaly Detection
Tuesday 10:15
bathroom
User slipped and fell, remaining stationary on the floor.
true
Safety hazard: Potential injury detected via pose estimation.
E002
Rule Violation
Friday 09:30
bedroom
User is still sleeping in bed, and the balcony planters have not been watered yet.
true
Task Deadline: Plant watering must be completed before Friday 10:00; the task is still incomplete and the deadline is imminent (Rule R012).
E003
Rule Violation
Wednesday 19:00
kitchen
User left the kitchen while the stove fire is still on.
true
Safety hazard: High risk of fire (Rule R010 violation).
E004
Anomaly Detection
Thursday 03:00
living room
User is performing vigorous exercise and making loud noises.
true
Anomaly: Abnormal behavior for this hour; potential mental health concern or disturbance.
E005
Anomaly Detection
Monday 14:00
entrance
Main door has been left open for more than 10 minutes.
true
Security risk: Unexpected breach of home perimeter.
E006
Anomaly Detection
Saturday 11:00
living room
User is standing on a ladder/chair to reach a high shelf.
true
Safety hazard: Risk of falling from height.
E007
Habit Deviation
Tuesday 07:20
bedroom
User is still lying in bed at Tuesday 07:20.
true
Habit deviation: Weekday wake-up and getting out of bed usually occurs around 07:00-07:15 (H001).
E008
Habit Deviation
Wednesday 18:15
study
User remains at the desk at Wednesday 18:15.
true
Habit deviation: The daily workout/exercise habit usually occurs around 18:00-18:30 (H014).
E009
Rule Violation
Friday 11:00
bedroom
User is packing a bag to go out, while the balcony planters are still dry.
true
Task Deadline: Plant watering remains incomplete after the Friday 10:00 cutoff (Rule R012).
E010
Habit Deviation
Friday 08:50
kitchen
The kitchen shows no breakfast activity by Friday 08:50.
true
Habit deviation: Breakfast is normally completed in the 08:25-08:50 window (H005).
E011
Habit Deviation
Thursday 22:50
bedroom
User walks from the study directly into the bedroom at Thursday 22:50.
true
Habit deviation: Nightly skincare/flossing and brushing teeth usually occur before bed around 22:30-22:50 (H021-H022).
E012
Habit Deviation
Sunday 09:00
bedroom
User is reading in the bedroom at Sunday 09:00.
true
Habit deviation: Sunday blood pressure measurement usually occurs around 08:30-08:40 (H042).
E013
Habit Deviation
Monday 08:30
living room
User is sitting in the living room after breakfast at Monday 08:30.
true
Habit-related risk: After breakfast, morning medicine is the next high-support routine around 08:45-09:00; sitting in the living room at 08:30 is an early cue to ensure the medicine routine is not missed (H006).
E014
Habit Deviation
Wednesday 16:00
study
User is still editing notes in the study at Wednesday 16:00.
true
Habit-related risk: The 16:00-16:40 study block is usually reserved for daily summary and task planning; continued note editing at the start of the window may delay or displace that planning routine (H012).
E015
Habit Deviation
Thursday 09:45
study
User is typing at the study desk and yawning at Thursday 09:45.
true
Habit deviation: Morning coffee is a medium-strength habit around 09:00-09:30, and yawning at 09:45 suggests the routine may have been delayed or skipped (H007).
E016
Rule Violation
Thursday 16:30
kitchen
User is operating the coffee machine to brew the 4th cup of the day.
true
Rule violation: Exceeds the daily limit of 3 cups of coffee (Rule R002).
E017
Habit Deviation
Tuesday 13:05
study
User is still using the computer in the study at Tuesday 13:05.
true
Habit deviation: Midday news/rest transition usually starts after lunch, with news around 12:45-13:00 and nap/rest around 13:00-13:40 (H009-H010).
E018
World Knowledge
Tuesday 11:50
living room
User left a fruit knife on the living room floor after opening a package.
true
Critical Safety: Imminent risk of injury to children/pets (World Knowledge).
E019
Rule Violation
Wednesday 12:15
living room
User is eating lunch on the sofa.
true
Rule violation: Eating on the sofa is explicitly forbidden (Rule R004).
E020
Habit Deviation
Thursday 13:00
study
User is still typing on the computer in the study at Thursday 13:00.
true
Habit deviation: Lunch is normally completed in the 12:00-12:45 window (H008).
E021
Habit Deviation
Wednesday 13:15
living room
User is still scrolling through news on the tablet at Wednesday 13:15.
true
Habit deviation: The afternoon nap/rest habit normally begins around 13:00-13:40 after the news window (H010).
E022
Rule Violation
Thursday 23:45
bedroom
User is lying in bed using a smartphone.
true
Rule violation: Active smartphone use in bed at 23:45 exceeds the brief H024 phone-in-bed exception and counts as high-intensity screen use after 23:00 (Rule R006).
E023
Rule Violation
Wednesday 12:15
kitchen
User is eating lunch at the dining table while scrolling through videos on a smartphone.
true
Rule violation: Electronic devices are forbidden at the dining table while eating (Rule R008).
E024
Habit Deviation
Thursday 08:05
bedroom
User remains in the bedroom browsing the iPad at Thursday 08:05.
true
Habit deviation: Morning meditation usually starts around 08:00-08:20 in the living room (H004).
E025
Habit Deviation
Monday 10:10
kitchen
User is making coffee in the kitchen at Monday 10:10.
true
Habit deviation: The Monday weekly video conference usually starts around 10:00 in the study (H026).
E026
Habit Deviation
Friday 16:25
living room
User is watching TV in the living room at Friday 16:25.
true
Habit deviation: Daily summary and planning normally occurs around 16:00-16:40 on weekdays (H012).
E027
Habit Deviation
Saturday 20:30
living room
User is browsing videos in the living room at Saturday 20:30.
true
Habit deviation: The Saturday family video call is a stable weekly routine around 20:00-21:00 (H039).
E028
Habit Deviation
Saturday 02:00
study
User is still playing games in the study at Saturday 02:00.
true
Habit deviation: Friday late-night gaming is a medium leisure habit, but continued gaming at 02:00 is well beyond the usual late-night exception window ending around 00:00 (H035).
E029
Habit Deviation
Tuesday 19:30
entrance
User returns from the dog walk and a trash bag remains beside the entrance.
true
Habit deviation: Taking out trash usually occurs before or around the dog-walk sequence in the evening (H016-H017).
E030
Habit Deviation
Wednesday 22:30
balcony
Laundry is still sitting wet in the washer at Wednesday 22:30.
true
Habit deviation: Wednesday laundry usually starts around 21:10-21:30, and wet laundry still sitting in the washer at 22:30 suggests the laundry flow has stalled (H030).
E031
Habit Deviation
Thursday 18:45
kitchen
User is still chopping vegetables in the kitchen at Thursday 18:45.
true
Habit-related delay risk: Dinner preparation normally fits before the evening trash and dog-walk sequence; still chopping vegetables at 18:45 suggests the evening routine may be running late (H015-H017).
E032
Habit Deviation
Friday 10:00
balcony
The balcony planters still look dry at Friday 10:00.
true
Habit deviation: Friday plant watering usually occurs around 08:40-09:00 and should be completed before the 10:00 rule deadline (H031/R012).
E033
Habit Deviation
Tuesday 13:50
living room
User is still asleep on the sofa at Tuesday 13:50.
true
Habit deviation: The afternoon nap/rest habit usually ends before the weekday deep-work block begins around 14:00 (H010-H011).
E034
Rule Violation
Thursday 12:50
living room
User is eating potato chips on the sofa while browsing the tablet.
true
Rule violation: Snacking on the sofa is explicitly forbidden (Rule R004).
E035
Habit Deviation
Saturday 12:00
living room
The living room and bathroom still look untidied at Saturday 12:00.
true
Habit deviation: Saturday house cleaning is normally completed in the 10:00-11:30 window (H036).
E036
World Knowledge
Wednesday 13:15
living room
User is sleeping without a blanket while room temperature dropped below 18°C.
true
Environment logic: Sleeping body temperature drops; risk of catching a cold.
E037
Habit Deviation
Sunday 21:40
balcony
The laundry basket is still full on the balcony at Sunday 21:40.
true
Habit deviation: Sunday laundry normally occurs around 21:10-21:30 and should be completed before the R013 deadline (H030/R013).
E038
Habit Deviation
Tuesday 19:05
kitchen
User is still cooking in the kitchen at Tuesday 19:05.
true
Habit deviation: Taking out trash normally occurs around 19:00-19:15 before the dog-walk routine (H016-H017).
E039
Habit Deviation
Tuesday 19:55
entrance
The dog leash is on the floor and the dog's paws are still muddy at the entrance.
true
Habit deviation: The dog's paws are normally cleaned and the leash put away after the evening walk (H047).
E040
Rule Violation
Friday 10:15
living room
User is watching the morning news on TV, but the balcony planters are still dry.
true
Task Deadline: Plant watering remains incomplete after the Friday 10:00 deadline (Rule R012).
E041
Rule Violation
Thursday 13:05
living room
User has fallen asleep on the sofa, but the kitchen stove is still detected as 'ON'.
true
Critical Safety: Fire hazard due to unattended stove (Violates Rule R010).
E042
Habit Deviation
Tuesday 07:26
bedroom
User walks from the bedroom to the bathroom at Tuesday 07:26 without the usual iPad weather or schedule check.
true
Habit deviation: The morning iPad weather/schedule check usually occurs before grooming around 07:15-07:25, but the user moved directly into the grooming flow without it (H002).
E043
Habit Deviation
Wednesday 16:45
study
User remains at the desk at Wednesday 16:45 with no snack or stretch activity observed.
true
Habit deviation: The afternoon fruit snack and light stretch usually occurs around 16:40-17:00 (H013).
E044
Habit Deviation
Wednesday 08:10
bathroom
User is still grooming in the bathroom at Wednesday 08:10.
true
Habit deviation: Grooming usually finishes before the morning meditation window around 08:00-08:20 (H003-H004).
E045
Rule Violation
Thursday 14:30
study
User is eating biscuits at the desk while reading documents.
true
Rule violation: Eating in the study is strictly forbidden (Rule R007).
E046
Normal Events
Tuesday 08:00
living room
User is sitting quietly and meditating.
false
Normal Events: Aligns with daily schedule.
E047
Normal Events
Friday 23:00
study
User is playing PC games.
false
Normal activity: Friday night gaming is a known H035 habit-aware exception when it starts within the 22:30-00:00 window and does not exceed the gaming duration rule.
E048
Habit Deviation
Monday 14:20
living room
User is watching TV on the living-room sofa at Monday 14:20.
true
Habit deviation: Weekday deep work and focused reading normally begins around 14:00 in the study (H011).
E049
Normal Events
Monday 20:00
study
User is working with only the desk lamp on (ceiling light off).
false
Personal preference: Recognized lighting habit for focus.
E050
Habit Deviation
Tuesday 16:20
living room
User is lounging on the sofa scrolling through social media at Tuesday 16:20.
true
Habit deviation: The weekday daily summary/task planning block normally occurs around 16:00-16:40 in the study (H012).
E051
Normal Events
Sunday 15:30
kitchen
User is working on a laptop at the kitchen table while having tea.
false
Normal activity: Flexible workspace usage outside the study.
E052
Normal Events
Wednesday 02:00
kitchen
User enters kitchen to drink water.
false
Biological need: Recognized erratic but normal behavior.
E053
Rule Violation
Friday 16:10
study
User is eating a sandwich while typing the daily summary.
true
Rule violation: Eating in the study is strictly forbidden (Rule R007).
E054
Normal Events
Thursday 21:00
study
User turned off ceiling light and kept desk lamp on.
false
Personal preference: Lighting habit.
E055
Normal Events
Friday 03:00
bathroom
User gets up briefly to use the bathroom.
false
Biological need: Normal physiological event.
E056
World Knowledge
Sunday 14:15
balcony
It started raining outside while clothes are hanging on the rack.
true
Environment logic: Rain will ruin dry clothes.
E057
Anomaly Detection
Wednesday 18:25
living room
User collapsed on the floor after jumping and has remained motionless for 30 seconds.
true
Critical Safety: Potential cardiac event or injury detected via pose estimation.
E058
Habit Deviation
Wednesday 16:50
study
User is still intensely working at the desk at Wednesday 16:50.
true
Habit deviation: The 16:40-17:00 fruit snack/light stretch transition is being skipped (H013).
E059
Rule Violation
Friday 16:45
living room
User is sitting on the sofa eating an apple.
true
Rule violation: Snacking on the sofa is explicitly forbidden (Rule R004).
E060
Anomaly Detection
Wednesday 19:20
entrance
User has left for the dog walk, but the main door smart lock is not engaged.
true
Security risk: Perimeter breach detected during user absence.
E061
Rule Violation
Wednesday 18:45
living room
User is chatting on the phone in the living room while the kitchen stove is active (absent > 30s).
true
Critical Safety: Fire hazard; violates Rule R010 (Human presence required when stove is on).
E062
Habit Deviation
Thursday 19:30
living room
User is still watching TV in the living room at Thursday 19:30.
true
Habit deviation: The evening dog walk usually occurs around 19:15-19:45 (H017).
E063
World Knowledge
Monday 16:00
living room
Room temperature is below 18°C and user is wearing short sleeves.
true
Environment logic: Risk of catching a cold.
E064
World Knowledge
Friday 20:15
balcony
User filled the food bowl and left, but the water bowl is detected as empty/dry.
true
Health logic: Pets require fresh water with meals; incomplete care routine detected.
E065
World Knowledge
Thursday 18:45
kitchen
Smoke density is high while user is cooking.
true
Safety hazard: Need ventilation to prevent alarm/health issues.
E066
Habit Deviation
Tuesday 18:15
study
User is still seated at the study desk at Tuesday 18:15.
true
Habit deviation: The daily workout/exercise habit usually occurs around 18:00-18:30 in the living room (H014).
E067
Habit Deviation
Tuesday 20:30
living room
User is watching TV while the dog food bowl remains empty at Tuesday 20:30.
true
Habit deviation: Dog feeding and water refresh normally occur around 20:00-20:20 (H018).
E068
World Knowledge
Tuesday 18:55
living room
Heavy rain is detected outside just before the scheduled outdoor routine.
true
Environment logic: Suggest taking an umbrella/raincoat or delaying the walk.
E069
Habit Deviation
Tuesday 08:40
study
User starts work in the study at Tuesday 08:40.
true
Habit deviation: Breakfast is normally eaten in the kitchen around 08:25-08:50 before the workday settles in (H005).
E070
World Knowledge
Thursday 20:40
kitchen
User is using a metal fork to try and get toast out of a plugged-in toaster.
true
Critical Safety: High risk of electric shock (World Knowledge).
E071
World Knowledge
Saturday 09:30
bathroom
User is cleaning the bathroom with bleach and has closed the door and window completely.
true
Safety hazard: Toxic fume accumulation (chloroform/chlorine); requires immediate ventilation.
E072
Habit Deviation
Saturday 16:35
living room
User is watching sports on TV at Saturday 16:35.
true
Habit deviation: Saturday piano practice is a stable routine around 16:30-17:30 (H038).
E073
Rule Violation
Friday 16:50
living room
User is eating a bowl of grapes while sitting on the sofa.
true
Rule violation: Fruit snacks are permitted but NOT on the sofa (Rule R004).
E074
World Knowledge
Wednesday 10:00
living room
The AQI (Air Quality Index) outside is over 200, but all windows are wide open.
true
Environment logic: Poor outdoor air quality; suggest closing windows and turning on the purifier.
E075
Rule Violation
Tuesday 23:10
bedroom
User is wearing a VR headset in bed.
true
Rule violation: High-intensity electronic device usage after 23:00 (Rule R006).
E076
World Knowledge
Monday 11:30
kitchen
User is defrosting meat on the counter in direct sunlight for several hours.
true
Health logic: Improper food thawing increases bacterial growth; suggest refrigeration.
E077
Rule Violation
Wednesday 20:05
bedroom
User enters the bedroom carrying a full dog food bowl.
true
Rule violation: Feeding pets in the bedroom is strictly forbidden (Rule R003).
E078
Rule Violation
Wednesday 20:35
kitchen
User is detected brewing coffee.
true
Rule violation: Coffee is strictly forbidden after 20:00 (Rule R001).
E079
Rule Violation
Friday 20:45
living room
User is watching TV, while the kettle in the kitchen has been boiling for >5 minutes (unattended).
true
Critical Safety: Fire/Scald hazard; violates stove attendance rule (Rule R010).
E080
World Knowledge
Wednesday 08:10
entrance
User is putting on shoes and holding keys (preparing to leave).
true
Departure logic: Trigger 'Leaving Home' checklist (water, gas, pet food).
E081
World Knowledge
Tuesday 21:45
study
User is reading a physical book with only the dim hallway light on (desk lamp off).
true
Environment logic: Insufficient lighting during night study causes eye strain; suggest turning on the lamp.
E082
Rule Violation
Wednesday 22:00
study
User is eating a late-night snack (chips) while studying.
true
Rule violation: Eating in the study is strictly forbidden (Rule R007).
E083
Rule Violation
Thursday 22:35
bathroom
User entered the bathroom with a smartphone and is scrolling while flossing.
true
Rule violation: Electronic devices are forbidden in the bathroom (Rule R005).
E084
World Knowledge
Tuesday 22:55
bedroom
User plugged in the phone but placed it under the pillow to charge.
true
Critical Safety: Fire hazard due to battery overheating; suggest placing on nightstand.
E085
Rule Violation
Saturday 17:00
kitchen
User is cooking a snack.
true
Schedule Adherence: User is absent from the living room during mandatory piano time (Rule R014).
E086
World Knowledge
Friday 22:42
bathroom
User is brushing teeth, but the faucet has been running continuously for >60 seconds.
true
Resource logic: Water waste detected; suggest turning off the tap while brushing.
E087
Rule Violation
Wednesday 23:05
bedroom
User has been using the smartphone in bed for a long time after 23:00.
true
Rule violation: Prolonged smartphone use after 23:00 exceeds the brief H024 phone-in-bed exception and counts as high-intensity screen use (Rule R006).
E088
Habit Deviation
Monday 22:50
bedroom
User walks from the study straight into the bedroom at Monday 22:50.
true
Habit deviation: Nightly skincare/flossing and brushing teeth usually occur in the bathroom before bed (H021-H022).
E089
World Knowledge
Monday 10:30
study
Doorbell rings while user is working.
true
Notification: User might miss the visitor due to focus/headphones.
E090
Habit Deviation
Thursday 23:45
living room
User is still active in the living room at Thursday 23:45.
true
Habit deviation: Sleep normally begins around 23:30 after the bedtime routine (H025).
E091
World Knowledge
Monday 21:30
kitchen
User is starting to brew tea.
true
Health logic: Drinking fluids late at night may disrupt sleep.
E092
Habit Deviation
Sunday 22:35
bedroom
User is getting into bed on Sunday night while the phone remains unplugged on the desk.
true
Habit-related reminder: Mobile-device charging is normally set up before bed around 22:50-23:00; getting into bed while the phone remains unplugged is an early omission cue as the charging window approaches (H023).
E093
World Knowledge
Tuesday 12:00
study
Direct sunlight is hitting the screen; user is squinting.
true
Environment logic: Glare affects comfort and vision.
E094
Habit Deviation
Monday 10:05
living room
User is browsing news on the tablet in the living room at Monday 10:05.
true
Habit deviation: The Monday weekly video conference usually starts around 10:00 in the study (H026).
E095
World Knowledge
Monday 09:55
kitchen
User is using a loud blender/grinder just 5 minutes before the video conference starts.
true
Context awareness: High noise levels usually disrupt upcoming professional meetings; suggest pausing.
E096
World Knowledge
Monday 18:05
living room
User is performing the daily workout (jumping jacks) during the scheduled Blood Pressure check window.
true
Medical logic: Blood pressure must be measured at a resting state. Exercise invalidates the reading (Conflict between Daily Workout and Monday Health Check).
E097
Habit Deviation
Monday 18:50
study
User is still working in the study at Monday 18:50.
true
Habit deviation: The Monday blood pressure measurement and health check-in usually occurs around 18:00-19:00 (H027).
E098
Habit Deviation
Thursday 17:50
living room
User is watching TV in the living room at Thursday 17:50.
true
Habit deviation: Organizing physical documents and mail is a medium weekly routine on Monday/Thursday around 17:30-18:00 (H028).
E099
Habit Deviation
Thursday 19:45
study
User is still doing deep work in the study at Thursday 19:45.
true
Habit deviation: Tuesday/Thursday yoga practice usually occurs around 19:30-20:30 (H029).
E100
World Knowledge
Sunday 21:10
balcony
It starts raining heavily as the laundry cycle begins on the balcony.
true
Environment logic: Rain will dampen the area and make hanging clothes difficult/messy; suggest using a dryer mode if available.
End of preview. Expand in Data Studio

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

HomeActEval

HomeActEval is the proactive smart-home evaluation component released with ActPro. It evaluates whether an LLM-based assistant should proactively intervene for a current smart-home observation, and whether the proposed intervention is grounded, useful, and concise.

This subdirectory is self-contained for HomeActEval evaluation. It includes the benchmark cases, static rules, habit knowledge, six-month synthetic activity logs, final model outputs, aggregate metrics, response-quality judgments, and the code needed to reproduce the released analyses.

Directory Layout

HomeActEval/
|-- README.md
|-- knowledgeBase/
|   |-- test_Bench.json
|   |-- staticKB.json
|   |-- extracted_stable_habits_gpt4o.json
|   `-- habit_GT.json
|-- six_months/
|   |-- month_1.json
|   |-- month_2.json
|   |-- month_3.json
|   |-- month_4.json
|   |-- month_5.json
|   `-- month_6.json
|-- proactive_code/
|   |-- run_experiment.py
|   |-- knowledge_retriever.py
|   |-- evalute_proactive.py
|   |-- quality_assessment.py
|   `-- result.py
`-- results/
    |-- raw_logs_context/
    |-- static_kb/
    |-- full_kb/
    |-- quality_score_strict/
    |-- proactive_reasoning_latency/
    `-- metrics/

Benchmark Files

knowledgeBase/test_Bench.json contains the evaluation cases. Each item has the following shape:

{
  "id": "E001",
  "category": "Anomaly Detection",
  "time": "Tuesday 10:15",
  "location": "bathroom",
  "event": "User slipped and fell, remaining stationary on the floor.",
  "proactive": true,
  "reason": "Safety hazard: Potential injury detected via pose estimation."
}

Additional knowledge files:

knowledgeBase/staticKB.json

Static household rules, such as safety constraints, location constraints, deadlines, and forbidden actions.

knowledgeBase/extracted_stable_habits_gpt4o.json

Habit knowledge extracted from the six-month activity logs and used in the full_kb setting.

knowledgeBase/habit_GT.json

Reference habit IDs used by the response-quality evaluator when checking habit-grounded rationales.

six_months/month_*.json

The six-month synthetic smart-home activity logs used to build the released recent raw-log context and habit knowledge.

The released raw-log context used by the model runs is:

results/raw_logs_context/context_recent_days.txt

Evaluation Settings

HomeActEval compares three input settings:

raw_logs_context = current event + recent raw historical activity memory
static_kb        = current event + recent raw memory + retrieved static rules
full_kb          = current event + recent raw memory + retrieved static rules + retrieved habit KB

In the paper-style display tables these correspond to:

w/o KB
w/ Static KB
w/ KB

The released experiments evaluate five models:

qwen3.6-max
qwen_plus
deepseek_v3
deepseek_r1
llama4_scout

The provider configuration is defined in proactive_code/run_experiment.py. API keys are always read from environment variables or from the optional --api-key argument; no private keys are hard-coded.

API Keys

Set only the provider keys you need for the model you are running.

export DASHSCOPE_API_KEY=...
export QWEN_API_KEY=...
export DEEPSEEK_API_KEY=...
export ZHIZENGZENG_API_KEY=...
export OPENAI_COMPAT_API_KEY=...

The GPT response-quality evaluator defaults to the official OpenAI endpoint:

export OPENAI_API_KEY=...
export OPENAI_BASE_URL=https://api.openai.com/v1
export QUALITY_JUDGE_MODEL=gpt-4o

OPENAI_BASE_URL is optional for the default OpenAI setup. Use --base-url only when routing to a compatible endpoint intentionally.

Run Experiments

Run commands from this directory:

cd HomeActEval

Dry-run one model and one setting without API calls:

python proactive_code/run_experiment.py \
  --model deepseek_r1 \
  --setting full_kb \
  --dry-run

Run one model and one setting:

python proactive_code/run_experiment.py \
  --model deepseek_r1 \
  --setting full_kb \
  --resume \
  --retry-errors

Run all released model/setting combinations:

python proactive_code/run_experiment.py \
  --model all \
  --setting all \
  --resume \
  --retry-errors

Useful options:

--limit N                 process only N new benchmark items
--resume                  continue from an existing output file
--retry-errors            reprocess records that previously failed
--save-raw-response       store raw model responses for debugging
--save-retrieved-context  store retrieved KB snippets for debugging

The released result files intentionally do not include raw_response or retrieved_context. Those debug fields are written only if explicitly enabled.

Output Format

Model outputs are written to:

results/<setting>/experiment_<model>_<setting>.json

Each normal record has this shape:

{
  "id": "E001",
  "model": "deepseek_r1",
  "setting": "full_kb",
  "input_time": "Tuesday 10:15",
  "input_location": "bathroom",
  "input_event": "User slipped and fell, remaining stationary on the floor.",
  "proactive": true,
  "proposed_action": "I noticed you slipped and fell in the bathroom. Are you okay?",
  "decision_basis": "Safety hazard: user slipped and fell in the bathroom."
}

decision_basis is an evaluation-only grounding field. It should be a concise reason for the proactive decision, not a long chain of thought.

Decision Metrics

Precomputed aggregate decision metrics are not included in this compact release. Recompute them from the released result files with:

python proactive_code/evalute_proactive.py \
  --output-root results

This writes generated files under results/metrics/:

results/metrics/overall_metrics.csv
results/metrics/category_metrics.csv
results/metrics/structure_audit.csv

Metric meaning:

  • overall_metrics.csv: precision, recall, F1, accuracy, specificity, and TP/FP/TN/FN counts for each model and setting.
  • category_metrics.csv: the same metrics broken down by benchmark category.
  • structure_audit.csv: file completeness and sanity checks, including missing records, duplicate IDs, errors, ordering mismatches, and input mismatches.

Response-Quality Evaluation

The response-quality evaluator scores proactive outputs with a judge model. The default setup uses GPT through the official OpenAI API.

export OPENAI_API_KEY=...

python proactive_code/quality_assessment.py \
  --output-root results \
  --score-dir quality_score_strict \
  --judge-model gpt-4o \
  --resume

Summarize the scored files when aggregate quality tables are needed:

python proactive_code/result.py \
  --output-root results \
  --score-dir quality_score_strict

This writes generated CSV summary files under results/metrics/:

results/metrics/quality_effectiveness.csv

quality_effectiveness.csv reports:

  • correctness
  • contextual_relevance
  • clarity
  • overall_effectiveness

By default, result.py summarizes raw_logs_context and full_kb, matching the released response-quality comparison.

Released Results

Primary model outputs:

results/raw_logs_context/experiment_<model>_raw_logs_context.json
results/static_kb/experiment_<model>_static_kb.json
results/full_kb/experiment_<model>_full_kb.json

GPT strict response-quality judgments:

results/quality_score_strict/raw_logs_context/
results/quality_score_strict/full_kb/

Aggregate decision metrics and response-quality summary tables are generated artifacts and are not included by default. Regenerate them with the evaluation commands above.

Latency Artifacts

The released latency profiles and aggregate latency summaries are under:

results/proactive_reasoning_latency/
results/proactive_reasoning_latency/metrics/proactive_reasoning_latency_summary.csv

These files are included for audit and reporting. The compact release includes the final latency artifacts rather than the exploratory profiling scripts.

Minimal Validation

Run these checks without external API calls:

python -m py_compile proactive_code/*.py
python proactive_code/run_experiment.py --model deepseek_r1 --setting full_kb --dry-run
python proactive_code/evalute_proactive.py --output-root results
python proactive_code/result.py --output-root results --score-dir quality_score_strict

Privacy And Keys

Do not hard-code API keys in code or result files. The released result records are designed to contain only benchmark inputs, model decisions, concise proposed actions, and evaluation fields. Debug-only raw model responses and retrieved contexts are excluded unless explicitly requested with debug flags.

Downloads last month
138