Arduinos have very little processing power and limited capabilities. You would have to model something on a real machine, let's say in Python, and then transfer it to Arduino's language. Based on your initial post, you really have no idea what you're talking about. Getting Arduino to run any AI based model should be fairly difficult.
Raspberry Pi would be more suitable for AI than Arduino.