Method and apparatus for constructing an electronic fence

CN117648390BActive Publication Date: 2026-10-27SHANGHAI HUAXING DIGITAL TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311508608.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-13
Publication Date
2026-10-27
Estimated Expiration
2043-11-13

AI Technical Summary

Technical Problem

[0002]在桥梁施工建设、林地绿化治理、矿区作业等场景下,由施工范围形成的虚拟电子围栏边界往往随着施工进度而发生偏移,对于施工人员、设备以及施工现场的管理非常不便

Benefits of technology

[0042]本发明提供的电子围栏构建方法及装置,通过获取当前围栏构建时刻对应的第一样本数据,第一样本数据包括目标作业机械在第一预设时长内作业过程中各作业点的位置信息,且第一样本数据中的各作业点位于现有围栏之外,并基于第一样本数据生成一个或多个第一候选围栏,以及基于围栏配置操作,对各第一候选围栏进行新增、合并或删除处理,得到一个或多个新建或更新的电子围栏,从而能够实时、有效地进行电子围栏的新建或更新,且降低了人力需求,提高了电子围栏的构建精度。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117648390B_ABST
    Figure CN117648390B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electronic fence, and provides an electronic fence construction method and device, the method comprising: obtaining first sample data corresponding to a current fence construction time; the first sample data comprising position information of each work point of a target work machine in a work process within a first preset time length, and each work point in the first sample data being located outside an existing fence; generating one or more first candidate fences based on the first sample data; and performing configuration processing on each first candidate fence based on a fence configuration operation to obtain one or more newly constructed or updated electronic fences; the configuration processing comprising at least one of adding, merging and deleting; the merging comprising merging between the first candidate fences and merging between the first candidate fences and the existing fence. The present application can effectively construct or update the electronic fence in real time, reduce the demand for manpower, and improve the construction accuracy of the electronic fence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic fence technology, and in particular to an electronic fence construction method and apparatus. Background Technology

[0002] In scenarios such as bridge construction, forest greening and management, and mining operations, the boundaries of virtual electronic fences formed by the construction area often shift as the construction progresses, which is very inconvenient for the management of construction personnel, equipment and construction sites.

[0003] Currently, the boundaries of electronic fences are usually surveyed on-site by relevant personnel and maintained manually on a regular basis, or the boundaries of electronic fences are manually delineated using satellite images. These two methods are not only labor-intensive and resource-intensive, but also result in poor accuracy of the electronic fences and make it impossible to achieve real-time and effective updates. Summary of the Invention

[0004] To address the problems existing in the prior art, the present invention provides a method and apparatus for constructing an electronic fence.

[0005] This invention provides a method for constructing an electronic fence, comprising:

[0006] Obtain the first sample data corresponding to the current fence construction time; the first sample data includes the location information of each work point during the operation of the target machinery within a first preset time period, and each work point in the first sample data is located outside the existing fence;

[0007] Based on the first sample data, generate one or more first candidate fences;

[0008] Based on the fence configuration operation, each of the first candidate fences is configured to obtain one or more newly created or updated electronic fences; the configuration process includes at least one of adding, merging and deleting; the merging includes merging the first candidate fences and merging the first candidate fences with the existing fences.

[0009] According to the electronic fence construction method provided by the present invention, the location information includes latitude and longitude information and altitude information; the step of generating one or more first candidate fences based on the first sample data includes:

[0010] Based on the latitude and longitude information of each work point in the first sample data, a first clustering process is performed on each work point in the first sample data to obtain one or more sets of first work points.

[0011] Based on the latitude, longitude and altitude information of each work point in the first work point set, a second clustering is performed on each work point in the first work point set to obtain one or more second work point sets;

[0012] Based on the latitude, longitude, and altitude information of each of the second set of work points, one or more first initial fences are generated;

[0013] Based on each of the first initial fences, one or more of the first candidate fences are generated.

[0014] According to the electronic fence construction method provided by the present invention, the height information of the second set of work points is determined by the following method:

[0015] The height information of each work point in the second set of work points is interpolated, and the height distribution range corresponding to the second set of work points is determined based on the result of the interpolation.

[0016] Based on the height distribution range corresponding to the second set of work points, the height information of the second set of work points is determined.

[0017] According to the electronic fence construction method provided by the present invention, generating one or more first initial fences based on the latitude, longitude, and altitude information of each of the second set of work points includes:

[0018] If there are multiple sets of the second work points, a third clustering is performed on each set of the second work points based on the height information of each set of the second work points to obtain one or more height distribution intervals, and a set of the second work points corresponding to each height distribution interval.

[0019] Based on the latitude and longitude information of each set of second work points corresponding to the height distribution interval, the first initial fence corresponding to each height distribution interval is generated.

[0020] According to the electronic fence construction method provided by the present invention, generating one or more first candidate fences based on each first initial fence includes:

[0021] Based on the preset buffer width, each of the first initial fences is expanded outward to obtain the second initial fence corresponding to each of the first initial fences;

[0022] Based on each of the second initial fences, one or more of the first candidate fences are generated.

[0023] According to the electronic fence construction method provided by the present invention, the step of generating one or more first candidate fences based on each of the second initial fences includes:

[0024] When it is determined that there is a first overlapping area between different second initial fences, the second initial fences containing the first overlapping area are deduplicated based on the number of work points in the first overlapping area and the number of work points in each second initial fence containing the first overlapping area to obtain the first candidate fence.

[0025] The electronic fence construction method provided by the present invention further includes:

[0026] Obtain the second sample data corresponding to the current fence update time; the second sample data includes the location information of each operation point where the distance between the target operating machinery and the existing fence boundary is less than or equal to a preset distance during the operation of the target operating machinery within a second preset time period;

[0027] Based on the height information of each existing fence and the height information of each work point in the second sample data, one or more second candidate fences are generated; the distance between the second candidate fence and the target fence in each existing fence in the height direction is less than or equal to a preset distance threshold.

[0028] Each of the second candidate fences is merged with the corresponding target fence to obtain the update result corresponding to each target fence;

[0029] Based on the update results of each target fence, each existing fence is updated.

[0030] According to the electronic fence construction method provided by the present invention, updating each of the existing fences based on the update results of each of the target fences includes:

[0031] When it is determined that there is a second overlapping area between different existing fences based on the update result of the target fence, the existing fences containing the second overlapping area are deduplicated based on the height information of each existing fence containing the second overlapping area.

[0032] According to the electronic fence construction method provided by the present invention, obtaining the first sample data corresponding to the current fence construction time includes:

[0033] Acquire the operating status signal of the target operating machinery within the first preset time period, as well as the real-time location information of the target operating machinery;

[0034] The operating time period of the target machine is determined based on the operating status signal;

[0035] Based on the real-time location information corresponding to the operation time period, obtain the location information of the candidate operation points of the target operation machinery within the first preset time period;

[0036] Based on the preset operating conditions of the target machine, the candidate operating points are cleaned to obtain the location information of each operating point of the target machine within the first preset time period;

[0037] Based on the location information of the target machinery at each work point within the first preset time period, and the location information of each existing fence, the first sample data corresponding to the current fence construction time is determined.

[0038] The present invention also provides an electronic fence construction device, comprising:

[0039] The first processing module is used to obtain the first sample data corresponding to the current fence construction time; the first sample data includes the location information of each work point during the operation of the target machinery within a first preset time period, and each work point in the first sample data is located outside the existing fence;

[0040] The second processing module is used to generate one or more first candidate fences based on the first sample data;

[0041] The third processing module is used to perform configuration processing on each of the first candidate fences based on fence configuration operations to obtain one or more newly created or updated electronic fences; the configuration processing includes at least one of adding, merging and deleting; the merging includes merging the first candidate fences and merging the first candidate fences with the existing fences.

[0042] The electronic fence construction method and apparatus provided by the present invention acquires first sample data corresponding to the current fence construction time. The first sample data includes the location information of each work point during the operation of the target machinery within a first preset time period, and each work point in the first sample data is located outside the existing fence. Based on the first sample data, one or more first candidate fences are generated. Based on the fence configuration operation, each first candidate fence is added, merged or deleted to obtain one or more newly built or updated electronic fences. This enables the real-time and effective construction or updating of electronic fences, reduces manpower requirements and improves the construction accuracy of electronic fences. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in this 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 some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0044] Figure 1 This is a flowchart illustrating the electronic fence construction method provided by the present invention;

[0045] Figure 2 This is a schematic diagram of the process for generating one or more first candidate fences based on first sample data provided by the present invention;

[0046] Figure 3 This is a schematic diagram of the process for updating existing fences provided by the present invention;

[0047] Figure 4 This is a schematic diagram of the electronic fence construction device provided by the present invention;

[0048] Figure 5 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0050] The following is combined Figures 1-3 This invention describes a method for constructing an electronic fence. This method is executed by an electronic device such as a computer, or by the hardware and / or software therein. Figure 1 As shown, the electronic fence construction method of the present invention includes at least the following steps:

[0051] S101. Obtain the first sample data corresponding to the current fence construction time; the first sample data includes the location information of each work point during the operation of the target machinery within a first preset time period, and each work point in the first sample data is located outside the existing fence;

[0052] S102. Based on the first sample data, generate one or more first candidate fences;

[0053] S103. Based on the fence configuration operation, configure each first candidate fence to obtain one or more newly created or updated electronic fences; the configuration process includes at least one of adding, merging and deleting; merging includes merging between first candidate fences and merging between first candidate fences and existing fences.

[0054] In this embodiment, the electronic fence can be constructed based on a first preset time interval (e.g., one hour), where the current fence construction time is the time when the electronic fence needs to be constructed.

[0055] The target machinery is the machinery on which an electronic fence is to be constructed. A GPS (Global Positioning System) can be installed on the target machinery to obtain its location information in real time. The first sample data corresponding to the current fence construction time can include the location information of each work point when the target machinery performs operations within a first preset time period. The first preset time period can be longer than a first preset time interval, such as one day, fifteen days, etc. The work points in the first sample data can be located outside the existing fence to reduce the computational load during the electronic fence construction process. It is understood that the existing fence can be an electronic fence constructed or updated before the current fence construction time.

[0056] In the process of generating one or more first candidate fences based on the first sample data, the location information of each work point in the first sample data can be used to cluster each first sample data, and one or more first candidate fences can be generated according to the clustering results. Thus, by using the location information of each work point in the first sample data, the accuracy of the constructed first candidate fences can be effectively guaranteed.

[0057] This system can include a human-computer interaction module to display existing fences and one or more first-candidate fences generated at the time of fence construction. The module can also receive user input for fence configuration. For example, users can input addition, merging, or deletion operations for one or more specified fences based on actual application needs and the displayed existing and first-candidate fences. The system then configures the specified fences accordingly based on the user's input. For instance, adding a first-candidate fence allows for its creation and saving; deleting a first-candidate fence allows for its deletion; and merging multiple specified fences allows for their merging. The merging operation can include multiple specified electronic fences, which may simultaneously include first candidate fences and existing fences, or only include first candidate fences or existing fences. This allows for the creation or updating of electronic fences in real-time and effectively based on actual needs, using the constructed first candidate fences. Specific merging methods include, for example, calculating the minimum distance between the fence to be merged and the target fence; adding a minimum distance and a predetermined extended distance threshold buffer to the fence to be merged; creating an overlapping area with the target fence; constructing the convex hull of the overlapping area and the fence to be merged; and then merging the fence with the target fence. It is understood that the fence configuration operation needs to include the configuration of each first candidate fence. Additionally, it can also delete existing fences based on the deletion operation.

[0058] During implementation, after configuring each first candidate fence, a deduplication operation can be performed to avoid overlapping areas between multiple electronic fences. It's worth noting that this deduplication operation no longer includes merging any two fences.

[0059] This embodiment obtains the first sample data corresponding to the current fence construction time. The first sample data includes the location information of each work point during the operation of the target machinery within a first preset time period. Each work point in the first sample data is located outside the existing fence. Based on the first sample data, one or more first candidate fences are generated. Based on the fence configuration operation, each first candidate fence is added, merged or deleted to obtain one or more newly built or updated electronic fences. This enables the creation or updating of electronic fences in real time and effectively, reduces manpower requirements and improves the construction accuracy of electronic fences.

[0060] In an exemplary embodiment, location information includes latitude and longitude information and altitude information; such as Figure 2 As shown, based on the first sample data, one or more first candidate fences are generated, including:

[0061] S201. Based on the latitude and longitude information of each work point in the first sample data, perform a first clustering process on each work point in the first sample data to obtain one or more sets of first work points.

[0062] S202. Based on the latitude, longitude and altitude information of each work point in the first work point set, perform a second clustering on each work point in the first work point set to obtain one or more second work point sets.

[0063] S203. Based on the latitude, longitude and altitude information of each second work point set, generate one or more first initial fences;

[0064] S204. Based on each initial fence, generate one or more first candidate fences.

[0065] In this embodiment, the location information of each work point may include latitude, longitude, and altitude information. During the generation of the first candidate electronic fence, based on the latitude and longitude information of each work point in the first sample data, a first clustering process can be performed on each work point in the first sample data to obtain one or more first work point sets. This allows for the initial division of each work point into one or more groups based on the concentration of work, with no necessary correlation between different groups, thereby effectively improving the effectiveness of the constructed first candidate fence.

[0066] Among them, the first clustering of each job point in the first sample data can be performed based on the DBSCAN (Density-based Spatial Clustering of Application with Noise) method.

[0067] For any one of the first set of work points in one or more sets of first work points, a second clustering can be performed on each work point in the first set of work points based on the latitude, longitude, and altitude information of each work point in the first set of work points, resulting in one or more sets of second work points. These second sets of work points can be used to represent a continuous set of work points for the target machinery. The second clustering of work points in the first set of work points can be performed using the DBSCAN method.

[0068] After obtaining one or more sets of second work points, one or more initial first fences can be generated based on the latitude, longitude, and altitude information of each set of second work points. Specifically, when there is only one set of second work points, a single initial fence can be generated directly using its latitude, longitude, and altitude information; for example, the latitude, longitude, and altitude information of the entire set of second work points can be used as the latitude, longitude, and altitude information for the initial fence. When there are multiple sets of second work points, the sets can be further clustered to generate one or more initial first fences based on the clustering results, thus effectively ensuring the accuracy of the initial fence construction.

[0069] In implementation, if there is only one initial fence, a first candidate fence can be directly generated based on that initial fence. For example, the initial fence can be expanded to obtain a first candidate fence. If there are multiple initial fences, each initial fence can be expanded, and duplicates can be removed from the expanded initial fences to obtain one or more first candidate fences, thus ensuring the validity of the generated first candidate fences.

[0070] In an exemplary embodiment, the height information of the second set of work points is determined by the following method:

[0071] The height information of each work point in the second set of work points is interpolated, and the height distribution range corresponding to the second set of work points is determined based on the interpolation result.

[0072] Based on the height distribution range corresponding to the second set of work points, determine the height information of the second set of work points.

[0073] In this embodiment, for any second work point set in one or more second work point sets, after generating the second work point set, the height information of the second work point set can be determined. For example, the height information of each work point in the second work point set can be interpolated, such as by linear interpolation or nearest neighbor interpolation, to obtain the height trend corresponding to the second work point set. Based on the height trend, the height distribution interval corresponding to the second work point set can be determined. The height distribution interval corresponding to the second work point set can be determined by the maximum height and the minimum height. Specifically, the height information of the second work point set can be determined based on the height distribution interval corresponding to the second work point set. For example, the average of the maximum and minimum heights in the height distribution interval can be used as the height information of the second work point set.

[0074] Therefore, the method of this embodiment can effectively ensure the accuracy of the determination of the height information of the second set of work points, and thus, based on the height information of each set of second work points, can effectively improve the construction accuracy of the first initial fence.

[0075] In an exemplary embodiment, based on the latitude, longitude, and altitude information of each second set of work points, one or more first initial fences are generated, including:

[0076] If there are multiple sets of second work points, a third clustering is performed on each set of second work points based on the height information of each set of second work points to obtain one or more height distribution intervals and a set of second work points corresponding to each height distribution interval.

[0077] Based on the latitude and longitude information of each set of second work points corresponding to the height distribution interval, the first initial fence corresponding to each height distribution interval is generated.

[0078] In this embodiment, when there are multiple sets of second work points, a third clustering can be performed on each set of second work points based on the height information of each set of second work points to obtain one or more height distribution intervals, and a set of second work points corresponding to each height distribution interval.

[0079] For example, for any two sets of second work points in a plurality of sets of second work points, the distance between the two sets of work points in the vertical direction can be determined based on their respective height information. If the distance is less than or equal to a preset distance threshold, it indicates that the two sets of second work points belong to the same class. Thus, a plurality of sets of second work points can be divided into one or more classes, and each class corresponds to a height distribution interval.

[0080] In practice, the height distribution range corresponding to the second work point set of the same type can be determined based on the height information of each second work point set of the same type. For example, the height distribution range corresponding to the second work point set of the same type can be determined based on the maximum and minimum values ​​in the height information of each second work point set of the same type.

[0081] For any given height distribution interval, if there is one second set of work points corresponding to this interval, a first initial fence can be generated based on the latitude and longitude information of this second set of work points. For example, the latitude, longitude, and height information of the second set of work points can be used as the latitude, longitude, and height information of the first initial fence. If there are multiple sets of second work points corresponding to this height distribution interval, clustering can be further performed on the multiple sets of second work points corresponding to this height distribution interval based on their latitude and longitude information, and the result of the clustering can be used as the first initial fence. For example, clustering can be performed on the multiple sets of second work points corresponding to this height distribution interval using convex hull or concave hull methods to obtain the first initial fence corresponding to this height distribution interval.

[0082] Therefore, the method of this embodiment can effectively ensure the construction accuracy of the first initial fence.

[0083] In an exemplary embodiment, one or more first candidate fences are generated based on each first initial fence, including:

[0084] Based on the preset buffer width, each first initial fence is expanded outward to obtain the second initial fence corresponding to each first initial fence.

[0085] Based on each second initial fence, one or more first candidate fences are generated.

[0086] In this embodiment, each first initial fence can be expanded outward based on a preset buffer width. That is, the boundary of each first initial fence is expanded outward by a preset buffer width to obtain a second initial fence corresponding to each first initial fence. Thus, the generated electronic fence can effectively ensure the operational safety of the target machinery. The preset buffer width can be set according to actual needs.

[0087] After obtaining each second initial fence, one or more first candidate fences can be generated based on each second initial fence. For example, if there is only one second initial fence, it can be directly used as the first candidate fence. If there are multiple second initial fences, it can be determined whether there is a first overlapping area between the second initial fences, and the first candidate fence can be generated based on the determination result, thereby effectively ensuring the validity of the first candidate fence.

[0088] In an exemplary embodiment, one or more first candidate fences are generated based on each second initial fence, including:

[0089] When it is determined that there is a first overlapping area between different second initial fences, the second initial fences containing the first overlapping area are deduplicated based on the number of work points in the first overlapping area and the number of work points in each second initial fence containing the first overlapping area, to obtain the first candidate fence.

[0090] In this embodiment, when there are multiple second initial fences, for any two second initial fences among the multiple second initial fences, if there is a first overlapping area between the two different second initial fences, the number of work points in the first overlapping area can be obtained. At the same time, the number of work points in the two second initial fences containing the first overlapping area can be determined respectively. Based on the number of work points in the first overlapping area and the number of work points in the two second initial fences containing the first overlapping area, the two second initial fences containing the first overlapping area are deduplicated.

[0091] For example, the ratio of the number of work points in the first overlapping region to the number of work points in the two second initial fences containing the first overlapping region is obtained. The first overlapping region is deleted from the second initial fence with the smaller ratio and used as the first candidate fence. Simultaneously, the first overlapping region is retained in the second initial fence with the larger ratio and used as the first candidate fence. It is understood that if the absolute value of the difference between the two ratios is less than or equal to a preset value, the two second initial fences containing the first overlapping region are merged, and the merged result is used as the first candidate fence.

[0092] Therefore, the method of this embodiment can quickly and accurately remove duplicates from each second initial fence, ensuring the effectiveness of the obtained first candidate fence.

[0093] In an exemplary embodiment, such as Figure 3 As shown, it also includes:

[0094] S301. Obtain the second sample data corresponding to the current fence update time; the second sample data includes the location information of each work point where the distance between the target working machinery and the existing fence boundary is less than or equal to a preset distance during the operation of the target working machinery within the second preset time period.

[0095] S302. Based on the height information of each existing fence and the height information of each work point in the second sample data, generate one or more second candidate fences; the distance between the second candidate fence and the target fence in each existing fence in the height direction is less than or equal to a preset distance threshold.

[0096] S303. Merge each second candidate fence with the corresponding target fence to obtain the update result for each target fence.

[0097] S304. Based on the update results of each target fence, update each existing fence.

[0098] In this embodiment, the electronic fence can be updated based on a second preset time interval, where the current fence update time is the time when the electronic fence needs to be updated. The second preset time interval is shorter than the first preset time interval; for example, the second preset time interval can be ten minutes.

[0099] The second sample data corresponding to the current fence update time can include the location information of each work point when the target machinery performs operations within a second preset time period. The second preset time period can be longer than a second preset time interval, such as one day or fifteen days. Each work point in the second sample data can be located outside the existing fence, and the distance between it and the existing fence boundary can be less than or equal to a preset distance. Therefore, the existing fence can be effectively updated based on the second sample data, reducing the computational load during the electronic fence update process. It is understood that the existing fence can be an electronic fence built or updated before the current fence update time.

[0100] One or more second candidate fences can be generated based on the height information of each existing fence and the height information of each work point in the second sample data. The distance between the second candidate fence and the target fence in each existing fence along the height direction is less than or equal to a preset distance threshold; that is, the second candidate fence and the target fence in each existing fence are at the same height level. For example, one or more sets of target work points in the second sample data can be obtained based on the height distribution intervals corresponding to each existing fence and the height information of each work point in the second sample data. Each set of target work points can constitute a third set of work points; that is, the target work points are the work points in the second sample data that are located within the corresponding height distribution interval. For any third set of work points, the work points in the third set can be clustered. For example, the DBSCAN method can be used to cluster the work points in the third set to obtain one or more second candidate fences corresponding to the third set of work points.

[0101] After obtaining one or more second candidate fences corresponding to each set of third work points, each second candidate fence can be merged with the corresponding target fence to obtain the update result of the target fence. For example, the target fence can be merged with each second candidate fence at the same height layer using convex hull or concave hull methods to obtain the update result of the target fence, thereby enabling high-frequency updates of existing fences quickly and accurately according to actual needs.

[0102] After obtaining the update results of each target fence, the existing fences can be updated based on the update results of each target fence. For example, the existing fences can be deduplicated based on the update results of the target fences to update each existing fence, thereby effectively ensuring the validity of the updated existing fences.

[0103] In an exemplary embodiment, based on the update results of each target fence, each existing fence is updated, including:

[0104] When it is determined that there is a second overlapping area between different existing fences based on the updated results of the target fence, the existing fences containing the second overlapping area are deduplicated based on the height information of each existing fence containing the second overlapping area.

[0105] In this embodiment, after updating the target fence in the existing fence, it can be determined whether there is a second overlapping area between different existing fences based on the updated target fence. If there is no second overlapping area, the latest update result of each existing fence is directly saved. If there is a second overlapping area, the existing fences with the second overlapping area can be deduplicated, and the deduplication result is saved as the latest update result.

[0106] In the process of deduplicating existing fences with second overlapping regions, the height information of each existing fence containing the second overlapping region can be determined, and deduplication can be performed based on the height information of each existing fence containing the second overlapping region. For example, the second overlapping region can be retained in the existing fence with the highest height and deleted from other existing fences, thereby effectively ensuring the reliability of the deduplication results and further improving the effectiveness of the updated existing fences.

[0107] In an exemplary embodiment, obtaining the first sample data corresponding to the current fence construction time includes:

[0108] Acquire the operating status signal of the target machine and the real-time location information of the target machine within a first preset time period;

[0109] The operating time period of the target machinery is determined based on the operating status signal;

[0110] Based on the real-time location information corresponding to the operation time period, obtain the location information of candidate operation points of the target operation machinery within the first preset time period;

[0111] Based on the preset operating conditions of the target machinery, the candidate operating points are cleaned to obtain the location information of each operating point of the target machinery within the first preset time period.

[0112] Based on the location information of each work point of the target machinery within the first preset time period, and the location information of each existing fence, the first sample data corresponding to the current fence construction time is determined.

[0113] In this embodiment, the location information and operation status signal of the target machinery can be acquired in real time. The operation status signal is used to characterize whether the target machinery is performing operations. For example, taking a lifting device as an example, the operation status signal can be the pressure signal of the lifting mechanism.

[0114] In practice, the operating time period of the target machine can be determined based on the operating status signal, and the location information within the operating time period can be used as the location information of the candidate operating point of the target machine within the first preset time period.

[0115] After determining the candidate work points within the first preset time period, the candidate work points can be cleaned to remove invalid work points, thereby obtaining the location information of each work point of the target machine within the first preset time period.

[0116] The preset operating conditions for the target machinery may include preset operating duration, preset operating time interval, and preset abnormal operating areas. Preset abnormal operating areas include, for example, repair shops, parking lots, and non-operating areas in road network data transmitted by the road network system.

[0117] During implementation, in the process of cleaning candidate work points, a first cleaning can be performed based on a preset work duration. For example, if the continuous work duration is less than the preset duration, the corresponding candidate work point is removed. A second cleaning can be performed based on a preset work time interval and the results of the first cleaning. For example, if the time interval between two adjacent continuous work operations is less than the preset time interval, candidate work points from one of the continuous work operations can be removed. Simultaneously, a third cleaning can be performed based on the location information of each candidate work point and a preset abnormal work area. For example, if a candidate work point is located in a preset abnormal work area, it is removed. This effectively ensures the accuracy of the obtained work points, thereby improving the construction accuracy of the first candidate fence.

[0118] After obtaining the location information of each work point within the first preset time period, it is possible to determine whether each work point within the first preset time period is located within the existing fence based on the location information of each existing fence. If so, it is removed, thereby effectively reducing the amount of data in the first sample data and avoiding the repeated construction of fences, thus improving the efficiency of fence creation or updating.

[0119] The electronic fence construction device provided by this invention is described below. The electronic fence construction device described below can be referred to in correspondence with the electronic fence construction method described above. Figure 4 As shown, the electronic fence construction device of the present invention includes at least:

[0120] The first processing module 401 is used to obtain the first sample data corresponding to the current fence construction time; the first sample data includes the location information of each work point during the operation of the target operating machinery within a first preset time period, and each work point in the first sample data is located outside the existing fence;

[0121] The second processing module 402 is used to generate one or more first candidate fences based on the first sample data;

[0122] The third processing module 403 is used to perform configuration processing on each first candidate fence based on the fence configuration operation to obtain one or more newly created or updated electronic fences; the configuration processing includes at least one of adding, merging and deleting; merging includes merging between first candidate fences and merging between first candidate fences and existing fences.

[0123] In an exemplary embodiment, the location information includes latitude and longitude information and altitude information; the second processing module 402 is specifically used for:

[0124] Based on the latitude and longitude information of each work point in the first sample data, the first clustering process is performed on each work point in the first sample data to obtain one or more sets of first work points.

[0125] Based on the latitude, longitude, and altitude information of each work point in the first work point set, a second clustering is performed on each work point in the first work point set to obtain one or more second work point sets;

[0126] Based on the latitude, longitude, and altitude information of each second set of work points, one or more first initial fences are generated;

[0127] Based on each initial fence, one or more first candidate fences are generated.

[0128] In an exemplary embodiment, the second processing module 402 is specifically used for:

[0129] The height information of each work point in the second set of work points is interpolated, and the height distribution range corresponding to the second set of work points is determined based on the interpolation result.

[0130] Based on the height distribution range corresponding to the second set of work points, determine the height information of the second set of work points.

[0131] In an exemplary embodiment, the second processing module 402 is specifically used for:

[0132] If there are multiple sets of second work points, a third clustering is performed on each set of second work points based on the height information of each set of second work points to obtain one or more height distribution intervals and a set of second work points corresponding to each height distribution interval.

[0133] Based on the latitude and longitude information of each set of second work points corresponding to the height distribution interval, the first initial fence corresponding to each height distribution interval is generated.

[0134] In an exemplary embodiment, the second processing module 402 is specifically used for:

[0135] Based on the preset buffer width, each first initial fence is expanded outward to obtain the second initial fence corresponding to each first initial fence.

[0136] Based on each second initial fence, one or more first candidate fences are generated.

[0137] In an exemplary embodiment, the second processing module 402 is specifically used for:

[0138] When it is determined that there is a first overlapping area between different second initial fences, the second initial fences containing the first overlapping area are deduplicated based on the number of work points in the first overlapping area and the number of work points in each second initial fence containing the first overlapping area, to obtain the first candidate fence.

[0139] In an exemplary embodiment, the electronic fence construction device further includes a fourth processing module, which is used to:

[0140] Obtain the second sample data corresponding to the current fence update time; the second sample data includes the location information of each operation point where the distance between the target operating machinery and the existing fence boundary is less than or equal to a preset distance during the operation of the target operating machinery within a second preset time period;

[0141] Based on the height information of each existing fence and the height information of each work point in the second sample data, one or more second candidate fences are generated; the distance between the second candidate fence and the target fence in each existing fence in the height direction is less than or equal to a preset distance threshold.

[0142] Each second candidate fence is merged with its corresponding target fence to obtain the updated result for each target fence.

[0143] Based on the update results of each target fence, each existing fence is updated.

[0144] In an exemplary embodiment, the fourth processing module is specifically used for:

[0145] When it is determined that there is a second overlapping area between different existing fences based on the updated results of the target fence, the existing fences containing the second overlapping area are deduplicated based on the height information of each existing fence containing the second overlapping area.

[0146] In an exemplary embodiment, the first processing module 401 is specifically used for:

[0147] Acquire the operating status signal of the target machine and the real-time location information of the target machine within a first preset time period;

[0148] The operating time period of the target machinery is determined based on the operating status signal;

[0149] Based on the real-time location information corresponding to the operation time period, obtain the location information of candidate operation points of the target operation machinery within the first preset time period;

[0150] Based on the preset operating conditions of the target machinery, the candidate operating points are cleaned to obtain the location information of each operating point of the target machinery within the first preset time period.

[0151] Based on the location information of each work point of the target machinery within the first preset time period, and the location information of each existing fence, the first sample data corresponding to the current fence construction time is determined.

[0152] Figure 5 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 5 As shown, the electronic device may include a processor 501, a communications interface 502, a memory 503, and a communication bus 504, wherein the processor 501, communications interface 502, and memory 503 communicate with each other via the communication bus 504. The processor 501 can call logical instructions in the memory 503 to execute the electronic fence construction method in any embodiment. This method includes: acquiring first sample data corresponding to the current fence construction time; the first sample data includes the location information of each work point during the operation of the target machinery within a first preset time period, and each work point in the first sample data is located outside the existing fence.

[0153] Based on the first sample data, generate one or more first candidate fences;

[0154] Based on the fence configuration operation, each first candidate fence is configured to obtain one or more newly created or updated electronic fences; the configuration process includes at least one of adding, merging and deleting; merging includes merging between first candidate fences and merging between first candidate fences and existing fences.

[0155] Furthermore, the logical instructions in the aforementioned memory 503 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0156] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the electronic fence construction method in any of the above embodiments. The method includes: acquiring first sample data corresponding to the current fence construction time; the first sample data includes the location information of each work point during the operation of the target machinery within a first preset time period, and each work point in the first sample data is located outside the existing fence.

[0157] Based on the first sample data, generate one or more first candidate fences;

[0158] Based on the fence configuration operation, each first candidate fence is configured to obtain one or more newly created or updated electronic fences; the configuration process includes at least one of adding, merging and deleting; merging includes merging between first candidate fences and merging between first candidate fences and existing fences.

[0159] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the electronic fence construction method in any of the above embodiments. The method includes: acquiring first sample data corresponding to the current fence construction time; the first sample data includes the location information of each work point during the operation of the target machinery within a first preset time period, and each work point in the first sample data is located outside the existing fence.

[0160] Based on the first sample data, generate one or more first candidate fences;

[0161] Based on the fence configuration operation, each first candidate fence is configured to obtain one or more newly created or updated electronic fences; the configuration process includes at least one of adding, merging and deleting; merging includes merging between first candidate fences and merging between first candidate fences and existing fences.

[0162] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0163] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of embodiments.

[0164] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for constructing an electronic fence, characterized in that, include: Obtain the first sample data corresponding to the current fence construction time; The first sample data includes the location information of each work point during the operation of the target machinery within a first preset time period, and each work point in the first sample data is located outside the existing fence; Based on the first sample data, generate one or more first candidate fences; Based on the fence configuration operation, each of the first candidate fences is configured to obtain one or more newly created or updated electronic fences; The configuration process includes at least one of adding, merging, and deleting; the merging includes merging the first candidate fences and merging the first candidate fences with the existing fences; The location information includes latitude and longitude information and altitude information; generating one or more first candidate fences based on the first sample data includes: Based on the latitude and longitude information of each work point in the first sample data, a first clustering process is performed on each work point in the first sample data to obtain one or more sets of first work points. Based on the latitude, longitude and altitude information of each work point in the first work point set, a second clustering is performed on each work point in the first work point set to obtain one or more second work point sets; Based on the latitude, longitude, and altitude information of each of the second set of work points, one or more first initial fences are generated; Based on each of the first initial fences, generate one or more of the first candidate fences; The specific merging method includes: calculating the minimum distance between the fence to be merged and the target fence; adding a minimum distance and a predetermined extended distance threshold buffer to the fence to be merged, resulting in an overlapping area with the target fence; constructing the convex hull of the overlapping area and the fence to be merged, and then merging it with the target fence.

2. The electronic fence construction method according to claim 1, characterized in that, The height information of the second set of work points was determined using the following method: The height information of each work point in the second set of work points is interpolated, and the height distribution range corresponding to the second set of work points is determined based on the result of the interpolation. Based on the height distribution range corresponding to the second set of work points, the height information of the second set of work points is determined.

3. The electronic fence construction method according to claim 1, characterized in that, The generation of one or more first initial fences based on the latitude, longitude, and altitude information of each of the second set of work points includes: If there are multiple sets of the second work points, a third clustering is performed on each set of the second work points based on the height information of each set of the second work points to obtain one or more height distribution intervals, and a set of the second work points corresponding to each height distribution interval. Based on the latitude and longitude information of each set of second work points corresponding to the height distribution interval, the first initial fence corresponding to each height distribution interval is generated.

4. The electronic fence construction method according to claim 1, characterized in that, The step of generating one or more first candidate fences based on each of the first initial fences includes: Based on the preset buffer width, each of the first initial fences is expanded outward to obtain the second initial fence corresponding to each of the first initial fences; Based on each of the second initial fences, one or more of the first candidate fences are generated.

5. The electronic fence construction method according to claim 4, characterized in that, The step of generating one or more first candidate fences based on each of the second initial fences includes: When it is determined that there is a first overlapping area between different second initial fences, the second initial fences containing the first overlapping area are deduplicated based on the number of work points in the first overlapping area and the number of work points in each second initial fence containing the first overlapping area to obtain the first candidate fence.

6. The electronic fence construction method according to any one of claims 1 to 5, characterized in that, Also includes: Obtain the second sample data corresponding to the current fence update time; The second sample data includes the location information of each work point where the distance between the target working machinery and the existing fence boundary is less than or equal to a preset distance during the second preset time period of operation; Based on the height information of each existing fence and the height information of each work point in the second sample data, one or more second candidate fences are generated; the distance between the second candidate fence and the target fence in each existing fence in the height direction is less than or equal to a preset distance threshold. Each of the second candidate fences is merged with the corresponding target fence to obtain the update result corresponding to each target fence; Based on the update results of each target fence, each existing fence is updated.

7. The electronic fence construction method according to claim 6, characterized in that, The updating of each existing fence based on the update results of each target fence includes: When it is determined that there is a second overlapping area between different existing fences based on the update result of the target fence, the existing fences containing the second overlapping area are deduplicated based on the height information of each existing fence containing the second overlapping area.

8. The method for constructing an electronic fence according to any one of claims 1 to 5, characterized in that, The step of obtaining the first sample data corresponding to the current fence construction time includes: Acquire the operating status signal of the target operating machinery within the first preset time period, as well as the real-time location information of the target operating machinery; The operating time period of the target machine is determined based on the operating status signal; Based on the real-time location information corresponding to the operation time period, obtain the location information of the candidate operation points of the target operation machinery within the first preset time period; Based on the preset operating conditions of the target machine, the candidate operating points are cleaned to obtain the location information of each operating point of the target machine within the first preset time period; Based on the location information of the target machinery at each work point within the first preset time period, and the location information of each existing fence, the first sample data corresponding to the current fence construction time is determined.

9. An electronic fence construction device, characterized in that, include: The first processing module is used to obtain the first sample data corresponding to the current fence construction time. The first sample data includes the location information of each work point during the operation of the target machinery within a first preset time period, and each work point in the first sample data is located outside the existing fence; The second processing module is used to generate one or more first candidate fences based on the first sample data; The third processing module is used to perform configuration processing on each of the first candidate fences based on the fence configuration operation, so as to obtain one or more newly created or updated electronic fences. The configuration process includes at least one of adding, merging, and deleting; the merging includes merging the first candidate fences and merging the first candidate fences with the existing fences; The location information includes latitude and longitude information and altitude information; generating one or more first candidate fences based on the first sample data includes: Based on the latitude and longitude information of each work point in the first sample data, a first clustering process is performed on each work point in the first sample data to obtain one or more sets of first work points. Based on the latitude, longitude and altitude information of each work point in the first work point set, a second clustering is performed on each work point in the first work point set to obtain one or more second work point sets; Based on the latitude, longitude, and altitude information of each of the second set of work points, one or more first initial fences are generated; Based on each of the first initial fences, generate one or more of the first candidate fences; The specific merging method includes: calculating the minimum distance between the fence to be merged and the target fence; adding a minimum distance and a predetermined extended distance threshold buffer to the fence to be merged, resulting in an overlapping area with the target fence; constructing the convex hull of the overlapping area and the fence to be merged, and then merging it with the target fence.

Citation Information

Patent Citations

  • Electronic fence retrieval method, device and equipment and computer readable storage medium

    CN112732990A

  • Dynamic electronic fence forming method and device and vehicle operation control method

    CN113808347A

  • Electronic map surface element merging method and device, equipment and medium

    CN115797500A

  • Method for determining electronic fence, transportation equipment, storage medium and processor

    CN116170491A