Magnetic nanoparticles-based colorimetric biosensor assay was developed by using proteolytic activity of plasmin as biomarker because in cases of mastitis, plasmin enhances the proteolysis of casein and reduces the quality of milk. Here, PLG is linked to mastitis.