An Internet of Things (IoT) system for determining a continuous gas supply time based on smart gas, comprising a smart gas user platform, a smart gas service platform, a smart gas management platform, a smart gas sensor network platform, and a smart gas object platform, wherein the smart gas user platform is configured to upload user feedback data to the smart gas management platform via the smart gas service platform based on a gas user sub-platform, the smart gas service platform is configured to obtain the continuous gas supply time from the smart gas management platform and sends the continuous gas supply time to the smart gas user platform, the smart gas user platform is configured as a terminal device, the smart gas object platform includes valve control equipment, and the smart gas management platform is configured to:
- obtain operation data, a time feature, and the user feedback data, the operation data including gas usage data and gas outage feedback data of an industrial and commercial unit;
- construct, based on the operation data, the time feature, and the user feedback data, a feature vector, and match the feature vector to a vector database to determine a gas flow trend of a low balance user;
- predict, based on the gas flow trend and the time feature, a planned gas outage time;
- determine, based on a candidate continuous gas supply time, the planned gas outage time, the time feature, and the gas outage feedback data, a gas outage influence value through a first model, wherein the first model is a neural network model, the first model is obtained by training based on first training samples with first labels, the first training samples include sample historical continuous gas supply times, sample historical planned gas outage times, sample historical time features, sample historical gas flow trends, and sample historical gas outage feedback data of sample historical moments, the historical gas outage feedback data refers to gas outage feedback data prior to a historical moment, the first labels are labeled based on gas outage influence values corresponding to the historical continuous gas supply times, the gas outage influence values corresponding to the historical continuous gas supply times are determined based on subsequent user feedback, and the subsequent user feedback includes a user gas application time and a user attitude feedback score after an actual gas outage;
- determine the continuous gas supply time based on the gas outage influence value;
- and
- control, based on the continuous gas supply time, the smart gas object platform to continuously supply gas to the low balance user using the valve control equipment based on the continuous gas supply time.