Welcome! Log In Create A New Profile

Advanced

Integrating "Identification" into MonkeyLogic Setup

Posted by ShiinSaad 
Integrating "Identification" into MonkeyLogic Setup
April 23, 2024 02:22PM
Hi,

We're using MonkeyLogic on a tablet to run experiments in a setup that's installed in the cage, and multiple monkeys use the same setup.
We deliver rewards through Bluetooth (HC05) connected to an Arduino.

We're looking to identify which monkey is interacting with the setup to customize the difficulty level of tasks accordingly.
Does anyone know of existing methods or has anyone implemented something similar for such identification?

Here's an idea we had:
- Integrate an RFID module with the existing Arduino setup.
- Upon detection of a new RFID tag, send the ID via Bluetooth to MonkeyLogic.
- Modify the reward function (which already communicates with Arduino via Bluetooth) to read the ID.
- Use this ID to trigger quit and load functions in MonkeyLogic, adjusting the experiment setup for the specific monkey.

I'm relatively new to the functionalities of MonkeyLogic, so any advice on whether this approach is feasible, or how to better integrate an identification method would be hugely appreciated.
Thanks in advance for your help and insights!
Re: Integrating "Identification" into MonkeyLogic Setup
April 23, 2024 06:17PM
The ID method is not something covered by NIMH ML, although some users may be able to share their experience here. You can use RFID, face detection or any ID method that you like, as long as it returns some unique number or string for each individual to NIMH ML.

Arduino cannot run multiple sketches. You may need more than one Arduino device, if your ID method is also Arduino-based. You can create multiple arduino objects that represent difference devices with additional parameters. See the MATLAB arduino documentation.

You probably want to learn how to use the userloop. You can integrate the ID method and adjust task parameters in it, before starting the next trial.
https://monkeylogic.nimh.nih.gov/docs_CreatingTask.html#Userloop

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.