A weakly supervised segmentation method was developed to quantify extracellular mucin-to-tumor area in H&E images. The gene discussed is MUC5AC; the disease is neoplasm.