A method and system for dynamically determining a pass authorization of a civilian farming area
By establishing a border farmland ownership database and using Point-Round-Polygon spatial overlay analysis, combined with dynamic thresholds and three-level early warning, the problem of integrating identity, land ownership, and real-time location in border passage management was solved, enabling rapid and accurate passage authorization and boundary crossing early warning.
Patent Information
- Application Number
- CN202611219941.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-12
- Publication Date
- 2026-11-10
AI Technical Summary
In the current border crossing management system, the information on border residents' identity, farmland ownership, and real-time location is separated, resulting in slow generation of crossing authorizations, repeated verifications, a lack of dynamic authorization mechanisms, and difficulty in timely detection of border crossings.
A database of border farmland ownership was established. Real-time location and identity data were collected through border residents' mobile terminals. PostgreSQL and PostGIS spatial extensions were used for data storage and indexing. Point-Round-Polygon spatial overlay analysis was adopted, combined with dynamic thresholds and a three-level early warning mechanism, to generate temporary electronic passes or border crossing warnings.
It achieves second-level access authorization determination, improves the efficiency of land parcel retrieval and determination, enhances the accuracy of authorized land parcel scope determination, balances the convenience of passage during busy farming seasons with border control security, and ensures data security and communication reliability.
Smart Images

Figure CN123075419A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the fields of border access control, geographic information systems, identity authentication and Internet of Things communication technology, and specifically relates to a method and system for dynamically determining access authorization in border residents' farming areas. Background Technology
[0002] Production resources such as contracted land, private hills, and economic forest land belonging to border residents in border areas are partially located within border checkpoints or border control zones. When border residents enter these control zones to engage in farming, harvesting, patrolling, or other production activities, they typically need to obtain permits in advance and submit documents such as identity certificates, village committee certificates, and descriptions of their production land. These procedures rely on paper documents and manual verification, resulting in lengthy processes that are difficult to adapt to the time-sensitive requirements of agricultural activities.
[0003] The current border crossing control method mainly relies on officers visually verifying identification documents and paper passes before allowing passage. This method has the following shortcomings: First, passage data, identity data, and farmland ownership data are stored in different systems, lacking a unified data link and making automatic comparison at the verification site impossible; Second, border residents need to be verified repeatedly each time they enter the controlled area, lacking a dynamic authorization mechanism based on identity, land ownership, and real-time location; Third, officers cannot obtain real-time information on whether border residents are within their own farmland, and verification is easily based on static paper materials; Fourth, if border residents deviate from their authorized farming areas within the controlled area, the current method is insufficient to detect and issue tiered warnings in a timely manner.
[0004] The relevant technologies are mostly concentrated in areas such as farmland quality monitoring, remote sensing change detection, land parcel verification, and dynamic monitoring of land resources. Their technical focus is typically on identifying farmland changes through remote sensing imagery or spatial land parcels, rather than chain-coupled border resident identification, real-time positioning, farmland ownership data, and border crossing authorization. Therefore, a technical solution is still needed that can integrate and calculate identity authentication results, real-time positioning coordinates, and farmland ownership spatial data in border control scenarios, and automatically output crossing authorization or boundary violation warnings. Summary of the Invention
[0005] To address the problem that existing border crossing management systems separate identity information, farmland ownership information, and real-time location information, making it difficult to dynamically generate crossing authorizations based on the actual farmland areas of border residents and promptly detect border crossings, this invention provides a method and system for dynamically determining crossing authorizations for farmland areas of border residents.
[0006] This invention is achieved through the following technical solution: a method for dynamically determining the authorization of border residents to pass through cultivated areas, comprising: establishing a border cultivated land ownership database, storing the spatial coordinates of cultivated land plots, plot numbers, control zone numbers, farmer identity information, and family member information in association, and establishing a spatial index; collecting real-time positioning data and identity recognition data through border residents' mobile terminals, and uploading them to the system server through an encrypted communication link; the system server completing positioning quality verification and identity authentication, and generating an identity identification code; retrieving the boundary coordinates of the authorized plots associated with the border resident using the identity identification code and the current control zone number as search conditions; performing spatial overlay analysis on the real-time positioning coordinates and the boundary coordinates of the authorized plots; and generating a temporary electronic pass or a boundary crossing warning based on the spatial overlay analysis results.
[0007] As a preferred implementation, the border farmland ownership database uses a PostgreSQL database with PostGIS spatial extensions. Plot boundaries are stored in WGS-84 coordinate system and GeoJSON format, and the spatial index uses an R-treeover GiST index. The system first filters candidate plots using buffered bounding rectangles of positioning coordinates, and then performs Point-Round-Polygon spatial overlay analysis on the candidate plots. Point-Round-Polygon spatial overlay analysis can correct the shortcomings of existing Point-in-Polygon spatial overlay analysis, where the computational load is proportional to the number of polygon vertices. Processing each point requires traversing all vertices, which consumes a great deal of computational power when the number of polygon vertices is too large. Furthermore, when vertices are densely packed, the probability of ray intersections overlapping with polygon vertices is high, easily leading to misjudgments. Point-Round-Polygon spatial overlay analysis, however, generates a Round using border resident positioning points, and overlays the Round with the Polygon to assist in determining the location of border resident points, thus optimizing the Point-in-Polygon spatial overlay analysis.
[0008] As a preferred implementation, the border resident mobile terminal collects positioning data through the BeiDou positioning module. The positioning data includes GGA or RMC statements in NMEA 0183 format, collection timestamp, positioning accuracy factor, and terminal number. The border resident mobile terminal prioritizes data reporting via 4G / 5G network using the MQTT protocol. The communication data is encrypted using the SM4 algorithm. When the 4G / 5G network is unavailable, it automatically switches to the BeiDou short message backup communication link.
[0009] As a preferred implementation, the spatial overlay analysis uses the Point-Round-Polygon algorithm, which generates a circle that moves with the point, with the location point of the border resident's mobile phone as the center and the largest inscribed circle of the border resident's authorized land plot as the radius. Based on the area of the intersection of this circle with different attribute surfaces, it is determined whether the border resident is located within the authorized land plot. When the location coordinates are located at the land plot boundary or within the location error buffer, they are treated as boundary buffers.
[0010] As a preferred implementation, the system dynamically determines the boundary crossing threshold based on the agricultural season, land parcel type, border security level, and positioning accuracy. The threshold can be relaxed during the spring planting and autumn harvest seasons, while it is tightened when the security level of mountainous land parcels and borders is increased. The system also compensates for positioning accuracy errors based on the threshold. When the deviation distance exceeds the dynamic threshold, the system triggers different levels of warnings according to the degree of deviation.
[0011] This invention also provides a dynamic determination system for granting access to border residents' cultivated areas, comprising a terminal data acquisition subsystem, a data communication subsystem, and a system server. The terminal data acquisition subsystem includes border residents' mobile terminals and border inspection officers' handheld terminals; the data communication subsystem includes a 4G / 5G communication link and a BeiDou short message backup communication link; the system server includes a border cultivated land ownership database, an identity authentication module, a spatial determination module, an access authorization module, and a threshold dynamic adjustment module.
[0012] The beneficial effects of this invention after adopting the above technical solution are as follows: First, by forming a chain-like triggering relationship between border resident identity authentication, real-time positioning, and farmland ownership spatial data, it can achieve second-level access authorization determination; Second, by reducing full-database spatial calculations through spatial indexing and candidate plot screening, it improves the efficiency of plot retrieval and determination; Third, by improving the accuracy of authorized plot range determination through Point-Round-Polygon spatial overlay analysis and boundary buffer determination; Fourth, by balancing the convenience of passage during busy farming seasons with border control security through dynamic thresholds and a three-level early warning mechanism; Fifth, by improving data security and communication reliability in weak border network environments through SM4 encryption, MQTT transmission, and BeiDou short message backup links. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 This is a schematic diagram of the overall system architecture of the present invention.
[0015] Figure 2This is a flowchart illustrating the dynamic determination process for granting permission for this invention.
[0016] Figure 3 This is a schematic diagram of the spatial determination algorithm of the present invention.
[0017] Figure 4 This is a schematic diagram of the interface of the border resident mobile terminal of the present invention.
[0018] Figure labeling: 100, Terminal data acquisition subsystem; 110, Border resident mobile terminal; 111, Beidou positioning module; 112, Face image acquisition module; 120, Border inspection duty handheld terminal; 121, QR code scanning module; 122, Authorization verification module; 200, Data communication subsystem; 210, 4G / 5G communication link; 220, Beidou short message backup link; 300, System server; 310, Border farmland ownership database; 320, Identity authentication module; 330, Spatial determination module; 340, Passage authorization module; 350, Threshold dynamic adjustment module; 360, Communication security and log module. Detailed Implementation
[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] Example 1 System Structure like Figure 1 As shown, this embodiment provides a dynamic determination system for granting access to border residents' farming areas, including a terminal data acquisition subsystem 100, a data communication subsystem 200, and a system server 300. The terminal data acquisition subsystem 100 and the system server 300 transmit data bidirectionally through the data communication subsystem 200.
[0021] The terminal data acquisition subsystem 100 includes a border resident mobile terminal 110 and a border inspection duty handheld terminal 120. The border resident mobile terminal 110 is a smartphone or dedicated handheld device, with a built-in BeiDou positioning module 111 and a face image acquisition module 112. The BeiDou positioning module 111 communicates with the main control chip of the border resident mobile terminal 110 via a UART interface, outputting positioning data in NMEA 0183 format. The positioning data includes at least GGA or RMC statements, latitude and longitude, positioning time, positioning quality identifier, and positioning accuracy factor. The face image acquisition module 112 connects to a camera via a CSI or MIPI interface to acquire facial images of border residents.
[0022] The border inspection handheld terminal 120 is a customized Android handheld device, equipped with a QR code scanning module 121 and an authorization verification module 122. The QR code scanning module 121 is connected to the scanning head via a USB interface or a UART interface and is used to scan the temporary electronic pass displayed on the border resident mobile terminal 110; the authorization verification module 122 is used to verify the consistency between the scanned pass data and the authorization information pushed by the system server 300.
[0023] The data communication subsystem 200 includes a 4G / 5G communication link 210 and a BeiDou short message backup link 220. The 4G / 5G communication link 210 uses the MQTT protocol to transmit data between the border resident mobile terminal 110, the border inspection duty handheld terminal 120, and the system server 300, with a preferred data reporting frequency of 1Hz. Communication data is encrypted using the SM4 algorithm. The BeiDou short message backup link 220 is used to transmit compressed positioning coordinates, identity summary, and timestamps when the 4G / 5G network is unavailable.
[0024] System server 300 adopts a microservice architecture, including a border farmland ownership database 310, an identity authentication module 320, a spatial determination module 330, a passage authorization module 340, a threshold dynamic adjustment module 350, and a communication security and logging module 360. The border farmland ownership database 310 uses a PostgreSQL database and PostGIS spatial extensions to store the WGS-84 coordinate system spatial boundaries of farmland plots, GeoJSON format plot data, plot numbers, plot areas, control zone numbers, farmer identity information, and family member information, and establishes an R-tree over GiST spatial index.
[0025] The identity authentication module 320 receives the facial image uploaded by the border resident mobile terminal 110, and performs a 1:N comparison between the collected facial image and the pre-registered facial features. The comparison threshold is preferably a similarity of not less than 85%. After the comparison is successful, the identity authentication module 320 generates an identity identification code, which may include a 32-bit UUID, terminal number, timestamp, and random number.
[0026] The spatial determination module 330 uses the identity code and the current control zone number as indexes to retrieve the boundary coordinates of all plots of land owned or authorized for cultivation by the border resident from the border farmland ownership database 310, and performs spatial overlay analysis between the real-time positioning coordinates and the retrieved plot boundary coordinates. The spatial determination module 330 includes a candidate plot retrieval unit, a parallel spatial overlay analysis unit, a boundary buffer determination unit, and a deviation distance calculation unit.
[0027] The passage authorization module 340 receives the judgment result output by the space judgment module 330. When the judgment result is that the authorization is approved, the passage authorization module 340 generates a temporary electronic passage certificate and pushes the electronic certificate to the border resident mobile terminal 110 and the border inspection duty handheld terminal 120 respectively. When the judgment result is that the border is crossed, the passage authorization module 340 generates a border crossing warning message and pushes it to the border inspection duty handheld terminal 120.
[0028] The threshold dynamic adjustment module 350 dynamically generates boundary crossing thresholds based on the agricultural season, land parcel type, border security level, and positioning accuracy. The communication security and logging module 360 records identity authentication results, positioning coordinates, spatial determination results, dynamic thresholds, electronic access credentials, boundary crossing warnings, and checkpoint verification results for subsequent traceability.
[0029] Example 2: Dynamic Determination Method for Access Authorization like Figure 2 As shown in the figure, this embodiment provides a method for dynamically determining the access authorization of border residents to farmland, which includes the following steps.
[0030] S1. System server 300 pre-establishes a border farmland ownership database 310. Each plot record in the database includes at least the plot number, plot area, plot type, control zone number, plot boundary coordinates, farmer identity information, and family member information. The plot boundary coordinates use the WGS-84 coordinate system and are stored in GeoJSON format. The system establishes an R-tree over GiST spatial index for the plot boundaries.
[0031] S2. Border residents enter the border control area carrying border resident mobile terminals 110. Border resident mobile terminals 110 collect real-time positioning data through Beidou positioning module 111 and facial images through facial image acquisition module 112, and combine the positioning data, facial images, terminal number and timestamp into a data packet.
[0032] S3, the border resident mobile terminal 110 prioritizes uploading data packets to the system server 300 via the 4G / 5G communication link 210 using the MQTT protocol. The data packets are encrypted using the SM4 algorithm before uploading. When the 4G / 5G network is unavailable, the border resident mobile terminal 110 compresses the latitude and longitude, identity digest, and timestamp into short message data and sends it to the system server 300 via the BeiDou short message backup link 220.
[0033] S4. System server 300 performs a validity check on the location data, including checking if the timestamp has expired, if the location coordinates are within the border control area, if the location accuracy meets preset requirements, and if the terminal's movement speed is abnormal. After the location quality check is passed, the identity authentication module 320 performs facial recognition authentication. After successful identity authentication, an identity identification code is generated.
[0034] S5. The spatial determination module 330 uses the identity code and the current control area number as search conditions to retrieve candidate land parcels associated with the border resident through the R-treeover GiST spatial index. During the search, the system first constructs a buffer bounding rectangle centered on the current location coordinates, filters land parcels that intersect with the buffer bounding rectangle through the spatial index, and then retains the authorized land parcels associated with the identity code from the filtered results.
[0035] S6, Spatial Decision Module 330 performs Point-Round-Polygon spatial overlay analysis on candidate plots. For example... Figure 3 As shown, the system generates a circle that moves with the location of the resident's mobile phone, centered on the location and with the radius of the largest inscribed circle of the resident's authorized land parcel. Based on the area of intersection of this circle with different attribute surfaces, it determines whether the resident is located within the authorized land parcel. If the location coordinates are on the land parcel boundary or the distance from the land parcel boundary does not exceed the boundary buffer distance, then it is treated as being within the boundary buffer.
[0036] S7. If step S6 determines that the location coordinates are located inside any authorized plot, on the plot boundary, or within the plot boundary buffer zone, the access authorization module 340 generates a temporary electronic access pass. The temporary electronic access pass is preferably a QR code electronic pass, using compact JSON or binary encoding, and includes an identification code, plot number, validity period timestamp, random number, and pass verification code.
[0037] S8. If step S6 determines that the positioning coordinates are not within any authorized plot, on the plot boundary, or within the plot boundary buffer zone, the spatial determination module 330 calculates the deviation distance of the positioning coordinates from the nearest authorized plot boundary. The threshold dynamic adjustment module 350 determines the dynamic boundary crossing threshold based on the current date, plot type, border security level, and positioning accuracy. When the deviation distance exceeds the dynamic boundary crossing threshold, the system triggers a boundary crossing warning and pushes it to the border inspection duty handheld terminal 120.
[0038] S9. When border residents pass through the border checkpoint, officers use a border inspection handheld terminal 120 to scan the QR code electronic certificate displayed on the border resident's mobile terminal 110. The border inspection handheld terminal 120 compares the scan result with the authorization information pushed by the system server 300. If the identity code, land parcel number, validity period, and certificate verification code match, a verification success message is output; otherwise, a verification failure message is output and the process is transferred to manual verification.
[0039] Example 3: Dynamic Threshold and Three-Level Early Warning This embodiment describes the dynamic boundary crossing threshold. The system uses 50m as the baseline value for the boundary crossing threshold. During the spring planting and autumn harvest seasons, when border residents' farming activities are frequent and the demand for activities around the border is high, the system can relax the dynamic boundary crossing threshold to 80m. In mountainous, sloping, or valley areas where the terrain changes significantly and the sensitivity to control is high, the system can tighten the threshold to 30m. When the border security level is upgraded, the system can further tighten the threshold to 20m.
[0040] The dynamic boundary crossing threshold can also be compensated based on positioning accuracy. For example, when the horizontal positioning accuracy factor in the positioning data or the terminal's estimated horizontal error shows a large positioning error, the system appropriately expands the land boundary buffer zone, or requires the border resident mobile terminal 110 to continuously collect multiple sets of positioning points and obtain stable coordinates to avoid false alarms caused by positioning drift.
[0041] The warning levels are divided into three levels. Level I warning is for border residents who slightly deviate from their authorized farmland plots, and the system will push a friendly reminder to the border residents' mobile terminals (110). Level II warning is for border residents whose deviation distance exceeds the threshold but is not greater than 150m, and the system will push a warning message to the border inspection officers' handheld terminals (120) and require the border residents to confirm. Level III warning is for border residents whose deviation distance is greater than 150m, and the system will automatically trigger manual verification by border guards.
[0042] The threshold dynamic adjustment module first determines the basic threshold for the agricultural season, then makes corrections based on the land parcel type and border security level using a strict principle. When multiple correction conditions are met simultaneously, the minimum threshold is taken, and finally compensation is made based on the positioning accuracy error.
[0043] Example 4: Border Residents' Mobile Terminal Interface like Figure 4 As shown, the interface of the border resident mobile terminal 110 includes a status bar, an identity information area, a QR code electronic certificate area, an authorized land parcel information area, a pass validity period reminder area, and a function operation button area. The identity information area displays the border resident's name, de-identified ID number, and ID code; the QR code electronic certificate area displays the temporary electronic pass; the authorized land parcel information area displays the parcel number, parcel area, and the control area to which it belongs; the pass validity period reminder area displays the validity period type, authorization period, and agricultural season label; the function operation button area includes buttons for location refresh, certificate viewing, and anomaly reporting.
[0044] Through the aforementioned interface, border residents can view their authorization status and travel permits in real time, while officers on duty can quickly verify authorization information by scanning a QR code. This interface is not merely a simple information display; it is integrated with the BeiDou positioning data collection, identity authentication, authorized land parcel determination, and server permit delivery processes to achieve a visualized output of the travel authorization results. Example
[0045] Step S1: At 06:40 on April 15th of a certain year, border resident A arrived at the cultivated area within control zone A carrying a border resident mobile terminal 110. The border resident mobile terminal 110 collected real-time location point P1 through the Beidou positioning module 111 and collected a frontal face image through the face image acquisition module 112. The positioning data, face image, terminal number, and timestamp were then combined into an encrypted data packet.
[0046] In step S2, the border resident mobile terminal 110 uploads the encrypted data packet to the system server 300 via the 4G / 5G communication link 210. The system server 300 first performs a positioning quality verification. The timestamp of the uploaded data differs from the server time by 2 seconds, the positioning point is located within the BQ-01 control area, the terminal's estimated horizontal positioning error is 6 meters, and the terminal's movement speed is 4.2 km / h, all of which meet the preset requirements, and the positioning quality verification passes.
[0047] In step S3, the identity authentication module 320 performs a 1:N comparison between the face image and the pre-registered face features. The similarity of this comparison is 91.7%, which is higher than the authentication threshold of 85%, so the identity authentication is successful. The identity authentication module 320 generates an identity identification code and sends the identity identification code, the current control area number BQ-01, and the real-time location point P1 to the spatial determination module 330.
[0048] In step S4, the spatial determination module 330 constructs a candidate search outer rectangle centered on the real-time positioning point P1, filters the plots that intersect with the outer rectangle through the R-tree over GiST spatial index, and then filters them according to the identity code and control area number BQ-01 to obtain the two authorized plots GDK-001 and GDK-002 corresponding to the border resident A.
[0049] In step S5, the spatial determination module 330 performs Point-Round-Polygon spatial overlay analysis on the real-time positioning point P1 and GDK-001 and GDK-002 respectively. During the analysis, a ray is constructed from the real-time positioning point P1 along the horizontal direction, and the number of intersections between the ray and the boundary of the plot polygon is counted. For GDK-001, the number of intersections between the ray and the plot boundary is even, and it is initially determined that P1 is located outside the plot; the deviation distance calculation unit further calculates that the distance from P1 to the nearest boundary of GDK-001 is 8.6 meters. Since this embodiment sets the boundary buffer distance to 10 meters based on a horizontal positioning error of 6 meters, the boundary buffer determination unit processes P1 as being located within the boundary buffer of GDK-001, and the spatial determination result is authorized.
[0050] In step S6, the access authorization module 340 generates a temporary electronic access pass in QR code format based on the authorization result. This pass includes an identity code, land parcel number GDK-001, validity period timestamp, random number, and verification code. The validity period is set from 06:40 to 18:00 on the same day. The verification code is generated from the identity code, land parcel number, validity period timestamp, and random number according to preset verification rules. The access authorization module 340 pushes the temporary electronic access pass to the border resident mobile terminal 110 via the MQTT protocol and simultaneously pushes the corresponding authorization information to the border inspection duty handheld terminal 120.
[0051] In step S7, officers at the patrol point use the border inspection handheld terminal 120 to scan the QR code displayed on the border resident mobile terminal 110. The QR code scanning module 121 reads the credential data, and the authorization verification module 122 compares the identity code, land parcel number, validity period timestamp, and credential verification code in the credential with the authorization information issued by the system server 300. If all data matches and the credential is still within its valid period, the border inspection handheld terminal 120 outputs a verification success message.
[0052] While working in the fields, border resident A continued to carry a border resident mobile terminal 110, which uploaded location data at a frequency of 1Hz. At a certain moment, the spatial determination module 330 detected that the real-time location point P2 was not located inside GDK-001 or GDK-002, nor within the 10-meter boundary buffer zone, and calculated that the deviation distance of P2 from the nearest authorized plot boundary was 112 meters.
[0053] The threshold dynamic adjustment module 350, based on the current date of April 15th, determines that it is the spring planting season and sets the boundary crossing warning threshold at 80 meters. In this embodiment, the plot of land is flat farmland, the border security level is at the normal level, and the positioning accuracy meets the requirements, so the 80-meter threshold will not be tightened or expanded. Since 112 meters is greater than 80 meters but not greater than 150 meters, the system triggers a Level II warning, pushing a prompt to return to the authorized area to the border resident mobile terminal 110, and pushing warning information including the identity code, real-time location point, the number of the most recently authorized plot, the deviation distance, and the trigger time to the border inspection duty handheld terminal 120. If the deviation distance further exceeds 150 meters, the system triggers a Level III warning and switches to manual verification.
[0054] When the 4G / 5G communication link 210 is interrupted during the early warning process, the border resident mobile terminal 110 continues to upload compressed positioning coordinates, identity summary and timestamp through the Beidou short message backup link 220; the system server 300 restores the border resident identity association based on the completed identity authentication session and continues to perform deviation distance calculation and early warning judgment.
[0055] The communication security and logging module 360 records the terminal number, location quality verification result, identity authentication result, candidate plot number, spatial judgment result, boundary buffer distance, dynamic threshold, temporary electronic access certificate, checkpoint verification result, and boundary crossing warning information during this business process. The logs are linked according to the identity code and timestamp for subsequent querying and accountability.
[0056] Through the above implementation process, the system can associate the border resident identity authentication results, real-time Beidou positioning data and farmland ownership spatial data, generate temporary electronic passes when the positioning point is located inside the authorized plot, at the boundary or within the positioning error buffer, and output boundary crossing warnings when the positioning point deviates from the authorized plot and exceeds the dynamic threshold.
[0057] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A dynamic determination system for access authorization in border farming areas, comprising a terminal data acquisition subsystem (100), a data communication subsystem (200), and a system server (300); characterized in that, The terminal data acquisition subsystem (100) includes a border resident mobile terminal (110) and a border inspection duty handheld terminal (120). The border resident mobile terminal (110) is equipped with a Beidou positioning module (111) and a face image acquisition module (112). The border inspection duty handheld terminal (120) is equipped with a QR code scanning module (121) and an authorization verification module (122). The data communication subsystem (200) includes a 4G / 5G communication link (210) and a BeiDou short message backup link (220). The system server (300) includes a border farmland ownership database (310), an identity authentication module (320), a spatial determination module (330), a passage authorization module (340), a threshold dynamic adjustment module (350), and a communication security and log module (360). The location data output terminal and face image output terminal of the border resident mobile terminal (110) are connected to the system server (300) through the data communication subsystem (200). The identity code output terminal of the identity authentication module (320) is connected to the first input terminal of the spatial determination module (330). The land boundary data output terminal of the border cultivated land ownership database (310) is connected to the second input terminal of the spatial determination module (330). The real-time location data output terminal of the border resident mobile terminal (110) is connected to the third input terminal of the spatial determination module (330). The determination result output terminal of the spatial determination module (330) is connected to the input terminal of the access authorization module (340). The dynamic threshold output terminal of the threshold dynamic adjustment module (350) is connected to the access authorization module (340). The authorization information output terminal of the access authorization module (340) is connected to the border resident mobile terminal (110) and the border inspection duty handheld terminal (120) respectively.
2. The dynamic determination system for access authorization in border residents' farming areas according to claim 1, characterized in that, The Beidou positioning module (111) communicates with the main control chip of the border resident mobile terminal (110) through the UART interface and outputs GGA or RMC statements in NMEA0183 format. The face image acquisition module (112) is connected to the camera via a CSI interface or a MIPI interface to acquire face images of border residents; the QR code scanning module (121) is connected to the scanning head via a USB interface or a UART interface; and the authorization verification module (122) is used to verify the consistency between the credential data scanned by the QR code scanning module (121) and the authorization information pushed by the system server (300).
3. The dynamic determination system for access authorization in border resident farming areas according to claim 1, characterized in that, The data communication subsystem (200) prioritizes the use of the 4G / 5G communication link (210) to transmit location data, identity authentication data, authorization information and early warning information using the MQTT protocol. The data reporting frequency is 1Hz, and the transmitted data is encrypted using the SM4 algorithm. When the 4G / 5G communication link (210) is unavailable, the border resident mobile terminal (110) uploads the compressed positioning coordinates, identity summary and timestamp through the Beidou short message backup link (220).
4. The dynamic determination system for access authorization in border residents' farming areas according to claim 1, characterized in that, The border farmland ownership database (310) uses a PostgreSQL database and PostGIS spatial extension to store the WGS-84 coordinate system spatial boundary of farmland plots, GeoJSON format plot data, plot number, plot area, control zone number, farmer identity information and family member information, and establishes an R-tree over GiST spatial index. The identity authentication module (320) is used to compare the face image collected by the face image acquisition module (112) with the pre-registered face features in a 1:N ratio, and generate an identity identification code when the similarity is not less than 85%.
5. The dynamic determination system for access authorization in border residents' farming areas according to claim 1, characterized in that, The spatial determination module (330) is used to retrieve the boundary coordinates of authorized land plots associated with the border residents' identities from the border farmland ownership database (310) using the identity identification code and the current control area number as indexes, and to perform Point-Round-Polygon spatial overlay analysis on the positioning coordinates corresponding to the real-time positioning data and the boundary coordinates of the authorized land plots. The spatial determination module (330) optimizes the existing Point-in-Polygon spatial overlay algorithm as follows: taking the location point of the border resident's mobile phone as the center and the largest inscribed circle of the border resident's authorized land plot as the radius, a circle that moves with the point is generated. Based on the area of the intersection of the circle with different attribute surfaces, it is determined whether the border resident is located within the authorized land plot.
6. The dynamic determination system for access authorization in border residents' farming areas according to claim 1, characterized in that, The access authorization module (340) is used to generate a temporary electronic access certificate in QR code format when the spatial determination module (330) determines that the positioning coordinates are located inside any authorized plot, on the plot boundary, or within the plot boundary buffer zone. The temporary electronic access certificate includes at least an identity code, plot number, validity period timestamp, random number, and certificate verification code. The threshold dynamic adjustment module (350) is used to determine the boundary crossing warning threshold based on the agricultural season, land type, border security level and positioning accuracy; The communication security and log module (360) is used to record identity authentication results, location coordinates, spatial determination results, dynamic thresholds, temporary electronic access certificates, boundary crossing warnings, and checkpoint verification results.
7. A method for dynamically determining the passage authorization in border residents' farming areas, characterized in that, The passage authorization dynamic determination system applied to any one of claims 1 to 6 includes the following steps: S1. Establish a border farmland ownership database (310) through the system server (300), and store the farmland plot spatial boundary, plot number, control zone number, farmer identity information and family member information in association, and establish a spatial index; S2. Real-time positioning data is collected through the Beidou positioning module (111) of the border resident mobile terminal (110), and the face image of the border resident is collected through the face image acquisition module (112) and uploaded to the system server (300) through the data communication subsystem (200). S3. The identity authentication module (320) performs identity authentication on the face image of the border resident, and generates an identity identification code after successful authentication; S4. Using the identity code and the current control area number as search conditions, the spatial determination module (330) retrieves the boundary coordinates of the authorized land plot from the border farmland ownership database (310); S5. The spatial determination module (330) performs spatial overlay analysis on the real-time positioning coordinates and the boundary coordinates of the authorized plot to determine whether the real-time positioning coordinates are located inside any authorized plot, on the plot boundary, or within the plot boundary buffer zone. S6. When step S5 is deemed successful, a temporary electronic pass is generated through the pass authorization module (340) and pushed to the border resident mobile terminal (110) and the border inspection duty handheld terminal (120). When step S5 is deemed unsuccessful, the deviation distance between the real-time positioning coordinates and the boundary of the nearest authorized plot is calculated, and the corresponding warning is triggered according to the boundary warning threshold output by the threshold dynamic adjustment module (350).
8. The method for dynamically determining the passage authorization in border residents' farming areas according to claim 7, characterized in that, In step S2, the border resident mobile terminal (110) prioritizes uploading real-time location data and border resident face images via the 4G / 5G communication link (210) using the MQTT protocol, and the transmitted data is encrypted using the SM4 algorithm; when the 4G / 5G communication link (210) is unavailable, the border resident mobile terminal (110) uploads compressed location coordinates, identity summary and timestamp via the Beidou short message backup link (220); before step S3, the system server (300) performs location quality verification on the real-time location data, and the location quality verification includes timestamp verification, coordinate range verification, horizontal positioning accuracy verification and terminal movement speed verification.
9. The method for dynamically determining the access authorization in border residents' cultivated areas according to claim 7, characterized in that, In step S4, the spatial determination module (330) first constructs a buffer outer rectangle with the real-time positioning coordinates as the center, filters candidate plots that intersect with the buffer outer rectangle through the R-tree overGiST spatial index, and then retains authorized plots that match the identity code and the current control area number from the candidate plots; In step S5, the spatial overlay analysis adopts the Point-Round-Polygon algorithm. When the real-time positioning coordinates fall on the boundary of the authorized plot polygon, or when the distance between the real-time positioning coordinates and the boundary of the authorized plot does not exceed the boundary buffer distance, it is processed as being within the boundary buffer of the authorized plot.
10. The method for dynamically determining the access authorization for border residents' cultivated areas according to claim 7, characterized in that, In step S6, the threshold dynamic adjustment module (350) uses 50m as the baseline value of the boundary crossing warning threshold, adjusts the boundary crossing warning threshold to 80m during the spring plowing and autumn harvest seasons, adjusts the boundary crossing warning threshold to 30m in the mountainous plot scenario, adjusts the boundary crossing warning threshold to 20m when the border security level is improved, and compensates the boundary crossing warning threshold according to the positioning accuracy error. When the deviation distance is greater than the dynamic boundary threshold but not greater than the dynamic boundary threshold plus 30 meters, a Level I warning is triggered. When the deviation distance is greater than the dynamic boundary threshold plus 30 meters but not greater than 150 meters, a Level II warning is triggered; A Level III warning is triggered when the deviation distance exceeds 150 meters. The border inspection handheld terminal (120) scans the temporary electronic pass through the QR code scanning module (121) and verifies the identity code, land parcel number, validity period timestamp and pass verification code through the authorization verification module (122).
