A system for communal facilities management in a smart city based on an Internet of Things, comprising a user platform, a service platform, a management platform, a sensor network platform, and an object platform, wherein the system further comprises computer-readable storage medium storing a computer instruction, when executed by at least one processor of a computer, the at least one processor is directed to cause the system to:
- obtain first cleanliness information of the communal facilities in a target area at a first time point, wherein the first time point is a time point when the communal facilities were cleaned for last time;
- obtain weather information, construction information, factory information, and traffic information of the target area during a target time period, wherein the target time period is a time period between the first time point and a second time point;
- wherein the first cleanliness information includes a first ash deposit degree score, and the first ash deposit degree score represents cleanliness of the communal facilities at the first time point;
- determine second cleanliness information of the communal facilities at the second time point based on the first cleanliness information, the weather information, the construction information, the factory information, and the traffic information through a cleanliness assessment model;
- wherein the second cleanliness information includes a second ash deposit degree score, and the second ash deposit degree score represents cleanliness of the communal facilities at the second time point;
- wherein the cleanliness assessment model is a machine learning model, and the cleanliness assessment model includes at least a vectorization processing layer and a cleanliness assessment layer, wherein
- an input of the vectorization processing layer includes the weather information, the construction information, the factory information, and the traffic information, and an output of the vectorization processing layer includes vector information;
- an input of the cleanliness assessment layer includes the vector information and the first cleanliness information, and an output of the cleanliness assessment layer includes the second ash deposit degree score;
- wherein the vectorization processing layer and the cleanliness assessment layer are obtained by joint training based on training samples and labels, the training samples include historical first clean information, historical weather information, historical construction information, historical factory information, and historical traffic information, and the labels include the second ash deposit degree score;
- wherein the joint training includes:
- inputting the training samples to an initial vectorization processing layer;
- inputting an output of the initial vectorization processing layer to an initial cleanliness assessment layer;
- generating a loss function based on an output of the initial cleanliness assessment layer and the labels;
- updating iteratively parameters of the initial vectorization processing layer and the initial cleanliness assessment layer based on the loss function until preset conditions are satisfied, wherein the preset conditions include that the loss function is less than a threshold, converges, or a training period reaches a period threshold;
- determine, based on the second cleanliness information, target cleanliness information of the communal facilities at the second time point;
- wherein the target cleanliness information includes a target ash deposit degree score, wherein the determining, based on the second cleanliness information, target cleanliness information of the communal facilities at the second time point includes:
- when the second ash deposit degree score is greater than a preset ash deposit degree threshold, performing a plurality of rounds of iterative updates on the second ash deposit degree score based on a preset algorithm to obtain an updated second ash deposit degree score, including obtaining reference ash deposit degree scores of a plurality of reference communal facilities in the target area at the second time point;
- obtaining first facility information of the communal facilities and second facility information of the plurality of reference communal facilities;
- constructing graph structure data based on the first facility information, the second facility information, the second ash deposit degree score, and the reference ash deposit degree scores;
- determining nodes corresponding to the communal facilities as first nodes to be updated;
- for each of the plurality of reference communal facilities, determining a node corresponding to a reference communal facility as a second node to be updated when a reference ash deposit degree score corresponding to the reference communal facility is greater than an ash deposit level threshold;
- for each of the plurality of rounds of iterative updates, updating the first nodes to be updated to obtain updated first nodes to be updated, and updating the second nodes to be updated to obtain updated second nodes to be updated;
- when the plurality of rounds of iterative update satisfies a preset iteration stopping condition, stopping the plurality of rounds of iterative update, and determining the second ash deposit degree score corresponding to the updated first nodes to be updated as the updated second ash deposit degree score;
- determining, based on the updated second ash deposit degree score, the target ash deposit degree score;
- determine the communal facilities as target communal facilities when the target cleanliness information of the communal facilities satisfies a preset condition, and determine cleaning instructions for cleaning the target communal facilities;
- and
- send the cleaning instructions to the object platform through the sensor network platform, wherein the object platform is configured to clean the target communal facilities.