ML model in smart contracts

Hey Guys,
I’ve been wondering, is there any way possible to implement ML models in smart contracts.
What I’m looking for is a way to use an unsupervised model in smart contracts to detect anomalies in healthcare data.
I came across an article, stating to use “machine learning algorithms as oracles” in smart contracts. Don’t know if that’s viable. Can there be any other way possible to achieve the same?

Any help is appreciated. :slightly_smiling_face: