There are two approaches for AI Modelling; Rule Based and Learning Based. The Rule based approach generates pre-defined outputs based on certain rules programmed by humans. Whereas, machine learning approach has its own rules based on the output and data used to train the models.
OR
Rule Based Approach Refers to the AI modelling where the relationship or patterns in data are defined by the developer. The machine follows the rules or instructions mentioned by the developer, and performs its task accordingly. Whereas in Learning based approach, the relationship or patterns in data are not defined by the developer. In this approach, random data is fed to the machine and it is left to the machine to figure out patterns and trends out of it