Update process_confidence method in OPC activity to include metadata parameter for improved data handling.