tokens: Recent research suggests that video - based pain detection can be formulated as a weakly supervised learning problem , and multiple instance learning ( MIL ) is an effective machine learning tool to handle this problem .