Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wear time showing 24 hours for almost 0 count day #3

Open
kaitlinsinger1 opened this issue Apr 3, 2024 · 1 comment
Open

Wear time showing 24 hours for almost 0 count day #3

kaitlinsinger1 opened this issue Apr 3, 2024 · 1 comment

Comments

@kaitlinsinger1
Copy link

Hello, I'm seeing a weird pattern where the algorithm is labeling many 0 count minutes as wear time.
wear_day = choi_2011.choi_2011_calculate_non_wear_time(final_array, raw_data_min_grouped.index), where final array is X data from an AGD file, X/Z are an appended dummy array of 0s. It seemed like I needed to have some value in X,Y,Z for the algorithm to run.

You can see in the table below for 5/8:
image

Then when I plot the counts over the day I just see one spike:
image

I adjusted the hyperparameters with no luck. I've seen this in quite a few of my files and it's generally at the end of the file after a period of very low wear days. Do you have any idea why this is happening/how to fix?

Thanks,
Kaitlin

@Trybnetic
Copy link

Hi Kaitlin,

I am not sure whether I understand your issue correctly. I am currently self trying to make things run properly, so I am also not 100% sure whether I can help you.

First of all, the required input for choi_2011_calculate_non_wear_time are data and time. data is supposed to be a numpy array of the shape (n_samples, 3). This means this array should be the content of your AGD file aggregated on 1min epochs. time, on the other hand, is supposed to be the corresponding array of timestamps and accordingly (n_samples, 1).

With your shown table and plot, I am not sure what your issue there is as it does not become clear what is shown their nor what it is that you are exactly wondering about?

Best
Marc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants