Live Mouse Tracker

Long term mice/rat tracking with social interactions analysis.

...

What is Live Mouse Tracker ?

LMT is designed to track mice or rats on the long term (from hours to months of recording), and to provide automatic bahavioural annotation, specificaly on the social events.

This video shows the main principle: on the left hand side, you can see the tracking in real time, and on the right side, the data and the labeling that is extracted.

What behaviours can it extract automatically ?

Here is the list of basic behaviours the system can extract (without any manual intervention).

Downloads

The only section you might read :)

  • Download Live Mouse Tracker
  • Unzip it
  • Install java 8 64bits
  • Setup your antenna COM ports
  • Go !
  • And then you can process the results :)

legacy version 930 at paper release

You enjoy assembling IKEA furniture during weekend ? You can now do it at work with this blueprint to build your own setup !

Follow the instruction of this PDF to create the original Live Mouse Tracker hardware.

Download this sample data set to test what you can extract for the data before investing in the system

You can test the full analysis pipeline with this data, and see if it fits your needs

This sample dataset is the one you can see in the main video, with which we performed the validation.

How to analyse the data ?


Access the analysis LMT analysis GitHub

... or/and use third party analysis tools (see below)

Live Mouse Tracker third-party analysis tools

Projects related to the analysis of data produced by live mouse tracker

LMT-toolkit is an open source web application created to analyse Live Mouse Tracker (LMT) data easily and intuitively.

It re-computes all the behaviors of animals, and let one browse the results in a website hosted within your lab. This solution also stores the database on your local server. Perfect for data management.

by Nicolas Torquet at IGBMC, Strasbourg, France

Easy-LMT is a standalone software with a great GUI. It uses all the features of the scripts provided with LMT, and produces the graphs interactively.

The nice point is that you don't need to type any command line to get your analysis with it. Everything is done in the app.

This is multi-platform and .exe files are even provided for windows so that you don't even need to install python.

by Marie Bossard at Institut de l'Audition, Paris, France

LMT Widget Tools is an interactive data extractor designed for jupyter.

LMT Widget Tools exports data to .csv files with the field you decide to export, using the time bins you select.

The nice point is the install: a simple pip install LWTools and you are good to go !

by Damien Huzard at IGF - CNRS - INSERM - Université de Montpellier, France.

A modular and reproducible framework for analyzing data from the LiveRatTracker (LRT) system.

Data are stored in a SQLite database, and analyses are conducted in Python using Jupyter notebooks and standalone scripts.

by Terelacco

A pipeline to facilitate the data analysis of the mouse behaviour phenotyping through the LiveMouseTracker (LMT) platform.

by Dale Annear

Reach us on discord to get your tool, lib or story referenced on this website here !

by You at YourLab.

Focus on Easy LMT Analysis by Marie Bossard:

This tool is designed to facilitate the use of the LMT Analysis Library without requiring any coding knowledge. The interface is organized into seven main tabs, allowing users to carry out the core analyses provided by the library through graphical widgets. With this tool, you can:
  • Generate reliability reports on your acquired data
  • Perform event post-processing
  • Create various event-related visualizations
  • Plot multiple trajectory-related graphs
  • Visualize sensor data, such as light, humidity, and temperature

This is an ongoing project that continues to evolve and improve. Contributions are always welcome and appreciated!

by Marie Bossard

Focus on integrating several Live Mouse Tracker in a lab by Damien Huzard

"Tribute to Live Mouse Tracker: The Tech That Pulled Me Into (and Through) HomeCage Monitoring"

Here is an article of Damien Huzard called entitled Tribute to Live Mouse Tracker This is great, easy to read article to get into the biologist view of the existing system (not only live mouse tracker)

Is there somebody using it ?

I stopped counting in 2022, here is the map I had at that time. I would say there is about 1 new system every 2 weeks in average, based on the support I provide by email.

How does it work

Produced data:

For each experiment, you get:

  • A database file, in the SQLite format, which is handy as SQLite database are standalone files, which avoid using server. You can just copy/backup/restore/share your databases as easy as manipulating conventional files.
  • A set of video, in the MP4 format, which store the view in LMT. The purpose of those video is to get back to the film if you find specific behaviour while digging in the data. To find back a specific event, we hard coded in the video the current frame and current date/time. MP4 files are split in 10 minutes segments so that you can play MP4 even during the experiment.
  • A background view folder, which store the depth image of the cage, without the animals. This is great to study how mice are moving objects in the cage, how they organize their nest or how they move/eat their food.
  • Data analysis

    To perform the analysis, we provide a framework in Python detailed in this presentation. We also provide code on GitHub. Examples of data analysis here that contains trajectory drawing, extraction of position, extracting timeline of events. You can also rebuild all the events available using this script. An example of interactive event exploration is also available here.

    Note that you can use the third-party tools to process your data.

  • You can enrich/change the analysis with your own scripts.
  • presentation: https://docs.google.com/presentation/d/1wR7JM2vq5ZjugrwDe4YuuKJm0MWIvkHAvrOH7mQNOEk/edit
  • data analysis : https://github.com/fdechaumont/lmt-analysis/blob/master/LMT/examples/Examples%20with%20Jupyter.ipynb
  • script: https://github.com/fdechaumont/lmt-analysis/blob/master/LMT/scripts/Rebuild%20all%20events.ipynb
  • Can I use Live Mouse Tracker to study ultrasonic vocalizations ?

    Yes, please watch this video. (If you have no time, just watch the parts at 6:32 to analyse USVs and at 20:00 to watch the link between LMT and USVs). LMT associated with AviSoft Recorder allow you to record synchronized USVs with behavioral events. We also provide a website to test our USV detection method online, no installation needed: https://usv.pasteur.cloud

    If you wish to process file offline, go to the download section.

    Specific analysis can be performed using the LMT USV Toolbox in python available on github https://github.com/fdechaumont/LMT-USV-Toolbox

    FAQ - Frequently asked questions

    Can I track elephants, monkeys, birds, ants, spiders, flies, mosquito, people, sheeps, cows, mantas, crocodiles or frogs with Live Mouse Tracker ?

    I am sorry no. I would very much encourage you to find a dedicated solution for your species, there are trackers for all of them, with pros and cons.

    If I want to track only 1 animal, do I need RFID ?

    In that case you don’t need RFID. Just a Kinect.

    On which OS does it work ?

    Windows only.

    Can I use another computer than the one you recommend ?

    We recommend a Ryzen 7 2700X, 16GB RAM.

    Do I need a good GPU / graphic card ?

    LMT does not use GPU, you can use any card.

    How do I create an event from another program or device using an UDP network protocol ?

    If you have an external device that is creating event, and you want to synchronize them with LMT, you can use several solution. The most simple is the UDP protocol: you just send start and end of event on the fly, and they will be recorded as event in LMT.

    To send an UDP message, you can do it programatically, or with a software such as https://packetsender.com/

    Then, from the command line, just type this:

    PacketSender.exe -ua localhost 8550 “start_NameOfEvent”

    PacketSender.exe -ua localhost 8550 “end_NameOfEvent”

    You can then check in the database (for instance with sqlitebrowser): your event should appear in the event table.

    How can I tune the antenna ?

    Launch the plugin AntennaTuner in the Live Mouse Tracker tab.

    Then in the output of Icy you will see the current tuning refreshed each second.

    It automatically detects all the COM port as you plug/unplug them.

    Make the measurement when you are not touching the coil and put the coil far from metallic masses or wires.

    To increase the value up to 134.2kHz, remove some coil. If you removed more than 10cm of coil, you can cut it and re-solder (note that this will increase a bit the tuning).

    If you see 0.0 / 134.2kHz it means the wire is broken, or you have a problem with the soldering.

    To solder the coil, turn it around your wire, and burn (as you solder) the thin translucid isolation plastic that is around the coil.

    You can also test the detection of your glass RFID probe with the Antenna Tuning Tester plugin. It will cycle through antenna for 5 seconds each, and perform 10 reading per second for each cycle. It will display the RFID number detected in the output.

    How do I insert the RFID probe ?

    The RFID should be gently put in the animal using, using gas anesthesia, and local subcataneous analgesia. The RFID should be inserted in the neck and gently pushed on the side of the animal.

    Where and which RFID probe should I order ?

    We asked RFID suppliers to provide samples for test. The current best supplier is Biomark: www.biomark.com . According to our tests, their RFIDs are 1.54x better than the one we recommended while publishing the paper ! The RFID reference is RFID APT12 PIT tag (FDX) You may also ask for an injector You can mention that you are an LMT user (we don’t have financial agreements !).

    Can I get back the RFID chip to use them later on ?

    RFID chip are provided with unique number bought by the company which sells it to you. The RFID tag is they key to access your animal data. So if you keep your RFIDs, you will have one RFID for multiple animals.

    How should I setup the 63cm height of the camera ?

    You should not try to measure with a ruler, but directly from the application, with the program called “LiveMouseTrackerCalibration”. It provides a view of the field with red, orange and green dots. When all are green, you are calibrated. You maximize the frame and zoom-in/out with the mousewheel.

    Can I use several setup in the same room ?

    More and more labs are using several setup in the same room (typically 4 setups) to run parallel experiments. To do this, you should consider the following points: Kinects should not send direct light to other setup. If it happends, you will see that the image is slightly blinking. To avoid this, you should use kind of matte box (homemade is fine!) attached to the front of the kinect. Using isolating boxes per setup is also a solution. If several RFID are activated, they do jam the signal. On one system, LMT ensures that only one antenna is started at a time. If you start multiple setup in the same room, several antenna will be active at the same time. So you should keep a minimal distance of 1 meter between setup. If a setup is not used at all, disconnect the power of RFID reader (disconnect the hub power) since the default behavior of readers when started is to start reading. In that case they will be all active and will jam the signal up to several meters and other system will not read any tag.

    Troubleshooting

    Access the google doc with a lot of troubleshoot guidelines here.

    System is missing frames.

    Anti virus may freeze the application to take a memory snapshot. This will dramatically slow down the LMT process. Windows defender works very fine and is strongly recommended. Kaspersky kills the performances and should not be used.

    RFID probe are not detected at all, or very badly.

    Check if the USB are correctly powered on. If your USB Hub needs a separated power source, be sure to have it connected. Use A+/A- connector on the RFID reader board to connect antenna instead of AR/A-.

    RFID probe were correctly detected 1 month ago, and not anymore.

    Check if the power of your USB hub is still working. Try another hub to check this.

    The real time and the time recorded is not the same (and I see red flashes at the bottom of the recording window)

    You may have launched the program with icy.exe. You must start it with “live mouse tracker for java 8.bat”, which will launch Icy for you with a specific configuration of the memory dedicated to real time applications. You should see no more than 1 second of time drift per 3 hours or recording.

    Tracks are cut for one frame unexpectedly or images hangs for a few seconds to up to 20 seconds.

    This is Kinect related issue. Several solutions are listed here: Get to Control Panel -> Hardware and Sound -> Sound -> Recording -> Kinect Microphone and enable it. Open the Microsoft Store Camera app and under Setting -> Change privacy settings -> Microphone -> Allow apps to access your microphone -> enable the microphone. Some RealTech sound driver seems to create problems (they can consume a lot of memory (more than 1GB) and CPU (1 Full proc). Uninstall those drivers. The Kinect may be connected on a USB3 that is not fast enough. Connect the Kinect to a USB3 that is on the back of the computer (avoid front panel).

    Other resources

    Created by the authors of Live Mouse Tracker

    MiceCraft is designed to ease the creation of behavioral experiments.

    It is a complete eco system including hardware design, real time control experiment control and data analysis.

    MiceCraft is fully compatible with Live Mouse Tracker but it is not required.

    Coming up this fall

    USV Toolbox is an extractor of vocalizations working with wav files.

    You can test it without any install on the USV Toolbox website, watch examples, listen to them and also process short samples of yours to see if the detection fits you.

    The website is for test purposes only, for the real mass processing of thousands of vocalizations, you can download the standalone desktop application.