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

Simba ROI time to first zone entry #414

Open
blaingvt opened this issue Mar 4, 2025 · 4 comments
Open

Simba ROI time to first zone entry #414

blaingvt opened this issue Mar 4, 2025 · 4 comments

Comments

@blaingvt
Copy link

blaingvt commented Mar 4, 2025

We are running some experiments where we need to measure the time in the video before the animal enters a zone.

If possible, it would be great to have an ROI analysis option that provides time of first entry to zone. Does anything like this exist already? I can't seem to find it in the docs.

It would be great if there was a way to generate a column of data on the output csv file that has a boolean indicating if the animal is present or absent from the zone.

@sronilsson
Copy link
Collaborator

Hi @blaingvt - good point... I don't think I have it. As I user where do you think it would be the most accessible/reasonable place to include the option to compute this?

The only thing that comes to mind it this checkbox in the screengrab below.

It gives you a CSV file with every start time, end time, and duration of every time sequence in every video that the animal is inside the ROI. If you look at the start time for the first event for each video you should find what you are looking for. I have attached an example output of this file. However, I would say its a little finicky, and it may be better to insert an option that extracts this.

Detailed_ROI_data_20250304165307.csv

Image

@blaingvt
Copy link
Author

blaingvt commented Mar 5, 2025

In the ROI data tab it would be really handy to just have a button that is 'ROI Time Analysis' that would have a pop up box with checkboxes for 'Time spent in zone', 'Time to first entry', 'Total Zone Entries'. This would automatically extract these values instead of the user doing it on the back-end from the detailed_ROI_data.CSV files you identify.

A popup with checkboxes for these parameters similar to what you have for the analyze machine predictions on behavior analysis would be really cool.

Anyways we are at least able to get our data with the current functionality, so I appreciate your point there.

@sronilsson
Copy link
Collaborator

Great thanks @blaingvt - I will insert a button like that and let you know when done (I have you few things I need to attend to first). Once done it would be great to get your feedback.

@blaingvt
Copy link
Author

blaingvt commented Mar 5, 2025

Amazing, no rush. Thanks for your continued support of this tool.

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