Predict the probability of an event (Artificial Intelligence with PHP?)

I would like to use PHP to calculate a code number/index that tells me the probability of a certain event occurring in the current hour.

I have a database with a table Log, where every time a certain event is triggered by a user, the timestamp is stored (see picture). This data is used to predict with which probability a user will trigger an event in a certain hour (the value is low at night, higher in the afternoon and evening).

Visualization

So the system should be self-learning (maybe some kind of tiny artificial intelligence), depending on the behaviour of a certain user.

The big question is, how do I best implement this with PHP? Is there perhaps already something like that? My current idea is to create a function from the data like in the screenshot?

Hope for your help!

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.