Development of AI-based pathology biomarkers in gastrointestinal and liver cancer