Detainer supervision method and system, computer equipment and storage medium

Through RFID technology, data is collected and processed in real time, combined with digital twin technology, precise position monitoring and abnormal information detection of detainees are realized, solving the problems of low positioning accuracy and untimely data updates in the existing technology, and improving the efficiency and security of monitoring.

CN119578447AInactive Publication Date: 2025-03-07中亿丰数字科技集团股份有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510131282.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-06
Publication Date
2025-03-07
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing personnel positioning and monitoring methods have low positioning accuracy, untimely data updates, and insufficient warning of abnormal situations, making it difficult to achieve real-time, accurate and safe intelligent supervision of detainees.

Method used

Data is collected and uploaded in real time through RFID tags with unique IDs, filtered invalid data, converted signal strength into physical distance, calculated the exact position of each detainee, and mapped the position data to the actual physical coordinates of the monitoring area, displayed in real time on the digital twin large screen to obtain abnormal information.

Benefits of technology

It improves positioning accuracy and monitoring efficiency, enhances the visualization effect of monitoring, reduces supervision complexity, improves the security and effectiveness of monitoring, and enhances the reliability and security level of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119578447A_ABST
    Figure CN119578447A_ABST
Patent Text Reader

Abstract

The invention discloses a prisoner supervision method and system, computer equipment and a storage medium, and relates to the technical field of RFID and digital twinning, and the method comprises the steps: collecting and uploading related data in real time through an RFID tag with a unique ID, filtering invalid data, and converting the signal intensity into a physical distance; calculating the accurate position of each detention person, mapping the position data of the detention persons to the actual physical coordinates of the monitoring area, and displaying the actual physical coordinates on a digital twin large screen; the position of a person is monitored in real time through a large screen, and abnormal information is obtained. According to the method, the system can accurately position the position of a person through a mechanism of converting the signal intensity into the physical distance, the positioning precision and the monitoring efficiency of the system are improved, the monitoring is more efficient and accurate through combination with a digital twin technology, the security level of monitoring of detainers is greatly improved through an intelligent early warning mechanism, and the safety of the detainers is improved. And the risks of manual operation errors and response lag are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of RFID and digital twin technology, and specifically to a method, system, computer equipment and storage medium for supervising detainees. Background Art

[0002] With the rapid development of Internet of Things (IoT) technology, radio frequency identification technology (RFID) has been widely used in many fields such as personnel positioning and logistics tracking. RFID technology realizes non-contact identification and positioning of target objects through wireless radio frequency signals. Its unique recognition ability and real-time data transmission characteristics make its application in monitoring, security and other aspects increasingly popular. At the same time, with the development of virtual reality and simulation technology, digital twin technology is gradually maturing. Digital twin constructs virtual models of real physical objects and combines real-time data updates to achieve accurate dynamic simulation of physical objects. Combining RFID with digital twin technology can provide more efficient and accurate solutions for intelligent management in multiple fields. Especially in the field of personnel supervision, this technology combination shows broad application prospects.

[0003] Although RFID technology has been applied in personnel positioning and tracking, traditional monitoring systems often rely on video monitoring as the main means, which makes it difficult to accurately grasp the precise location of target personnel in real time. This method of relying on video monitoring usually requires monitoring personnel to observe the screen in real time and manually identify specific targets, which is inefficient and easily limited by monitoring blind spots or visual blur, and cannot achieve all-round personnel supervision. In addition, although traditional RFID systems can identify target personnel, they lack intelligent means in data processing, and have problems such as low positioning accuracy and untimely data updates. They cannot provide real-time warnings for abnormal situations. For example, existing RFID systems usually cannot effectively filter invalid data, resulting in a high false alarm rate, and cannot dynamically adjust positioning accuracy according to the complexity of the monitoring environment. At the same time, although the existing digital twin technology can virtually simulate physical space, its combination with personnel positioning technology has not been sufficient, and real-time and efficient personnel location monitoring and visualization have not been achieved. Therefore, it is difficult for existing technologies to achieve real-time, accurate and safe monitoring effects in complex detainee supervision scenarios. Summary of the invention

[0004] In view of the above-mentioned problems, the present invention is proposed.

[0005] Therefore, the technical problem solved by the present invention is: the existing personnel positioning and monitoring methods have low positioning accuracy, untimely data update, insufficient warning of abnormal situations, and how to achieve real-time, accurate and safe intelligent supervision of detained persons.

[0006] To solve the above technical problems, the present invention provides the following technical solutions: a method for supervising detainees, comprising collecting and uploading relevant data in real time through an RFID tag with a unique ID, filtering invalid data and converting signal strength into physical distance; calculating the precise location of each detainee, mapping the detainee location data to the actual physical coordinates of the monitoring area, and displaying it on a digital twin large screen; monitoring the location of personnel in real time through the large screen and obtaining abnormal information.

[0007] As a preferred solution of the method for supervising detainees described in the present invention, the real-time collection and uploading of relevant data includes: each detainee wears an RFID tag with a unique ID, communicates with an RFID reader arranged in the monitoring area through radio frequency signals, continuously scans all RFID tags within the coverage area, and reads the tag ID and RSSI data in real time. The reader uploads the real-time collected tag data to the central MQTT server through the MQTT protocol; the uploaded data includes the tag ID, RSSI value and timestamp.

[0008] As a preferred solution of the detainee supervision method described in the present invention, the filtering of invalid data includes: using FastAPI web server to connect to the MQTT server, receiving data uploaded by the RFID reader, and verifying whether the data format meets expectations; filtering the RSSI value, deduplicating the received data with the same tag, and retaining the latest data.

[0009] As a preferred solution of the method for supervising detainees described in the present invention, the conversion of signal strength into physical distance includes converting the difference between the received signal strength indication value and the reference signal strength indication value into physical distance; obtaining RSSI data and corresponding physical distances of the same tag from different RFID readers, and using trilateral measurement to solve the tag position.

[0010] As a preferred embodiment of the method for supervising detainees described in the present invention, the calculation of the precise position of each detainee includes calculating an initial scale based on the actual physical size of the monitoring area and the resolution of the actual base map; the initial scale includes a horizontal scale and a vertical scale; the horizontal scale is expressed as the ratio of the pixel width of the large screen to the actual width of the monitoring area; the vertical scale is expressed as the ratio of the pixel height of the large screen to the actual height of the monitoring area; the horizontal scale and the vertical scale are dynamically adjusted based on real-time environmental data and historical data; the dynamically adjusted scale is obtained by multiplying the initial scale by a dynamic adjustment coefficient, and the dynamic adjustment coefficient is calculated based on the real-time environmental data and historical data.

[0011] As a preferred embodiment of the method for supervising detainees described in the present invention, the mapping of the detainee position data to the actual physical coordinates of the monitoring area includes setting the center point coordinates of the large screen as the origin of the screen coordinate system, and mapping the actual physical coordinates of the monitoring area to the display coordinates on the large screen based on the original physical coordinates collected from the monitoring area and the calculated dynamic scale; the original physical coordinates include the horizontal coordinates and the vertical coordinates obtained in the monitoring area, and the dynamic scale is dynamically adjusted according to the real-time environmental data; the original physical coordinates are multiplied by the dynamic scale and added to the center point coordinates of the large screen to complete the conversion of physical coordinates to screen coordinates; the dynamic scale includes a horizontal scale and a vertical scale, and the center point coordinates of the large screen are used as the reference point for the mapping conversion, and the mapped screen coordinates are used to display the position information of the detainees in real time on the large screen.

[0012] As a preferred solution of the detainee supervision method described in the present invention, the obtaining of abnormal information includes: the digital twin large screen acts as a WebSocket client, connected to the FastAPI server, and continuously receives pushed real-time coordinate data; each time new location information is received, the real-time coordinate point is drawn on the large screen using Canvas, and an activity flag and a restart mechanism are set. By setting the system activity flag, the operating status of the system is automatically detected. When an error occurs, the current instance is deactivated, the restart logic is set, and the system is automatically restarted through a timer or an external monitoring tool.

[0013] As a preferred solution of the detainee supervision method described in the present invention, the drawing of real-time coordinate points includes clearing the previous drawing before drawing the new position point, using different colors or marks to distinguish different detainees, setting the display refresh frequency according to actual needs, and using asynchronous processing technology and task queues to limit the number of concurrent tasks in the system.

[0014] Another object of the present invention is to provide a detainee monitoring system, which can solve the problem of low precision in current personnel monitoring technology by converting actual physical coordinates into large-screen display coordinates.

[0015] As a preferred solution of the detainee supervision system described in the present invention, it includes: a data processing module, a calculation and mapping module, and an information acquisition module; the data processing module includes a data acquisition module, a data filtering module, and a signal strength conversion module. The data acquisition module is used to collect radio frequency signals in real time, read the ID, RSSI signal strength value and timestamp of the tag, the data filtering module is used to verify the correctness of the data format, eliminate invalid data and deduplicate data, and the signal strength conversion module is used to convert the RSSI value into an actual physical distance; the calculation and mapping module includes a position calculation module and a coordinate mapping module. The position calculation module is used to use the physical distance data output by the signal strength conversion module to solve the actual physical coordinates of the tag in the monitoring area, calculate the initial scale and the dynamic scale, and the coordinate mapping module is used to use the physical coordinates and dynamic scale obtained by the position calculation module to convert the actual physical coordinates into large-screen display coordinates; the information acquisition module is used to push the display coordinate data output by the coordinate mapping module to the large screen in real time to detect abnormal information.

[0016] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement a method for supervising detainees.

[0017] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a method for supervising detainees.

[0018] Beneficial effects of the present invention: The method for supervising detained persons provided by the present invention ensures the accuracy and real-time nature of the data by collecting and uploading accurate location information in real time and filtering invalid data. At the same time, the mechanism of converting signal strength into physical distance enables the system to accurately locate the position of personnel, avoiding the problem of inaccurate positioning caused by video blur or occlusion in traditional monitoring systems, thereby improving the positioning accuracy and monitoring efficiency of the system. By combining digital twin technology, the real-time location information of detained persons is presented on the monitoring screen in an intuitive manner. Managers can quickly and intuitively see the exact location of each person, enhancing the visualization effect of monitoring, avoiding the limitation of traditional video monitoring relying on manual visual observation, reducing the complexity of supervision, and making monitoring more efficient and accurate. By updating data in real time and detecting abnormal information, managers can quickly discover potential safety hazards and take countermeasures, thereby improving the safety and effectiveness of monitoring, enhancing the reliability of the system, and greatly improving the safety level of detained person supervision through an intelligent early warning mechanism, reducing the risk of human operating errors and delayed response. The present invention achieves better results in terms of efficiency, accuracy and safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0020] Figure 1 This is an overall flow chart of the method for supervising detainees provided in the first embodiment of the present invention.

[0021] Figure 2 This is an overall flow chart of a detainee supervision system provided for a third embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0023] Example 1, reference Figure 1 , as an embodiment of the present invention, provides a method for supervising detainees, comprising: S1: Collect and upload relevant data in real time through RFID tags with unique IDs, filter invalid data and convert signal strength into physical distance.

[0024] Furthermore, relevant data is collected and uploaded in real time, including that each detainee wears an RFID tag with a unique ID, communicates with the RFID reader deployed in the monitoring area through radio frequency signals, continuously scans all RFID tags within the coverage area, and reads the tag ID and RSSI data in real time. The reader uploads the real-time collected tag data to the central MQTT server through the MQTT protocol; the uploaded data includes the tag ID, RSSI value and timestamp, and the data is uploaded every 3 seconds to provide timely monitoring information.

[0025] It should be noted that filtering invalid data includes using FastAPI web server to connect to the MQTT server, receiving data uploaded by the RFID reader, and verifying whether the data format meets expectations; the RSSI value is a number, and the timestamp is in standard time format; filtering RSSI values ​​below -100dBm or above 0dBm, deduplicating the received data of the same tag, and retaining the latest data.

[0026] It should also be noted that converting the signal strength into the physical distance includes converting the difference between the received signal strength indication value and the reference signal strength indication value into the physical distance; obtaining the RSSI data and the corresponding physical distance of the same tag from different RFID readers, and using the trilateral measurement method to solve the tag position.

[0027] It should also be noted that converting signal strength to physical distance involves using a path loss model to convert RSSI values ​​to physical distance , expressed as: , in is the reference signal strength, which represents the RSSI value measured at a known distance. is the received RSSI value, is the path loss index, which reflects the impact of the environment on signal attenuation. The value of is between 2 and 4, which is adjusted according to the actual environment. The RSSI data and corresponding physical distance of the same tag are obtained from different RFID readers, and the tag position is solved using the trilateral measurement method. .

[0028] It should also be noted that the RFID tag with a unique ID worn by each detainee is the basis for accurate identification of individual identity and location data. By collecting and uploading tag data in real time, the system can ensure that the data of each detainee will not be confused, especially when multiple people move at the same time. The unique ID can avoid confusion and duplication. By collecting and converting RSSI (signal strength indication) data, a mapping relationship between physical distance and signal strength is established. The RFID signal strength itself is volatile, so the system can eliminate noise and interference and ensure data reliability by filtering out data with RSSI values ​​below -100dBm or above 0dBm.

[0029] S2: Calculate the precise location of each detainee, map the detainee location data to the actual physical coordinates of the monitoring area, and display it on the digital twin screen.

[0030] Furthermore, the precise position of each detained person is calculated, including calculating an initial scale based on the actual physical size of the monitoring area and the resolution of the actual base map; the initial scale includes a horizontal scale and a vertical scale; the horizontal scale is expressed as the ratio of the pixel width of the large screen to the actual width of the monitoring area; the vertical scale is expressed as the ratio of the pixel height of the large screen to the actual height of the monitoring area; the horizontal scale and the vertical scale are dynamically adjusted based on real-time environmental data and historical data; the dynamically adjusted scale is obtained by multiplying the initial scale by a dynamic adjustment coefficient, and the dynamic adjustment coefficient is calculated based on the real-time environmental data and historical data.

[0031] It should also be noted that a preferred solution for calculating the precise location of each detainee specifically includes calculating the initial scale based on the actual physical size of the monitoring area and the resolution of the actual base map, expressed as: , , in, and are the width and height of the large screen, such as 1366 and 768, and is the initial scale, and is the actual physical width and height of the monitoring area; the scale is dynamically adjusted according to real-time environmental data, expressed as: , , in, and It is a dynamic adjustment coefficient calculated based on real-time environmental data and historical data.

[0032] It should be noted that mapping the location data of detained persons to the actual physical coordinates of the monitoring area includes setting the center point coordinates of the large screen as the origin of the screen coordinate system, and mapping the actual physical coordinates of the monitoring area to the display coordinates on the large screen based on the original physical coordinates collected from the monitoring area and the calculated dynamic scale; the original physical coordinates include the horizontal coordinates and the vertical coordinates obtained in the monitoring area, and the dynamic scale is dynamically adjusted according to the real-time environmental data; the original physical coordinates are multiplied by the dynamic scale and added to the center point coordinates of the large screen to complete the conversion from physical coordinates to screen coordinates; the dynamic scale includes the horizontal scale and the vertical scale, and the center point coordinates of the large screen are used as the reference point for the mapping conversion, and the mapped screen coordinates are used to display the location information of the detained persons on the large screen in real time.

[0033] It should also be noted that a preferred solution for mapping the actual physical coordinates of the monitoring area specifically includes setting the center point coordinates of the large screen , for example (683,384), as the origin of the screen coordinate system, use the calculated dynamic scale and center point coordinates to convert the original physical coordinates Convert to display coordinates on the large screen , the conversion process is expressed as: , , in and The original physical coordinates obtained from the RFID data represent the actual location of the detainee in the monitoring area. and is the center point coordinate of the large screen, used as the reference point after conversion. and It is a scale that is dynamically adjusted based on real-time environmental data and is used to convert physical coordinates into screen coordinates to display the location of detainees on a large screen.

[0034] It should also be noted that the digital twin technology is used to map the RFID data to the physical coordinates of the monitoring area in real time. The scale calculation involved is based on the actual size of the monitoring area and the resolution of the large screen. By adjusting the scale to adapt to real-time environmental changes (such as signal interference), dynamic adjustment is achieved. The existing technology is usually unable to adapt to environmental signal changes. The present invention calculates the adjustment factor to enable the scale to be adjusted in real time to ensure that the position of personnel can still be accurately mapped in a complex environment. The coordinate conversion formula in the mapping process takes into account the center point and actual physical size of the large screen, so that the actual position of each detainee can be accurately displayed on the screen. Compared with traditional video surveillance, this mapping method based on physical coordinates provides higher accuracy and intuitiveness, especially in large monitoring areas. It can provide global real-time monitoring through the large screen, avoiding the discontinuity and blind spot problems when people move in video surveillance.

[0035] S3: Monitor personnel locations in real time and obtain abnormal information through a large screen.

[0036] Furthermore, obtaining abnormal information includes: the digital twin large screen acts as a WebSocket client, connecting to the FastAPI server, and continuously receiving pushed real-time coordinate data; each time new location information is received, the real-time coordinate point is drawn on the large screen using Canvas, and the activity flag and restart mechanism are set. By setting the system activity flag, the system automatically detects its own operating status. When an error occurs, the current instance is deactivated, the restart logic is set, and the system is automatically restarted through a timer or external monitoring tool.

[0037] It should be noted that the digital twin large screen, as a WebSocket client, is connected to the FastAPI server and continuously receives pushed real-time coordinate data to ensure the stability and low latency of the WebSocket connection to achieve real-time data updates. Each time new location information is received, the real-time coordinate point is drawn on the large screen using Canvas. Before drawing a new location point, the previous drawing is cleared to ensure that the displayed information is always up to date and to avoid screen confusion. Different colors or marks are used to distinguish different detainees so that monitoring personnel can quickly identify them. The display refresh frequency is set according to actual needs to ensure that the data on the large screen is as synchronized as possible with the actual situation and refreshed. The frequency setting should balance system performance while ensuring data real-time, avoiding excessive system load due to frequent refreshes; use asynchronous processing technology and task queues to limit the number of concurrent tasks in the system, so that the main thread will not be blocked when processing and transmitting data, and multiple requests can be processed simultaneously; set activity flags and restart mechanisms: by setting the system activity flag (such as self.active), the system can automatically detect its own operating status. When a serious error occurs, it can promptly deactivate the current instance to prevent further system crashes. After the system deactivates the current instance, set a restart logic to automatically restart the system through a timer or external monitoring tool to restore its activity.

[0038] It should be noted that drawing real-time coordinate points includes clearing previous drawings before drawing new location points, using different colors or marks to distinguish different detainees, setting the display refresh frequency according to actual needs, using asynchronous processing technology and task queues, and limiting the number of concurrent tasks in the system.

[0039] It should also be noted that by displaying the location in real time on the digital twin large screen and pushing data in combination with the WebSocket client, the system can ensure real-time updates when the location of personnel changes. The data update mechanism ensures the timeliness of the system, and managers can obtain accurate location information at the first time. Combined with the drawing function of Canvas, managers can intuitively identify the locations of different personnel, especially when abnormal situations (such as crossing the boundary or illegal movement) occur, the system can quickly issue an alarm. Compared with existing monitoring technologies, the present invention utilizes asynchronous processing and task queue technology to ensure that data can still be updated in a timely and stable manner in a high-concurrency environment. Traditional systems often cause monitoring lags due to large data volumes and slow responses, and this system makes real-time monitoring feasible by reasonably allocating computing resources. In addition, the system's automatic detection and restart mechanism improves the reliability and stability of the system. Even if a system error occurs, it can automatically resume operation to ensure uninterrupted monitoring.

[0040] Example 2 is an embodiment of the present invention, which provides a method for supervising detainees. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.

[0041] First, the experimental environment was set in a simulated detention facility with an area of ​​100 square meters, a length of 10 meters and a width of 10 meters. Each detainee wore an RFID tag with a unique ID. Six detainees were arranged in the experiment, named Detainee A to Detainee F. RFID readers were set in the four corners of the monitoring area, and the signal strength indication (RSSI) value and timestamp of each tag were collected and transmitted in real time through the MQTT protocol. The RSSI data of each detainee was collected in real time through the RFID tag and transmitted through FastAPI The web server filters invalid data. Data filtering includes removing RSSI values ​​with signal strength lower than -100dBm or higher than 0dBm, and deduplicating duplicate data received in a short period of time. The experiment paid special attention to the changes in RSSI values ​​of each detainee, and calculated the physical distance based on these data through the path loss model. The experiment used digital twin technology to project the real-time location data of each detainee onto the large screen in the monitoring area. The mapping ratio between the actual physical coordinates of the monitoring area and the pixel coordinates of the large screen was accurately calculated, and the scale was dynamically adjusted according to the real-time environmental data to ensure the accurate display of the position. The real-time data update of the system ensures the accurate display of the position of the detainees. At the same time, the management personnel can clearly see the movement trajectory of each person through the large screen. When the movement of the detainees in the experiment exceeded the predetermined range, the system detected these abnormal situations in real time and issued an alarm prompt through the large screen; refer to Table 1 to record and analyze the process.

[0042] Table 1 Data record table Test subjects Initial RSSI (dBm) Final RSSI (dBm) Physical distance (meters) RFID accuracy (%) Position display error (meters) Anomaly detection (times / day) Detainee A -80 -60 2.5 92 0.1 3 Detainee B -75 -63 2.8 94 0.2 2 Detainee C -90 -70 4 89 0.3 1 Detainee D -85 -65 3.5 90 0.25 2 Detainee E -78 -62 2.9 93 0.15 2 Detainee F -70 -55 2 95 0.1 1

[0043] It can be seen from the table data that after processing, the RSSI data collected by the RFID system can effectively calculate the physical distance between each detainee and the RFID reader. In the experiment, the changing trend of the initial and final values ​​of RSSI clearly reflects the signal strength fluctuations of the detainees at different distances. The positioning accuracy of the RFID system is maintained between 89% and 95%, proving that the system can provide high positioning accuracy. The "Physical Distance" column in the table shows the actual distance converted by the RSSI value, with a maximum error of no more than 0.3 meters, which shows that the distance estimation using the path loss model has high accuracy. In addition, the experiment also monitors the positions of the detainees in real time through digital twin technology, and maps these positions to the display coordinates on the large screen. The position display error is maintained between 0.1 meters and 0.3 meters, proving that the system can still maintain high display accuracy under high load. It is worth noting that the experiment also records the number of abnormal detections. The system can timely detect and warn abnormal behaviors such as crossing the boundary by analyzing the movement trajectory of each detainee in real time. The data shows that the number of abnormal detections is between 1 and 3 times, indicating that the system has good abnormal behavior warning capabilities, thereby further enhancing the security and intelligence level of monitoring.

[0044] Example 3, reference Figure 2 , which is an embodiment of the present invention, provides a detainee supervision system, including a data processing module 100, a calculation and mapping module 200, and an information acquisition module 300.

[0045] Among them, S4: the data processing module 100 includes a data acquisition module 101, a data filtering module 102, and a signal strength conversion module 103. The data acquisition module 101 is used to collect radio frequency signals in real time, read the tag ID, RSSI signal strength value and timestamp, the data filtering module 102 is used to verify the correctness of the data format, eliminate invalid data and deduplicate data, and the signal strength conversion module 103 is used to convert the RSSI value into an actual physical distance.

[0046] It should also be noted that the filtered RSSI value is immediately sent to the signal strength conversion module 103, which converts the RSSI value into actual physical distance data according to a preset formula, and then passes the processing result to the position calculation module 201 in the calculation and mapping module 200.

[0047] S5: The calculation and mapping module 200 includes a position calculation module 201 and a coordinate mapping module 202. The position calculation module 201 is used to convert the physical distance data output by the signal strength conversion module 103 to solve the actual physical coordinates of the tag in the monitoring area and calculate the initial scale and the dynamic scale. The coordinate mapping module 202 is used to convert the actual physical coordinates into large-screen display coordinates using the physical coordinates and the dynamic scale obtained by the position calculation module 201.

[0048] It should also be noted that the physical distance data transmitted by the signal strength conversion module 103 is used as the input of the position calculation module 201. In combination with the actual physical layout of the monitoring area, the trilateration method is used to calculate the precise physical coordinates of the detainee in the monitoring area.

[0049] S6: The information acquisition module 300 is used to push the display coordinate data output by the coordinate mapping module 202 to the large screen in real time to perform abnormal information detection.

[0050] It should be noted that while the information acquisition module 300 maps the location of detainees in real time, it continuously detects the operating status based on the system activity flag; if data anomalies or system failures occur, the module uses built-in restart logic and timer functions to ensure that the system can quickly resume operation and maintain continuity of supervision.

[0051] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0052] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0053] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk case (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0054] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logical function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc. It should be noted that the above embodiments are only used to illustrate the technical solution of the present invention and are not limited. Although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.

[0055] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A method for supervising detainees, characterized in that: include: Collect and upload relevant data in real time through RFID tags with unique IDs, filter invalid data and convert signal strength into physical distance; Calculate the precise location of each detainee, map the detainee location data to the actual physical coordinates of the monitoring area, and display it on the digital twin screen; Monitor personnel locations in real time and obtain abnormal information through the large screen.

2. The method for supervising detainees according to claim 1, characterized in that: The real-time collection and uploading of relevant data includes: Each detainee wears an RFID tag with a unique ID, which communicates with the RFID reader deployed in the monitoring area through radio frequency signals, continuously scans all RFID tags within the coverage area, and reads the tag ID and RSSI data in real time. The reader uploads the real-time collected tag data to the central MQTT server through the MQTT protocol; The uploaded data includes tag ID, RSSI value and timestamp.

3. The method for supervising detainees according to claim 1 or 2, characterized in that: The filtering of invalid data includes: Use FastAPI web server to connect to the MQTT server, receive data uploaded by the RFID reader, and verify whether the data format meets expectations; Filter the RSSI value, deduplicate the received data with the same tag, and keep the latest data.

4. The method for supervising detainees according to claim 1 or 2, characterized in that: The converting of the signal strength into a physical distance comprises: Converting the difference between the received signal strength indication value and the reference signal strength indication value into a physical distance; The RSSI data and corresponding physical distance of the same tag are obtained from different RFID readers, and the tag position is solved using the trilateration method.

5. The method for supervising detainees according to claim 1, characterized in that: The calculation of the precise location of each detainee includes: Calculate the initial scale based on the actual physical size of the monitored area and the resolution of the actual base map; The initial scale includes a horizontal scale and a vertical scale; The horizontal scale is expressed as the ratio of the pixel width of the large screen to the actual width of the monitoring area; The vertical scale is expressed as the ratio of the pixel height of the large screen to the actual height of the monitored area; Dynamically adjust the horizontal and vertical scales based on real-time environmental data and historical data; The dynamically adjusted scale is obtained by multiplying the initial scale by a dynamic adjustment coefficient, and the dynamic adjustment coefficient is calculated based on real-time environmental data and historical data.

6. The method for supervising detainees according to claim 1 or 5, characterized in that: Mapping the detainee location data to the actual physical coordinates of the monitoring area includes: The center point coordinates of the large screen are set as the origin of the screen coordinate system, and the actual physical coordinates of the monitoring area are mapped to the display coordinates on the large screen based on the original physical coordinates collected from the monitoring area and the calculated dynamic scale; The original physical coordinates include the horizontal and vertical coordinates obtained in the monitoring area, and the dynamic scale is dynamically adjusted according to the real-time environmental data; The original physical coordinates are multiplied by the dynamic scale and added to the coordinates of the center point of the large screen to complete the conversion from physical coordinates to screen coordinates; The dynamic scale includes a horizontal scale and a vertical scale. The coordinates of the center point of the large screen are used as the reference point for mapping conversion. The mapped screen coordinates are used to display the location information of the detained person in real time on the large screen.

7. The method for supervising detainees according to claim 6, characterized in that: The obtaining of abnormal information includes: The digital twin large screen acts as a WebSocket client, connected to the FastAPI server, and continuously receives pushed real-time coordinate data; Every time new location information is received, use Canvas to draw the real-time coordinate point on the big screen, set the activity flag and restart mechanism, and automatically detect its own operating status by setting the system activity flag. When an error occurs, deactivate the current instance, set the restart logic, and automatically restart the system through a timer or external monitoring tool.

8. The method for supervising detainees according to claim 7, characterized in that: The drawing of real-time coordinate points includes: Before drawing a new location point, clear the previous drawing first, use different colors or marks to distinguish different detainees, set the display refresh frequency according to actual needs, use asynchronous processing technology and task queues, and limit the number of concurrent tasks in the system.

9. A system for monitoring detainees, characterized in that: It comprises a data processing module (100), a calculation and mapping module (200), and an information acquisition module (300); The data processing module (100) comprises a data acquisition module (101), a data filtering module (102), and a signal strength conversion module (103); the data acquisition module (101) is used to collect radio frequency signals in real time, read the ID, RSSI signal strength value and timestamp of the tag; the data filtering module (102) is used to verify the correctness of the data format, remove invalid data and remove data duplication; and the signal strength conversion module (103) is used to convert the RSSI value into an actual physical distance; The calculation and mapping module (200) comprises a position calculation module (201) and a coordinate mapping module (202), wherein the position calculation module (201) is used to calculate the actual physical coordinates of the tag in the monitoring area using the physical distance data output by the signal strength conversion module (103) and calculate the initial scale and the dynamic scale, and the coordinate mapping module (202) is used to convert the actual physical coordinates into large-screen display coordinates using the physical coordinates and the dynamic scale obtained by the position calculation module (201); The information acquisition module (300) is used to push the display coordinate data output by the coordinate mapping module (202) to the large screen in real time to perform abnormal information detection.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the detainee supervision method described in any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the detainee supervision method described in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Data security inspection method and system in digital twinning

    CN115085947A

  • Warehousing data visualization method and system based on digital twinning

    CN118505908A

  • Construction site dispatching command center based on AR algorithm

    CN119342413A