A 3D model-based Internet of Things device management method and system
The AI model created by the neural network automatically performs 3D modeling and management of IoT devices, solving the inefficiency problem of manual modeling and manual judgment of location relationships in traditional methods, and realizing efficient and convenient management of IoT devices on 3D models. .
Patent Information
- Application Number
- CN202410781797.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-18
AI Technical Summary
Traditional IoT device management methods require manual modeling on 3D models, which is inefficient and requires manual judgment of device location relationships, which is time-consuming and labor-intensive, and cannot achieve convenient management.
By acquiring images of IoT devices for preprocessing, a data set is constructed, and a neural network is used to create an AI model for 3D modeling. The device model is automatically added to the 3D building model, the device distance is calculated and linkage rules are set to achieve automated management.
It improves the convenience of IoT device management, reduces the need for manual modeling and manual judgment, improves the efficiency of adding and managing device models, and enhances the setting and execution of linkage rules.
Smart Images

Figure CN118365820B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things device management, and in particular to an Internet of Things device management method and system based on a 3D model. Background Art
[0002] The Internet of Things (IoT) refers to the use of various information sensors, radio frequency identification technology, global positioning system, infrared sensors, laser scanners and other devices and technologies to collect any objects or processes that need to be monitored, connected, and interacted in real time, collect their sound, light, heat, electricity, mechanics, chemistry, biology, location and other required information, and achieve ubiquitous connection between objects and objects, objects and people through various possible network access, and realize intelligent perception, identification and management of objects and processes. With the rapid development of the Internet of Things, various IoT devices are emerging in an endless stream. In order to give full play to the use value of IoT devices, IoT devices need to be managed uniformly.
[0003] Traditionally, IoT devices are managed by simply adding corresponding icons to the map based on longitude and latitude, that is, IoT devices are managed only in two dimensions. However, many IoT devices are installed in the same building. The two-dimensional management method cannot intuitively display the location relationship, nor can it accurately set the corresponding linkage logic. Therefore, a method of adding IoT devices to the 3D model (3D building model) for management has emerged.
[0004] However, traditionally, in order to add IoT devices to 3D models, it is necessary to manually model the IoT devices, which results in low modeling efficiency. After the IoT devices are modeled, it is still necessary to manually determine the positional relationship of the IoT devices through the 3D model, which is time-consuming and labor-intensive.
[0005] Therefore, how to provide an IoT device management method and system based on a 3D model to improve the convenience of IoT device management has become a technical problem that needs to be solved urgently. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide an Internet of Things device management method and system based on a 3D model, so as to improve the convenience of Internet of Things device management.
[0007] In a first aspect, the present invention provides an IoT device management method based on a 3D model, comprising the following steps:
[0008] Step S1, obtaining a preset number of first device images of IoT devices, and constructing a data set after preprocessing each of the first device images;
[0009] Step S2: creating an AI model for 3D modeling of IoT devices based on a neural network, and training the AI model using the data set;
[0010] Step S3: obtaining a second image of the IoT device to be 3D modeled, inputting each of the second images into the trained AI model, generating a device model of the corresponding IoT device, and setting the first spatial coordinates and device type of each of the device models;
[0011] Step S4, obtaining a 3D building model, and automatically adding each device model to the 3D building model based on the first spatial coordinates;
[0012] Step S5: automatically calculating the device distance between each device model in the 3D building model based on each of the first space coordinates;
[0013] Step S6: grouping the IoT devices based on the device distance and device type, and setting linkage rules for the IoT devices in each group;
[0014] Step S7: managing the IoT devices based on the linkage rules.
[0015] Furthermore, the step S1 is specifically as follows:
[0016] A preset number of first device images of IoT devices of different device types are obtained, and each of the first device images is subjected to at least grayscale, binarization, and filtering operations, and then each of the first device images is cropped to remove the background to perform an image enhancement operation, and then each of the first device images is subjected to at least a sample expansion operation including rotation, scaling, and distortion to complete the preprocessing of each of the first device images, and a data set is constructed based on each of the preprocessed first device images.
[0017] Furthermore, the step S2 is specifically as follows:
[0018] Creating an AI model for 3D modeling of IoT devices based on a neural network, setting a loss function of the AI model, and dividing the data set into a training set and a validation set based on a preset ratio;
[0019] The AI model is trained using the training set until the loss value of the loss function is less than a preset loss threshold, and the hyperparameters of the AI model including at least a random dropout rate, a weight decay rate, and a learning rate are continuously optimized during the training process;
[0020] The trained AI model is verified using the verification set to determine whether the modeling accuracy of the AI model is greater than a preset accuracy threshold. If so, proceed to step S3; if not, expand the training set to continue training.
[0021] Furthermore, the step S4 is specifically as follows:
[0022] A 3D building model is acquired, a second spatial coordinate of the 3D building model is set, and each of the device models is automatically added to the 3D building model based on a mapping relationship between the first spatial coordinate and the second spatial coordinate.
[0023] Furthermore, the step S7 is specifically as follows:
[0024] The operation data of each IoT device is collected in real time, the corresponding operation data is displayed based on the click signal triggered by the device model, the operation data is monitored based on the linkage rules, and the corresponding IoT device is controlled to work, so as to manage the IoT device.
[0025] In a second aspect, the present invention provides an Internet of Things device management system based on a 3D model, comprising the following modules:
[0026] A data set construction module, used to obtain a preset number of first device images of IoT devices, and construct a data set after preprocessing each of the first device images;
[0027] An AI model training module, used to create an AI model for 3D modeling of IoT devices based on a neural network, and train the AI model using the data set;
[0028] An IoT device modeling module, used to obtain a second image of an IoT device to be 3D modeled, input each of the second images into a trained AI model, generate a device model of the corresponding IoT device, and set a first spatial coordinate and a device type of each of the device models;
[0029] A device model adding module, used for acquiring a 3D building model, and automatically adding each device model to the 3D building model based on the first spatial coordinates;
[0030] A device distance calculation module, used for automatically calculating the device distance between each device model in the 3D building model based on each of the first spatial coordinates;
[0031] A linkage rule setting module, used to group the IoT devices based on the device distance and device type, and set linkage rules for the IoT devices in each group;
[0032] The IoT device management module is used to manage IoT devices based on the linkage rules.
[0033] Furthermore, the data set construction module is specifically used for:
[0034] A preset number of first device images of IoT devices of different device types are obtained, and each of the first device images is subjected to at least grayscale, binarization, and filtering operations, and then each of the first device images is cropped to remove the background to perform an image enhancement operation, and then each of the first device images is subjected to at least a sample expansion operation including rotation, scaling, and distortion to complete the preprocessing of each of the first device images, and a data set is constructed based on each of the preprocessed first device images.
[0035] Furthermore, the AI model training module is specifically used for:
[0036] Creating an AI model for 3D modeling of IoT devices based on a neural network, setting a loss function of the AI model, and dividing the data set into a training set and a validation set based on a preset ratio;
[0037] The AI model is trained using the training set until the loss value of the loss function is less than a preset loss threshold, and the hyperparameters of the AI model including at least a random dropout rate, a weight decay rate, and a learning rate are continuously optimized during the training process;
[0038] The trained AI model is verified using the verification set to determine whether the modeling accuracy of the AI model is greater than a preset accuracy threshold. If so, the IoT device modeling module is entered; if not, the training set is expanded to continue training.
[0039] Furthermore, the device model adding module is specifically used for:
[0040] A 3D building model is acquired, a second spatial coordinate of the 3D building model is set, and each of the device models is automatically added to the 3D building model based on a mapping relationship between the first spatial coordinate and the second spatial coordinate.
[0041] Furthermore, the IoT device management module is specifically used for:
[0042] The operation data of each IoT device is collected in real time, the corresponding operation data is displayed based on the click signal triggered by the device model, the operation data is monitored based on the linkage rules, and the corresponding IoT device is controlled to work, so as to manage the IoT device.
[0043] The advantages of the present invention are:
[0044] 1. By acquiring a preset number of first device images of IoT devices, each first device image is pre-processed to construct a data set; an AI model for 3D modeling of IoT devices is created based on a neural network, and the AI model is trained using the data set; then, a second image of the IoT device to be 3D modeled is acquired, each second image is input into the trained AI model, a device model of the corresponding IoT device is generated, the first spatial coordinates and device type of each device model are set, and each device model is automatically added to the acquired 3D building model based on the first spatial coordinates; then, based on each first spatial coordinate, the device distance between each device model in the 3D building model is automatically calculated, based on the device distance and device type, each IoT device is grouped, the linkage rules of each grouped IoT device are set, and the IoT devices are managed based on the linkage rules; that is, the AI model created by the neural network automatically performs 3D modeling of the IoT device, without the need to manually model the IoT device as traditionally, and then, based on the first spatial coordinates of each device model, the device distance between each device model is automatically calculated, and the IoT device is managed based on the device distance, without the need to manually judge the position relationship of the IoT device through the 3D building model as traditionally, thereby greatly improving the convenience of IoT device management.
[0045] 2. Obtain a preset number of first device images of IoT devices of different device types, perform at least grayscale, binarization, and filtering operations on each first device image, then crop each first device image to remove the background to perform image enhancement operations, then perform at least rotation, scaling, and distortion sample expansion operations on each first device image to complete the preprocessing of each first device image, and construct a data set based on the preprocessed first device images; that is, the first device images in the data set are subjected to image enhancement and image expansion operations, and then the data set is used to train the AI model, thereby effectively improving the accuracy and generalization ability of AI model modeling.
[0046] 3. By continuously optimizing the AI model's hyperparameters, including at least the random inactivation rate, weight decay rate, and learning rate, during the AI model training process, the AI model has the best performance parameter combination, further ensuring the accuracy and speed of AI model modeling.
[0047] 4. Through the mapping relationship between the first spatial coordinates of the equipment model and the second spatial coordinates of the 3D building model, each equipment model is automatically added to the 3D building model, which greatly improves the efficiency of adding equipment models.
[0048] 5. By collecting the operating data of each IoT device in real time, the corresponding operating data is displayed based on the click signal triggered by the device model, the operating data is monitored based on the linkage rules, and the corresponding IoT devices are controlled to work. That is, when an abnormal event is monitored through the operating data of one of the IoT devices, the related IoT devices are immediately linked to work together based on the linkage rules, so as to effectively play the use value of the IoT devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0050] Figure 1 It is a flow chart of a method for managing Internet of Things devices based on a 3D model of the present invention.
[0051] Figure 2 It is a structural schematic diagram of an Internet of Things device management system based on a 3D model of the present invention. DETAILED DESCRIPTION
[0052] The technical solution in the embodiments of the present application has the following overall idea: the AI model created by the neural network automatically performs 3D modeling on the IoT devices, without the need to manually model the IoT devices as traditionally; and then automatically calculates the device distance between the device models based on the first spatial coordinates of each device model, and manages the IoT devices based on the device distance, without the need to manually determine the positional relationship of the IoT devices through 3D building models as traditionally, so as to improve the convenience of IoT device management.
[0053] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of the present invention is a method for managing IoT devices based on a 3D model, comprising the following steps:
[0054] Step S1, obtaining a preset number of first device images of IoT devices, and constructing a data set after preprocessing each of the first device images;
[0055] Step S2: creating an AI model for 3D modeling of IoT devices based on a neural network, and training the AI model using the data set;
[0056] Step S3: obtaining a second image of the IoT device to be 3D modeled, inputting each of the second images into the trained AI model, generating a device model of the corresponding IoT device, and setting the first spatial coordinates and device type of each of the device models;
[0057] Step S4, obtaining a 3D building model, and automatically adding each device model to the 3D building model based on the first spatial coordinates;
[0058] Step S5: automatically calculating the device distance between each device model in the 3D building model based on each of the first spatial coordinates; that is, calculating the device distance between each device model based on the spatial vector corresponding to each of the first spatial coordinates, for subsequent linkage between IoT devices;
[0059] Step S6: grouping the IoT devices based on the device distance and device type, and setting linkage rules for the IoT devices in each group;
[0060] Step S7: managing the IoT devices based on the linkage rules.
[0061] By acquiring the first device images of a preset number of IoT devices, each first device image is preprocessed to construct a data set; an AI model for 3D modeling of IoT devices is created based on a neural network, and the AI model is trained using the data set; then, a second image of the IoT device to be 3D modeled is acquired, each second image is input into the trained AI model, a device model of the corresponding IoT device is generated, the first spatial coordinates and device type of each device model are set, and each device model is automatically added to the acquired 3D building model based on the first spatial coordinates; then, based on each first spatial coordinate, the device distance between each device model in the 3D building model is automatically calculated, based on the device distance and device type, each IoT device is grouped, the linkage rules of each grouped IoT device are set, and the IoT devices are managed based on the linkage rules; that is, the AI model created by the neural network automatically performs 3D modeling of IoT devices, without the need to manually model IoT devices as traditionally, and then, based on the first spatial coordinates of each device model, the device distance between each device model is automatically calculated, and the IoT devices are managed based on the device distance, without the need to manually judge the positional relationship of IoT devices through 3D building models as traditionally, thereby greatly improving the convenience of IoT device management.
[0062] The step S1 is specifically as follows:
[0063] A preset number of first device images of IoT devices of different device types are obtained, and each of the first device images is subjected to at least grayscale, binarization, and filtering operations, and then each of the first device images is cropped to remove the background to perform an image enhancement operation, and then each of the first device images is subjected to at least a sample expansion operation including rotation, scaling, and distortion to complete the preprocessing of each of the first device images, and a data set is constructed based on each of the preprocessed first device images.
[0064] By obtaining a preset number of first device images of IoT devices of different device types, performing at least grayscale, binarization, and filtering operations on each first device image, then cropping each first device image to remove the background to perform image enhancement operations, and then performing at least sample expansion operations including rotation, scaling, and distortion on each first device image to complete the preprocessing of each first device image, and constructing a data set based on each preprocessed first device image; that is, the first device images in the data set are subjected to image enhancement and image expansion operations, and then the data set is used to train the AI model, thereby effectively improving the accuracy and generalization ability of AI model modeling.
[0065] The step S2 is specifically as follows:
[0066] Creating an AI model for 3D modeling of IoT devices based on a neural network, setting a loss function of the AI model, and dividing the data set into a training set and a validation set based on a preset ratio;
[0067] The AI model is trained using the training set until the loss value of the loss function is less than a preset loss threshold, and the hyperparameters of the AI model including at least a random dropout rate, a weight decay rate, and a learning rate are continuously optimized during the training process;
[0068] The trained AI model is verified using the verification set to determine whether the modeling accuracy of the AI model is greater than a preset accuracy threshold. If so, proceed to step S3; if not, expand the training set to continue training.
[0069] By continuously optimizing the AI model's hyperparameters, including at least the random inactivation rate, weight decay rate, and learning rate, during the AI model training process, the AI model has the optimal performance parameter combination, further ensuring the accuracy and speed of AI model modeling.
[0070] The step S4 is specifically as follows:
[0071] A 3D building model is acquired, a second spatial coordinate of the 3D building model is set, and each of the device models is automatically added to the 3D building model based on a mapping relationship between the first spatial coordinate and the second spatial coordinate.
[0072] Through the mapping relationship between the first spatial coordinates of the device model and the second spatial coordinates of the 3D building model, each device model is automatically added to the 3D building model, which greatly improves the efficiency of adding device models.
[0073] The step S7 is specifically as follows:
[0074] Collect the operation data of each IoT device in real time, display the corresponding operation data based on the click signal triggered by the device model, monitor the operation data based on the linkage rules, control the corresponding IoT device to work, and display the device models corresponding to the linked IoT devices on the 3D building model in a differentiated manner to manage the IoT devices. For example, set the IoT device whose device type is a temperature sensor, and the temperature sensor, solenoid valve for controlling fire sprinkler, camera, and smoke sensor within a device distance of 50 meters are grouped in the same group, and set the linkage rules of the group as follows: when one of the temperature sensors detects a fire, control the temperature sensor and smoke sensor within 50 meters to report the corresponding data in real time, start the camera within 50 meters to shoot the on-site video, and open the solenoid valve within 50 meters for fire sprinkler, and display the currently linked IoT device in red on the 3D building model.
[0075] By collecting the operating data of each IoT device in real time, the corresponding operating data is displayed based on the click signal triggered by the device model, the operating data is monitored based on the linkage rules, and the corresponding IoT devices are controlled to work. That is, when an abnormal event is monitored through the operating data of one of the IoT devices, the related IoT devices are immediately linked to work together based on the linkage rules, thereby effectively bringing into play the use value of the IoT devices.
[0076] A preferred embodiment of the Internet of Things device management system based on a 3D model of the present invention includes the following modules:
[0077] A data set construction module, used to obtain a preset number of first device images of IoT devices, and construct a data set after preprocessing each of the first device images;
[0078] An AI model training module, used to create an AI model for 3D modeling of IoT devices based on a neural network, and train the AI model using the data set;
[0079] An IoT device modeling module, used to obtain a second image of an IoT device to be 3D modeled, input each of the second images into a trained AI model, generate a device model of the corresponding IoT device, and set a first spatial coordinate and a device type of each of the device models;
[0080] A device model adding module, used for acquiring a 3D building model, and automatically adding each device model to the 3D building model based on the first spatial coordinates;
[0081] A device distance calculation module, used to automatically calculate the device distance between each device model in the 3D building model based on each of the first spatial coordinates; that is, the device distance between each device model is calculated based on the spatial vector corresponding to each of the first spatial coordinates, for subsequent linkage between IoT devices;
[0082] A linkage rule setting module, used to group the IoT devices based on the device distance and device type, and set linkage rules for the IoT devices in each group;
[0083] The IoT device management module is used to manage IoT devices based on the linkage rules.
[0084] By acquiring the first device images of a preset number of IoT devices, each first device image is preprocessed to construct a data set; an AI model for 3D modeling of IoT devices is created based on a neural network, and the AI model is trained using the data set; then, a second image of the IoT device to be 3D modeled is acquired, each second image is input into the trained AI model, a device model of the corresponding IoT device is generated, the first spatial coordinates and device type of each device model are set, and each device model is automatically added to the acquired 3D building model based on the first spatial coordinates; then, based on each first spatial coordinate, the device distance between each device model in the 3D building model is automatically calculated, based on the device distance and device type, each IoT device is grouped, the linkage rules of each grouped IoT device are set, and the IoT devices are managed based on the linkage rules; that is, the AI model created by the neural network automatically performs 3D modeling of IoT devices, without the need to manually model IoT devices as traditionally, and then, based on the first spatial coordinates of each device model, the device distance between each device model is automatically calculated, and the IoT devices are managed based on the device distance, without the need to manually judge the positional relationship of IoT devices through 3D building models as traditionally, thereby greatly improving the convenience of IoT device management.
[0085] The data set construction module is specifically used for:
[0086] A preset number of first device images of IoT devices of different device types are obtained, and each of the first device images is subjected to at least grayscale, binarization, and filtering operations, and then each of the first device images is cropped to remove the background to perform an image enhancement operation, and then each of the first device images is subjected to at least a sample expansion operation including rotation, scaling, and distortion to complete the preprocessing of each of the first device images, and a data set is constructed based on each of the preprocessed first device images.
[0087] By obtaining a preset number of first device images of IoT devices of different device types, performing at least grayscale, binarization, and filtering operations on each first device image, then cropping each first device image to remove the background to perform image enhancement operations, and then performing at least sample expansion operations including rotation, scaling, and distortion on each first device image to complete the preprocessing of each first device image, and constructing a data set based on each preprocessed first device image; that is, the first device images in the data set are subjected to image enhancement and image expansion operations, and then the data set is used to train the AI model, thereby effectively improving the accuracy and generalization ability of AI model modeling.
[0088] The AI model training module is specifically used for:
[0089] Creating an AI model for 3D modeling of IoT devices based on a neural network, setting a loss function of the AI model, and dividing the data set into a training set and a validation set based on a preset ratio;
[0090] The AI model is trained using the training set until the loss value of the loss function is less than a preset loss threshold, and the hyperparameters of the AI model including at least a random dropout rate, a weight decay rate, and a learning rate are continuously optimized during the training process;
[0091] The trained AI model is verified using the verification set to determine whether the modeling accuracy of the AI model is greater than a preset accuracy threshold. If so, the IoT device modeling module is entered; if not, the training set is expanded to continue training.
[0092] By continuously optimizing the AI model's hyperparameters, including at least the random inactivation rate, weight decay rate, and learning rate, during the AI model training process, the AI model has the optimal performance parameter combination, further ensuring the accuracy and speed of AI model modeling.
[0093] The device model adding module is specifically used for:
[0094] A 3D building model is acquired, a second spatial coordinate of the 3D building model is set, and each of the device models is automatically added to the 3D building model based on a mapping relationship between the first spatial coordinate and the second spatial coordinate.
[0095] Through the mapping relationship between the first spatial coordinates of the device model and the second spatial coordinates of the 3D building model, each device model is automatically added to the 3D building model, which greatly improves the efficiency of adding device models.
[0096] The IoT device management module is specifically used for:
[0097] Collect the operation data of each IoT device in real time, display the corresponding operation data based on the click signal triggered by the device model, monitor the operation data based on the linkage rules, control the corresponding IoT device to work, and display the device models corresponding to the linked IoT devices on the 3D building model in a differentiated manner to manage the IoT devices. For example, set the IoT device whose device type is a temperature sensor, and the temperature sensor, solenoid valve for controlling fire sprinkler, camera, and smoke sensor within a device distance of 50 meters are grouped in the same group, and set the linkage rules of the group as follows: when one of the temperature sensors detects a fire, control the temperature sensor and smoke sensor within 50 meters to report the corresponding data in real time, start the camera within 50 meters to shoot the on-site video, and open the solenoid valve within 50 meters for fire sprinkler, and display the currently linked IoT device in red on the 3D building model.
[0098] By collecting the operating data of each IoT device in real time, the corresponding operating data is displayed based on the click signal triggered by the device model, the operating data is monitored based on the linkage rules, and the corresponding IoT devices are controlled to work. That is, when an abnormal event is monitored through the operating data of one of the IoT devices, the related IoT devices are immediately linked to work together based on the linkage rules, thereby effectively bringing into play the use value of the IoT devices.
[0099] In summary, the advantages of the present invention are:
[0100] 1. By acquiring a preset number of first device images of IoT devices, each first device image is pre-processed to construct a data set; an AI model for 3D modeling of IoT devices is created based on a neural network, and the AI model is trained using the data set; then, a second image of the IoT device to be 3D modeled is acquired, each second image is input into the trained AI model, a device model of the corresponding IoT device is generated, the first spatial coordinates and device type of each device model are set, and each device model is automatically added to the acquired 3D building model based on the first spatial coordinates; then, based on each first spatial coordinate, the device distance between each device model in the 3D building model is automatically calculated, based on the device distance and device type, each IoT device is grouped, the linkage rules of each grouped IoT device are set, and the IoT devices are managed based on the linkage rules; that is, the AI model created by the neural network automatically performs 3D modeling of the IoT device, without the need to manually model the IoT device as traditionally, and then, based on the first spatial coordinates of each device model, the device distance between each device model is automatically calculated, and the IoT device is managed based on the device distance, without the need to manually judge the position relationship of the IoT device through the 3D building model as traditionally, thereby greatly improving the convenience of IoT device management.
[0101] 2. Obtain a preset number of first device images of IoT devices of different device types, perform at least grayscale, binarization, and filtering operations on each first device image, then crop each first device image to remove the background to perform image enhancement operations, then perform at least rotation, scaling, and distortion sample expansion operations on each first device image to complete the preprocessing of each first device image, and construct a data set based on the preprocessed first device images; that is, the first device images in the data set are subjected to image enhancement and image expansion operations, and then the data set is used to train the AI model, thereby effectively improving the accuracy and generalization ability of AI model modeling.
[0102] 3. By continuously optimizing the AI model's hyperparameters, including at least the random inactivation rate, weight decay rate, and learning rate, during the AI model training process, the AI model has the best performance parameter combination, further ensuring the accuracy and speed of AI model modeling.
[0103] 4. Through the mapping relationship between the first spatial coordinates of the equipment model and the second spatial coordinates of the 3D building model, each equipment model is automatically added to the 3D building model, which greatly improves the efficiency of adding equipment models.
[0104] 5. By collecting the operating data of each IoT device in real time, the corresponding operating data is displayed based on the click signal triggered by the device model, the operating data is monitored based on the linkage rules, and the corresponding IoT devices are controlled to work. That is, when an abnormal event is monitored through the operating data of one of the IoT devices, the related IoT devices are immediately linked to work together based on the linkage rules, so as to effectively play the use value of the IoT devices.
[0105] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A 3D model-based IoT device management method, characterized in that: The steps include: Step S1, obtaining a preset number of first device images of IoT devices, and constructing a data set after preprocessing each of the first device images; Step S2: creating an AI model for 3D modeling of IoT devices based on a neural network, and training the AI model using the data set; Step S3: obtaining a second image of the IoT device to be 3D modeled, inputting each of the second images into the trained AI model, generating a device model of the corresponding IoT device, and setting the first spatial coordinates and device type of each of the device models; Step S4, obtaining a 3D building model, and automatically adding each device model to the 3D building model based on the first spatial coordinates; Step S5: automatically calculating the device distance between each device model in the 3D building model based on each of the first space coordinates; Step S6: grouping the IoT devices based on the device distance and device type, and setting linkage rules for the IoT devices in each group; Step S7: managing the IoT devices based on the linkage rules; The step S7 is specifically as follows: The operation data of each IoT device is collected in real time, the corresponding operation data is displayed based on the click signal triggered by the device model, the operation data is monitored based on the linkage rule, the corresponding IoT device is controlled to work, and the device models corresponding to the linked IoT devices are displayed differentially on the 3D building model to manage the IoT devices.
2. The method for managing IoT devices based on a 3D model as claimed in claim 1, characterized in that: The step S1 is specifically as follows: A preset number of first device images of IoT devices of different device types are obtained, and each of the first device images is subjected to at least grayscale, binarization and filtering operations, and then each of the first device images is cropped to remove the background to perform an image enhancement operation, and then each of the first device images is subjected to at least a sample expansion operation including rotation, scaling and distortion to complete the preprocessing of each of the first device images, and a data set is constructed based on each of the preprocessed first device images.
3. The method for managing IoT devices based on a 3D model as claimed in claim 1, characterized in that: The step S2 is specifically as follows: Creating an AI model for 3D modeling of IoT devices based on a neural network, setting a loss function of the AI model, and dividing the data set into a training set and a validation set based on a preset ratio; The AI model is trained using the training set until the loss value of the loss function is less than a preset loss threshold, and the hyperparameters of the AI model including at least a random dropout rate, a weight decay rate, and a learning rate are continuously optimized during the training process; The trained AI model is verified using the verification set to determine whether the modeling accuracy of the AI model is greater than a preset accuracy threshold. If so, proceed to step S3; if not, expand the training set to continue training.
4. The method for managing IoT devices based on a 3D model as claimed in claim 1, characterized in that: The step S4 is specifically as follows: A 3D building model is acquired, a second spatial coordinate of the 3D building model is set, and each of the device models is automatically added to the 3D building model based on a mapping relationship between the first spatial coordinate and the second spatial coordinate.
5. An IoT device management system based on a 3D model, characterized in that: Includes the following modules: A data set construction module, used to obtain a preset number of first device images of IoT devices, and construct a data set after preprocessing each of the first device images; An AI model training module, used to create an AI model for 3D modeling of IoT devices based on a neural network, and train the AI model using the data set; An IoT device modeling module, used to obtain a second image of an IoT device to be 3D modeled, input each of the second images into a trained AI model, generate a device model of the corresponding IoT device, and set a first spatial coordinate and a device type of each of the device models; A device model adding module, used for acquiring a 3D building model, and automatically adding each device model to the 3D building model based on the first spatial coordinates; A device distance calculation module, used for automatically calculating the device distance between each device model in the 3D building model based on each of the first spatial coordinates; A linkage rule setting module, used to group the IoT devices based on the device distance and device type, and set linkage rules for the IoT devices in each group; An IoT device management module, used to manage IoT devices based on the linkage rules; The IoT device management module is specifically used for: The operation data of each IoT device is collected in real time, the corresponding operation data is displayed based on the click signal triggered by the device model, the operation data is monitored based on the linkage rule, the corresponding IoT device is controlled to work, and the device models corresponding to the linked IoT devices are displayed differentially on the 3D building model to manage the IoT devices.
6. The 3D model-based IoT device management system according to claim 5, characterized in that: The data set construction module is specifically used for: A preset number of first device images of IoT devices of different device types are obtained, and each of the first device images is subjected to at least grayscale, binarization and filtering operations, and then each of the first device images is cropped to remove the background to perform an image enhancement operation, and then each of the first device images is subjected to at least a sample expansion operation including rotation, scaling and distortion to complete the preprocessing of each of the first device images, and a data set is constructed based on each of the preprocessed first device images.
7. The 3D model-based IoT device management system according to claim 5, characterized in that: The AI model training module is specifically used for: Creating an AI model for 3D modeling of IoT devices based on a neural network, setting a loss function of the AI model, and dividing the data set into a training set and a validation set based on a preset ratio; The AI model is trained using the training set until the loss value of the loss function is less than a preset loss threshold, and the hyperparameters of the AI model including at least a random dropout rate, a weight decay rate, and a learning rate are continuously optimized during the training process; The trained AI model is verified using the verification set to determine whether the modeling accuracy of the AI model is greater than a preset accuracy threshold. If so, the IoT device modeling module is entered; if not, the training set is expanded to continue training.
8. The 3D model-based IoT device management system according to claim 5, characterized in that: The device model adding module is specifically used for: A 3D building model is acquired, a second spatial coordinate of the 3D building model is set, and each of the device models is automatically added to the 3D building model based on a mapping relationship between the first spatial coordinate and the second spatial coordinate.
Citation Information
Patent Citations
Three-dimensional modeling method and device
CN107454866A
Internet of Things application management method based on GIS (Geographic Information System)
CN117687546A
