> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/sensor-setup/shimmer/emg-study-design-normalization.md).

# EMG Study Design: Normalization

Normalize EMG to maximum voluntary contraction so you can average muscle activity across respondents, compare muscles and set peak thresholds.

If you want purely qualitative data from your EMG recordings ("Does it look like there is activation or not?"), then EMG with a minimum of post-processing, or even raw EMG data might suit your needs.

However, there is a lot of variability in EMG signals between muscles and people, and within the same person on different days. Sources of variability include:

* The amount of subcutaneous fat between the electrode and muscle
* The location of the electrode relative to the muscle
* Skin impedance affecting the electrical connection through the skin
* Electrical noise from surroundings

If you want quantifiable results out of your EMG, or if you are comparing relative activity levels between individuals, or within the same individual on different days, you need an EMG metric that is consistent between individuals. Baselining and normalization help with this.

Normalization, in this context, means to adjust values on different scales (different muscles, different people, different times) to a notionally common scale. In the context of EMG, it's most common to normalize EMG to "maximum voluntary contraction", or the EMG generated during maximum contraction of the muscle.

This way, regardless of respondent, stimulus, or muscle, the units for EMG will always be "percentage of max (%)". Normalization is necessary if you want to do any of the following:

* averaging muscle activity of multiple respondents
* comparing activity between different muscles
* designing peak detection or thresholding algorithms.

In order to normalize EMG to max, you need to have a sense of what a 100% contraction looks like. This means that, when you design your study, you must include a "maximum contraction" stimulus where respondents are asked to contract the muscles being measured as hard as they can. For example, if you're doing facial EMG and you're recording from zygomaticus, have an instructions slide where respondents are asked to smile as hard as they can. The EMG collected during this trial will be the "100%" reference that all future data collections will refer back to.

![maxslide.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-39ad1d6fca9dda9fe70884b41b51c12bc1c6f57b%2F0b5f109d63_apcgdpqsus3w27qqtn6w.webp?alt=media)

For example, say you want to know how much the zygomaticus muscle is activated when you're drinking from a cup, and drinking from a straw. In iMotions, you have set up a study with three stimuli: maximum contraction, cup, and straw. The stimuli are listed as three instruction slides.

![2017-06-15\_1153.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-eaf72df04122c3ff493d468a4fe9467c0f60ee3f%2F480075ba63_2017-06-15_1153.webp?alt=media)

Here is the raw EMG data, plotted side-by-side.

![drinksipraw.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-690cbccf8bbee06827375035219c204f02df956e%2F4611b2a425_drinksipraw.webp?alt=media)

You can tell that the maximum contraction has way more zygomaticus activity compared to the drinking or sipping conditions, but there's no way to get an accurate quantifiable metric from this data alone.

Post-process the data to get the linear envelope of the signal.

![voltsonly.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c95452b4bba640c10a99e394214d77c521343522%2Fb99ff22056_voltsonly.webp?alt=media)

Now it's easy to compare conditions by voltage. But, if you're trying to average multiple respondents, you want to normalize the drink and straw conditions to the voltage generated by the max contraction.

The peak of the maximum smile trial is 0.149 mV, so this is what we count as 100%. To normalize, divide each of the three data streams by 0.149.

![ZygomaticusDrinkingSipping.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-821888a55724c0f00880714ebb67453732d24aae%2F096c2b05a2_zygomaticusdrinkingsipping.webp?alt=media)

Now, you can see that the Y-axis of these graphs is listed as % of maximum contraction. Based off this graph, it seems that both drinking from a cup and drinking from a straw only activate zygomaticus up to 10% of its maximum contraction.

With these metrics, it can now be easy to average muscle activation between respondents (since they are now on the same "scale"). Also, if you want to define peak detection or thresholding algorithms, these parameters are much easier to define (say, counting a peak as when the signal exceeds 20% activation).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/sensor-setup/shimmer/emg-study-design-normalization.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
