Performance analysis of a 2D photonic crystal-based biosensor for cervical and skin cancer detection with machine learning-based data classification | Synapse