# Contact quality gates (CQ Gates)

Contact quality and EEG quality from an EMOTIV headset is detected using EMOTIV's algorithms. &#x20;

When building an experiment, you can add contact quality gates at the beginning of each phase. When contact quality gates are enabled, if contact quality drops during a phase (below 100%), the participant will be prompted to adjust their headset before continuing to the next phase.<br>

#### What is contact quality?

Contact quality indicates the resistance between each sensor on a headset and a participant’s scalp. It does not directly measure the connection of the reference sensors.<br>

#### What is EEG quality?

Emotiv has developed a machine learning algorithm that assesses whether the EEG signals recorded are brain waves or noise. EEG quality is the best way to see if a headset is adjusted correctly and that the sensors have a good connection with a participant’s scalp. &#x20;

At the beginning of an experiment, the participant will be asked to adjust their headset (if needed) so its sensors achieve 100% EEG quality. When more than 80% EEG quality is achieved, all the sensors will be green in Emotiv Launcher and the participant can proceed with the experiment.<br>

![](https://lh4.googleusercontent.com/81jciYcGPg_eSGI8PwpZ11EGmlaxnHBgsg99DgzXTWWeb7oqKN7ouvDHVMk7lo41-uMyKT0tlFc7zMNDi5LyCvXwZ9UHEdN7wkAgrGVvAf9G0F7sn367lYYChqIpChpp47ApdW-8=s0)

![](https://lh5.googleusercontent.com/jjxYsDiSJ-oWVvN9Lpg0jbHyh_3UxBDFCCsUgPBsG7jXBGeZxtyph5bUnJ4wc1-Tx-NUOh-XzqzNQXmaM0WJKZ9adJtdIfEO25mjqtGtqH3Pc3iIiC17jN6Fnsi5GLkGMgf4lgYG=s0)

####

#### How do I add contact quality gates to my experiment?

To add contact quality gates to an experiment, click on the **CQ Gate** button![](https://lh5.googleusercontent.com/QPSuOJusiujzZa3AFBo4oFwku34icPBRNs1Mnw_OEAUpb8wKngxynhxWv_efFY0AXD6wAKc-ecuukoUfP4k3LYks8reT6Wki5R0ftvxi0wr8DFMmlRjxA0T_v5ywmGL_Bc6VkxRs=s0) at the top of the editing screen.  Then, select the phase(s) you want to apply contact quality gates to.

![](https://lh5.googleusercontent.com/svaXFgy_tmLZ8l3UQ-eBr64zXzy95IKtIRjnW8FbhazubD601u-ydVwMARW_K06p_RiwRh7OicJrwRUhWE2loQUwB1D-Jeqm9NFUrnSL8WUdL-bOS-XyXQ_s-jbWQQ3i60yo2xCF=s0)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://emotiv.gitbook.io/emotivpro-builder/phase-management-and-settings/contact-quality-gates-cq-gates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
