Skip to main content
LPetr.1
Senior
April 16, 2026
Solved

Using MEMS Studio to generate custom machine learning decision tree

  • April 16, 2026
  • 2 replies
  • 125 views

Hey. I have recently received STEVAL-MKI109D + STEVAL-MKI238A for evaluating LIS2DUX12 accelerometer.

I have opened MEMS Studio, chose my evaluation board and performed FW upgrade as prompted by the MEMS Studio.

LPetr1_1-1776401611251.png

 

 

I have then proceeded to Sensor Evaluation -> Save to File to capture my own data for further processing. Each sample was taken using 5 seconds timeout. So I just click "Start" and proceed with moving the board for 5 seconds. I did the following:


1. Capture 3 "flip_down" samples of me flipping down the evaluation board.

2. Capture 4 "flip_up" samples of me flipping up the evaluation board.

3. Capture 4 "shaking" samples of me shaking the evaluation board.

4. Capture 3 "stationary" samples where the device was just sitting on the table.

 

After collecting all samples in .csv format, I have then proceeded to Advanced Features -> MLC and uploaded all collected .CSV data using different class names. See the below:

LPetr1_0-1776401808282.png

 

 

I noticed that STATIONARY and SHAKING samples have the Time option, but the FLIP_DOWN and FLIP_UP samples do not, even though all samples were collected one right after the other using the same accelerometer configuration and same setup.


As a result of that, I cannot proceed to the ARFF generation:

LPetr1_3-1776342317481.png

 

 

I tried to look at MEMS Studio tutorials and tried to look up information about this, but cannot find anything.

1. What does this "Time" option mean in Data patterns table? I have read datasheet for the Mems Studio but could not find any relevant information regarding this. https://www.st.com/resource/en/user_manual/um3233-getting-started-with-memsstudio-stmicroelectronics.pdf

2. What could have caused my "flip_down" and "flip_up" samples that I have collected be somehow different than "stationary" and "shaking"? How am I supposed to proceed with MLC if I cannot do that?

I am attaching the samples.zip file where I have all collected .csv's attached.

Hoping to get some clarifications, thanks in advance!

 

Best answer by Federica Bossi

Hi @LPetr.1 

The issue you reported is related to the handling of the special character _ in the label column of the CSV file.

In the current version, labels containing _ may not be processed correctly by MEMS Studio, which can cause the Time option to appear inconsistently in the Data Patterns table and block the ARFF generation step.

This will be fixed in the next version, where the _ character will be handled properly.

Workaround: please update the labels in your CSV files to avoid the _ character. For example, instead of:

  • flip_down
  • flip_up

use:

  • flipDown
  • flipUp

After updating the labels, the issue should no longer occur and you should be able to proceed with MLC and ARFF generation normally.

2 replies

Federica Bossi
Federica BossiBest answer
Technical Moderator
April 21, 2026

Hi @LPetr.1 

The issue you reported is related to the handling of the special character _ in the label column of the CSV file.

In the current version, labels containing _ may not be processed correctly by MEMS Studio, which can cause the Time option to appear inconsistently in the Data Patterns table and block the ARFF generation step.

This will be fixed in the next version, where the _ character will be handled properly.

Workaround: please update the labels in your CSV files to avoid the _ character. For example, instead of:

  • flip_down
  • flip_up

use:

  • flipDown
  • flipUp

After updating the labels, the issue should no longer occur and you should be able to proceed with MLC and ARFF generation normally.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
LPetr.1
LPetr.1Author
Senior
April 21, 2026

Thanks for clarifying!