Embedded AI

For general Flowcode discussion that does not belong in the other sections.
17712885438
Posts: 34
http://meble-kuchenne.info.pl
Joined: Thu Nov 02, 2023 8:11 am
Been thanked: 2 times

Embedded AI

Post by 17712885438 »

It is hoped to add the automatic generation component for the AI model of the sensor. Subsequently, a model training component can also be added.

BenR
Matrix Staff
Posts: 2255
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 618 times
Been thanked: 822 times

Re: Embedded AI

Post by BenR »

Hello,

Currently if you give AI some of the component sources (available from the wiki) of similar components as references to work from then it should be able to do this already. Throw in a Github C library for the sensor and you're good to go.

Note that you will get mixed results, sometimes it can do a good job and sometimes it gives you hallucinations. So you always need to thoroughly test things both work and make sense and then fix any issues you find.

Out of interest what sensors are you looking at and we can get them on the list for official support.

17712885438
Posts: 34
Joined: Thu Nov 02, 2023 8:11 am
Been thanked: 2 times

Re: Embedded AI

Post by 17712885438 »

It is hoped that FlowCode can add neuron components.

BenR
Matrix Staff
Posts: 2255
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 618 times
Been thanked: 822 times

Re: Embedded AI

Post by BenR »

Ok thanks, can you elaborate further on this?

17712885438
Posts: 34
Joined: Thu Nov 02, 2023 8:11 am
Been thanked: 2 times

Re: Embedded AI

Post by 17712885438 »

It is hoped that FLOWCODE can add the following components: Z = W*X+B, the weights W of the neuron, the bias B, the activation function RELU(Z), Y = RELU(Z), etc. The number of neurons and parameters can be set by oneself or generated through data training. Such FLOWCODE will lead the cutting-edge technology of embedded AI. The market will be booming.

BenR
Matrix Staff
Posts: 2255
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 618 times
Been thanked: 822 times

Re: Embedded AI

Post by BenR »

OK thanks for the clarification. I'll investigate for you.

17712885438
Posts: 34
Joined: Thu Nov 02, 2023 8:11 am
Been thanked: 2 times

Re: Embedded AI

Post by 17712885438 »

Thank you very much, looking forward to your further feedback.

BenR
Matrix Staff
Posts: 2255
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 618 times
Been thanked: 822 times

Re: Embedded AI

Post by BenR »

Would you like to have a go with this and see how you get on.

You can add the component to your version of Flowcode by copying the file below into your "C:\ProgramData\MatrixTSL\FlowcodeV11\Components" folder.
Neuron.fcpx
(4.21 KiB) Downloaded 43 times
The source code for the component is available here.
Neuron.fcfx
(31.2 KiB) Downloaded 45 times
If your happy with the functionality then I'll release it as an official component in the library updates.

We could also potentially build on this and provide higher level functionality that has n numbers of these Neurons as subcomponents.

Let us know how you're getting on.

17712885438
Posts: 34
Joined: Thu Nov 02, 2023 8:11 am
Been thanked: 2 times

Re: Embedded AI

Post by 17712885438 »

I will conduct numerous examples to verify it and inform you of the results. Thank you very much!

17712885438
Posts: 34
Joined: Thu Nov 02, 2023 8:11 am
Been thanked: 2 times

Re: Embedded AI

Post by 17712885438 »

There is an error in the macro command.
error.png
error.png (266.73 KiB) Viewed 446 times

Post Reply