New device could identify which babies will struggle with br