Battery #119
carissalow
started this conversation in
Behavioral Features
Battery
#119
Replies: 2 comments 2 replies
-
For battery preprocessing, why do we form raw episodes first, resample the episodes data by creating 2 duplicated rows for each minute bin, and then when extracting features we deduplicate(i.e.remove the second duplicated row for each bin), then form new episodes again using the raw episodes data(i.e. phone_battery_episodes.csv)? It seems that we created some redundant intermediate steps and reversed them before feature calculation?Suggestion: Why don’t we form charging/discharging episodes from the beginning without the resampling in between? It seems that for battery feature calculation, we only form episodes based on: a) battery_status changes; b) time difference between consecutive rows exceeds episode_threshold_between_rows. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Also, I'm not seeing this particular logic implemented in the code base - "Discard rows with time difference <= 6 minutes to avoid including quick cycles". I only saw logic related to episode_threshold_between_rows. Am I missing anything? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Originally posted by @Meng6
Unify battery data for iOS client V1
We transform iOS (only iOS client V1 needs this step as V2 does it out-of-the-box) battery logs into Android's format. iOS stores battery status: 0=unknown, 1=unplugged, 2=charging, 3=full, as opposed to Android's event: 1=unknown, 2=charging, 3=discharging, 4=not charging, 5=full.
We follow this algorithm to convert iOS battery data:
Calculate battery episodes
Extract battery features based on battery episodes
We extract features for different day segments (epochs) from battery episodes: "countdischarge", "sumdurationdischarge", "countcharge", "sumdurationcharge", "avgconsumptionrate", "maxconsumptionrate".
Beta Was this translation helpful? Give feedback.
All reactions