> For the complete documentation index, see [llms.txt](https://docs.aic-eec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aic-eec.com/artificial-intelligence-ai/machine-learning/using-edge-impulse-for-ai-model.md).

# Using Edge Impulse for AI Model

1. สมัครสมาชิกเว็บ [Edge impulse](https://www.edgeimpulse.com/)

<div><figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646193282799_image.png" alt=""><figcaption></figcaption></figure> <figure><img src="/files/UUroksv3EVEPgpvD45iL" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646193813940_image.png" alt=""><figcaption></figcaption></figure>

2. หลังจาก้ข่ามาแล้วให้ทำการกดไปที่ Let’s build your first model in 5 minute

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646140458305_image.png" alt=""><figcaption></figcaption></figure>

3. ตรวจสอบไมโครโฟนที่ใช้งานว่าสามารถใช้งานได้ไหม แล้วพิมคำที่จะพูดเพื่อทำการฝึกสอน AI ไปจากตัวอย่างพี่ใช้คำว่า Hi \[name] ไปส่วนของพวกเราแล้วแต่เลยครับ

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646140486025_image.png" alt=""><figcaption></figcaption></figure>

4. ทำการ record ที่ตัวเองพูดโดยพูดแล้วหยุด 1 วินาทีเพื่อเว้นจังหวะให้เจ้าตัวจัดการข้อมูลสามารถทำงานได้

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646140540346_image.png" alt=""><figcaption></figcaption></figure>

5. เหมือนว่าที่เราพูดไปจะใช้ได้ไม่ถึง 9 ตัวอย่างคงต้องทำการเก็บข้อมูลต่อไปครับอัดใหม่ไปเรื่อยๆ จนได้ครบ

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646140623513_image.png" alt=""><figcaption></figcaption></figure>

6. หลังจากนั้นทำการกดไปที่ปุ่ม Next เพื่อทำการ augmentation data

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646140670056_image.png" alt=""><figcaption></figcaption></figure>

7. ระบบจำทำการใส่ noise รวมถึงเสียงอื่นๆเข้ามาฝึกสอนเพื่อให้ AI สามารถเรียนรู้และแยกแยะได้ดีขึ้น

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646140737642_image.png" alt=""><figcaption></figcaption></figure>

8. เรา generate data เสร็จแล้ว เย้!!!&#x20;

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646140764383_image.png" alt=""><figcaption></figcaption></figure>

9. หน้าต่างนี้จำทำการเลือกการเทรนชนิดของข้อมูลและความถี่ของข้อมูลเสียงที่รับเข้าไป

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646140784619_image.png" alt=""><figcaption></figcaption></figure>

10. ขั้นตอนนี้จะเป็นการปรับแต่งข้อมูลเพื่อให้ได้ส่วนที่ดีที่สุดในการไปฝึกสอน

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646140847163_image.png" alt=""><figcaption></figcaption></figure>

11. กด Generate feature เพื่อทำการสร้าง input node ในการเตรียมพร้อมที่จะทำการเทรน

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646141015692_image.png" alt=""><figcaption></figcaption></figure>

12. เริ่มทำการฝึกสอนเจ้า AI ตัวแรกของเรากัน ขั้นตอนนี้เรียกว่า Trian

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646141189626_image.png" alt=""><figcaption></figcaption></figure>

13. ทีนี้เรามาดูความถูกต้องของเจ้าตัว AI กันครับขั้นตอนนี้เรียกว่า Test&#x20;

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646141296664_image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646141304622_image.png" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

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

```
GET https://docs.aic-eec.com/artificial-intelligence-ai/machine-learning/using-edge-impulse-for-ai-model.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
