Yes, it is possible using existing datasets. However, it is suggest to perform a dedicated data collection campaign for a better accuracy of the model.
Quality of data logs is a key point for Machine Learning based algorithms, since the model is built from the data. It is important to correctly acquire and label data. You can find a design tip document on our website, with some tips for a good AI algorithm realization. You can find the document at the following link: st.com/dt0139