Piano roll MIDI import

Piano rolls have often been converted to MIDI files. Almost never are there a separation of left and right hands and never is there a time signature. Allthough they can be imported into Dorico and plays well, the notation is terrible.

Does anyone know a way to clean up the score - by using an AI app for example?
/Ragnar