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

Regions of Interest Feature #327

Open
2909ft opened this issue Nov 12, 2019 · 27 comments
Open

Regions of Interest Feature #327

2909ft opened this issue Nov 12, 2019 · 27 comments

Comments

@2909ft
Copy link

2909ft commented Nov 12, 2019

Hello everybody! I have a minor question: there is a feature on the PrepareJAABAData interface which I am not entirely sure what it is used for (see attached image). Would it be possible to use this "regions of interest" feature to limit a specific behavior to happen only inside a certain ROI? (e.g.: every time the mouse is inside the ROI, the assigned behavior is always "Investigating"). If not, what is this feature used for? I couldn't find any information about it on the JAABA website.
image

Thank you for your time!

@mkabra
Copy link
Collaborator

mkabra commented Nov 19, 2019 via email

@2909ft
Copy link
Author

2909ft commented Nov 19, 2019

Thank you for the reply!
Yes, I am currently using MoTR. Altough I am thinking of switching to APT at some point.
"This can definitely be useful for behaviors like investigating where JAABA can potentially learn to predict investigating whenever the animal's distance is smaller than a threshold." Yes, this is exactly what I wanted to do.
Does JAABA take my selected ROI into account automatically or do I need to do anything else after I am done with PrepareJAABAData?
Kind regards,
Filipa

@mkabra
Copy link
Collaborator

mkabra commented Nov 19, 2019 via email

@2909ft
Copy link
Author

2909ft commented Nov 19, 2019

Awesome, thank you so much!

@mkabra
Copy link
Collaborator

mkabra commented Nov 21, 2019 via email

@2909ft
Copy link
Author

2909ft commented Nov 25, 2019

Thank you so much!! Apologies for the late reply, I will be trying it out this week

Kind regards,
Filipa

@2909ft
Copy link
Author

2909ft commented Dec 4, 2019

I finally sat down on my desk and tested it :) Apologies for the delay!

Whenever JAABA is regenerating the missing files for the experiment directories, this error message pops up (see attached, it says "Error adding expdir C:\users\torrao\Desktop\JAABA-master\perframe\Exp20191204T115052: MATLAB:badsubscript: Index exceeds the number of array elements"). Is this a bug or am I doing something wrong? I will also attach a MoTR mat file so that you can try it out (on a zip file because github doesn't let me attach a mat file). Let me know if you require more information, and thank you so much once again!
m1sensoryD1_tracks.zip
image

@mkabra
Copy link
Collaborator

mkabra commented Dec 4, 2019 via email

@2909ft
Copy link
Author

2909ft commented Dec 4, 2019

I downloaded JAABA from here around 2 hours ago and that's the version I used. Did you add the missing file after that?

@mkabra
Copy link
Collaborator

mkabra commented Dec 4, 2019 via email

@2909ft
Copy link
Author

2909ft commented Dec 4, 2019

Alright, I will try it again then :)

@2909ft
Copy link
Author

2909ft commented Dec 4, 2019

Unfortunately it still gives me the same error message :(

@mkabra
Copy link
Collaborator

mkabra commented Dec 4, 2019 via email

@2909ft
Copy link
Author

2909ft commented Dec 5, 2019

Thank you very much! :)
Now there seems to be another problem whenever I try to launch JAABA using StartJAABA. This error message appears:

StartJAABA
Number of threads allocated for computation: 2
Number of threads allocated for display: 2
Error: File: JLabel.m Line: 1293 Column: 41
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

Error in StartJAABA (line 38)
JLabel('nthreads',nthreads);

@mkabra
Copy link
Collaborator

mkabra commented Dec 5, 2019 via email

@2909ft
Copy link
Author

2909ft commented Dec 5, 2019

Thank you Mayank! It's working perfectly now :)
I believe JAABAPlot might also have a bug? I get this error message whenever I try to launch it

JAABAPlot
Error: File: JAABAPlot.m Line: 3709 Column: 22
Assigning to the for-loop variable 'i' is not supported in parfor-loops. For more information, see Parallel for Loops in MATLAB,
"Nested for-Loops: Requirements and Limitations".

Do you know how to fix it?

@mkabra
Copy link
Collaborator

mkabra commented Dec 6, 2019 via email

@2909ft
Copy link
Author

2909ft commented Dec 6, 2019

Thank you! Yes, it fixed the bug on that line, but there's still the same one but now on line Line: 4721 Column: 23 ahahah

@mkabra
Copy link
Collaborator

mkabra commented Dec 9, 2019 via email

@2909ft
Copy link
Author

2909ft commented Dec 13, 2019

Seems to be working fine! Thank you very much :) Have a nice day!

@puessirvetelo
Copy link

Hi! I'm working on scoring exploratory behavior in mice towards two distinct objects.
I've tracked the video with MoTR and, then, set the area surrounding each object as distinct ROIs in PrepareJAABAData. The JAABA project is set as "mice_withrois". After training and saving the JAABA project, I've exported the scores of this first video but cannot seem to find the data regarding ROIs in the scores file. Am I doing something wrong?

Thanks a lot!

Cheers,
Candela

@mkabra
Copy link
Collaborator

mkabra commented Jan 7, 2021 via email

@puessirvetelo
Copy link

Hi Mayank,

Thanks for the quick reply! Actually, I was wondering about the predictions based on ROIs, such as frames in which the behavior is being predicted within each ROI (considering I've set two ROIs in PrepareJAABAData) or distance to ROI, angle between animal's head direction, etc. Is that retrievable data? If it is, where could I find it?

Many thanks again!

Candela

@mkabra
Copy link
Collaborator

mkabra commented Jan 8, 2021 via email

@mkabra
Copy link
Collaborator

mkabra commented Jan 8, 2021 via email

@puessirvetelo
Copy link

Great! I'll look into all of that, I believe it'll be really helpful to perform this scoring.

Many thanks for all the help!

Candela

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

3 participants