I have been studying about kaa iot platform from couple of days. I have came across that it provides implementation of digital twin but i no where found that kaa only registers the devices data as digital twins or can produce statistical analysis for preventive maintenance.
Our application needs to perform predictive/statistical analysis on device data collected as digital twins to identify any failure cases.
I don't really know the KaaIoT plaform well enough to answer this directly, but there are alternatives as well.
You may want to try out https://www.bosch-iot-suite.com/analytics/ for free and see if this is what you are looking for. The tutorial shows how to get started with anomaly detection.
There is an API to access your Digital Twin data. The technology behind that is the Eclipse Ditto open source project, but that does not contain any advanced analytics functionality when run on-premises.
Disclaimer: I work for the vendor.