There is some related work here:

https://gitlab.com/romanrex19/madiator.com