International Business Machines Corp. (IBM) has secured a contract to build a food-monitoring system for a business in China.