> 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

ขั้นตอนนี้เราจะมาสร้าง AI กันด้วย Edge Impulse

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="https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MClo3nC-1US0rbK8Qau%2Fuploads%2FnOSuR23m4vrcARZLrapL%2Fs_12475FBD0E6FED7F3604164BF227AB8AD0F69BF54519CCD96D09A7F01B9C835F_1646193330038_image.png?alt=media&amp;token=d297f5a5-2fdb-465e-9305-3e52f57a0d93" 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>
