CN112800349A - Method, device, equipment and medium for acquiring motion state of aquatic moving target - Google Patents

Method, device, equipment and medium for acquiring motion state of aquatic moving target Download PDF

Info

Publication number
CN112800349A
CN112800349A CN202110141678.1A CN202110141678A CN112800349A CN 112800349 A CN112800349 A CN 112800349A CN 202110141678 A CN202110141678 A CN 202110141678A CN 112800349 A CN112800349 A CN 112800349A
Authority
CN
China
Prior art keywords
moving target
tracking
information
motion state
tracking points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110141678.1A
Other languages
Chinese (zh)
Other versions
CN112800349B (en
Inventor
阮佳
吴祖珩
刘宜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGDONG MARITIME SAFETY ADMI
Original Assignee
GUANGDONG MARITIME SAFETY ADMI
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUANGDONG MARITIME SAFETY ADMI filed Critical GUANGDONG MARITIME SAFETY ADMI
Priority to CN202110141678.1A priority Critical patent/CN112800349B/en
Publication of CN112800349A publication Critical patent/CN112800349A/en
Application granted granted Critical
Publication of CN112800349B publication Critical patent/CN112800349B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/64Devices characterised by the determination of the time taken to traverse a fixed distance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Traffic Control Systems (AREA)

Abstract

The application provides a method and a device for acquiring a motion state of a water moving target, computer equipment and a storage medium. The method comprises the steps of obtaining position information of a plurality of tracking points corresponding to a moving target and time information of the moving target passing each tracking point, obtaining speed information corresponding to the moving target at the plurality of tracking points according to the position information and the time information of the plurality of tracking points, comparing the speed information corresponding to each tracking point with a preset speed parameter, and determining the current motion state of the moving target according to the comparison result. The speed information at each tracking point is obtained through the position information and the time information of the moving target, and the directly reported speed information is not used, so that the accuracy of obtaining the speed information is improved, and the accuracy of judging the current motion state of the moving target is further improved.

Description

Method, device, equipment and medium for acquiring motion state of aquatic moving target
Technical Field
The present application relates to the field of ship tracking technologies, and in particular, to a method and an apparatus for acquiring a motion state of an above-water moving target, a computer device, and a storage medium.
Background
With the development of economic society, the maritime transportation becomes an important carrier for trade in China and international. Effectively monitoring the navigation and mooring states of the aquatic moving target provides convenience for marine institutions to manage marine affairs.
In the prior art, the position and the speed of the aquatic moving target are generally obtained by analyzing message information, so as to obtain the navigation state of the aquatic moving target, and the information may be inaccurate due to the acquisition equipment or the analysis method, so that the obtained motion state of the aquatic moving target is inaccurate.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device and a storage medium for acquiring a motion state of an aquatic moving target, aiming at the technical problem in the prior art that the accuracy of acquiring the motion state of the moving target is low.
A method of acquiring a motion state of a moving object on water, the method comprising:
acquiring position information of a plurality of tracking points corresponding to a moving target and time information of the moving target passing through each tracking point; the tracking point is determined according to the data reported by the moving target;
obtaining speed information corresponding to the moving target at the plurality of tracking points according to the position information and the time information of the plurality of tracking points;
and respectively comparing the speed information corresponding to each tracking point with a preset speed parameter, and determining the current motion state of the moving target according to the comparison result.
In one embodiment, the determining the current motion state of the moving object according to the comparison result includes:
if the number of the tracking points of which the speed information is greater than the preset speed parameter is greater than a preset number threshold value, determining that the current motion state of the moving target is a navigation state;
and if the number of the tracking points of which the speed information is smaller than the preset speed parameter is larger than the preset number threshold value in the plurality of tracking points, determining that the current motion state of the moving target is a parking state.
In one embodiment, the method further comprises:
acquiring the intermediate motion state of the moving target; the intermediate motion state is the motion state of the moving target at an intermediate tracking point; at least one of the intermediate tracking points is the same as the plurality of tracking points; the intermediate motion state comprises a sailing state or a parking state;
and if the current motion state is different from the intermediate motion state, taking the time information of the first tracking point in the plurality of tracking points as the starting time of the current motion state, and updating the ending time of the intermediate motion state.
In one embodiment, the obtaining, according to the position information and the time information of the plurality of tracking points, speed information corresponding to the moving target at the plurality of tracking points respectively includes:
according to the position information and the time information of the plurality of tracking points, obtaining movement distance information and movement time consumption information of the moving target between two adjacent tracking points;
and obtaining the speed information corresponding to the moving target at each tracking point according to the movement distance information and the movement time consumption information.
In one embodiment, the obtaining position information of a plurality of tracking points corresponding to a moving target and time information of the moving target passing through each tracking point includes:
acquiring message data reported by the mobile target through a message queue;
and analyzing the message data to obtain the position information of a plurality of tracking points corresponding to the moving target and the time information of the moving target passing through the plurality of tracking points.
In one embodiment, the method further comprises:
acquiring a plurality of tracking points with a preset tracking number according to the sequence of the time information;
determining the current motion state of the moving target according to the position information, the time information and the speed information corresponding to the tracking points with the preset tracking number;
and acquiring information corresponding to the new tracking points with the number less than the preset tracking number, and eliminating the previous tracking points in the plurality of tracking points with the preset tracking number to obtain a plurality of new tracking points meeting the preset tracking number.
In one embodiment, before comparing the speed information corresponding to each tracking point with a preset speed parameter, the method further includes:
and comparing the speed information corresponding to the plurality of tracking points with the error control parameters, and rejecting the information corresponding to the tracking points of which the speed information is greater than the error control parameters.
A motion state acquisition device for a moving object on water, the device comprising:
the tracking point information acquisition module is used for acquiring the position information of a plurality of tracking points corresponding to the moving target and the time information of the moving target passing through each tracking point; the tracking point is determined according to the data reported by the moving target;
the speed information acquisition module is used for acquiring speed information corresponding to the moving target at the plurality of tracking points according to the position information and the time information of the plurality of tracking points;
and the current state acquisition module is used for respectively comparing the speed information corresponding to each tracking point with a preset speed parameter and determining the current motion state of the moving target according to the comparison result.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method for acquiring a motion state of a water moving target according to any one of the above embodiments when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method steps for acquiring the motion state of a water moving target according to any one of the above embodiments.
According to the method, the device, the computer equipment and the storage medium for acquiring the motion state of the aquatic moving target, the position information of a plurality of tracking points corresponding to the moving target and the time information of the moving target passing through each tracking point are acquired, the speed information corresponding to the moving target at the plurality of tracking points is acquired according to the position information and the time information of the plurality of tracking points, the speed information corresponding to each tracking point is compared with the preset speed parameter, and the current motion state of the moving target is determined according to the comparison result. The speed information at each tracking point is obtained through the position information and the time information of the moving target, and the directly reported speed information is not used, so that the accuracy of obtaining the speed information is improved, and the accuracy of judging the current motion state of the moving target is further improved.
Drawings
FIG. 1 is an application environment diagram of a method for acquiring a motion state of a moving object on water in one embodiment;
FIG. 2 is a schematic flow chart of a method for acquiring the motion state of a moving object on water in one embodiment;
FIG. 3 is a schematic flow chart of a method for acquiring the motion state of a water moving target in one embodiment;
FIG. 4 is a schematic flow chart of a motion state acquisition method of a water moving target in another embodiment;
FIG. 5 is a block diagram of a device for acquiring the motion state of the aquatic moving target in one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for acquiring the motion state of the aquatic moving target can be applied to the application environment shown in fig. 1. The overwater moving target can be provided with a communication module for acquiring running information and equipment parameter information of the overwater moving target. The aquatic moving target may communicate with the server over a network. And the server analyzes the data reported by the aquatic moving target to obtain the current motion state of the moving target. The communication configured by the water mobile target provider can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices and ship communication devices, and the server can be realized by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a method for acquiring a motion state of a moving object on water is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
in step S201, position information of a plurality of tracking points corresponding to the moving target and time information of the moving target passing each tracking point are acquired.
The moving target can be a water ship, a navigation apparatus and the like, the moving target can report data to the server at a certain frequency, the server can acquire the data in a time sequence generated by each report data, and each set of report data can determine a tracking point. Each set of reported data may include the location information of the tracking point and the time information of the moving target passing through the tracking point. The position information may be positioning information determined by using longitude and latitude, or positioning information determined by the distance of the moving object from the fixed reference object. According to the data reported by the moving target, a plurality of tracking points, and the position information and the time information corresponding to each tracking point can be determined, so that the running track of the moving target can be obtained.
In a specific implementation, the server may obtain the reported data through a communication module configured on the moving target, and obtain the time information of the moving target passing through the tracking point, where the position information of the tracking points corresponds to the moving target.
Step S202, according to the position information and the time information of the plurality of tracking points, the speed information corresponding to the moving target at the plurality of tracking points is obtained.
The server can obtain distance information between any two tracking points and time consumption information of the moving target moving from a previous tracking point to a next tracking point according to the position information and the corresponding time information of the plurality of tracking points, and further obtain speed information according to the distance information and the time consumption information, and the speed information is used as the speed of the moving target at the next tracking point. The server may preset an acquisition mode of the speed information of the tracking points, for example, any two tracking points may be adjacent tracking points, or tracking points separated by a fixed number of tracking points.
In a specific implementation, the server may determine, according to the position information and the time information of the plurality of tracking points, speed information corresponding to the moving target at the plurality of tracking points, respectively, according to a preset speed information obtaining manner of the tracking points.
Step S203, the corresponding speed information of each tracking point is compared with the preset speed parameters respectively, and the current motion state of the moving target is determined according to the comparison result.
The moving target can move along with the position generated by water flow and wind direction on water, and can also move in the starting state of the engine. The preset speed parameter is a speed threshold value of the moving object determined empirically or statistically. The current motion state may include a sailing state or a parked state. The comparison result may be that the corresponding speed information at each tracking point is greater than the preset speed parameter and less than the preset speed parameter. If the corresponding speed information at the tracking point is greater than the preset speed parameter, the moving target at the tracking point can be considered to be in a sailing state, and otherwise, the moving target at the tracking point can be considered to be in a parking state. The server can also determine that the moving target is in a sailing state or a parking state within the range of the determined time span of the tracking points according to the comparison result of the speeds of the tracking points and the preset speed parameters.
In a specific implementation, the server may determine the current motion state of the moving target according to a comparison result between the corresponding speed information at each tracking point and the preset speed parameter.
According to the method for acquiring the motion state of the aquatic moving target, the position information of a plurality of tracking points corresponding to the moving target and the time information of the moving target passing through each tracking point are acquired, the speed information corresponding to the moving target at the plurality of tracking points is acquired according to the position information and the time information of the plurality of tracking points, the speed information corresponding to each tracking point is compared with the preset speed parameter, and the current motion state of the moving target is determined according to the comparison result. The speed information at each tracking point is obtained through the position information and the time information of the moving target, and the directly reported speed information is not used, so that the accuracy of obtaining the speed information is improved, and the accuracy of judging the current motion state of the moving target is further improved.
In one embodiment, the server may obtain the location information and the corresponding time information of each tracking point in real time through the message queue, so as to improve the efficiency of obtaining data. The message queue can be a kafka (kaffa) message queue, can be a fast, extensible, high-throughput, fault-tolerant distributed publish-subscribe message system, has the characteristics of high throughput, built-in partition, data copy support and fault tolerance, and is suitable for being used in a large-scale message processing scene. The server can acquire the reported data of a plurality of moving targets in real time and process the data in parallel according to the data corresponding to each moving target, so that the efficiency of acquiring the motion state of each moving target is improved.
In one embodiment, the step of determining the current motion state of the moving object according to the comparison result determined in step S203 includes:
if the number of tracking points of which the speed information is greater than the preset speed parameter is greater than a preset number threshold value, determining that the current motion state of the moving target is a navigation state; and if the number of the tracking points of which the speed information is smaller than the preset speed parameter is larger than the preset number threshold value in the plurality of tracking points, determining that the current motion state of the moving target is the parking state.
In this embodiment, the server may obtain corresponding speed information at a plurality of tracking points. The server may set a corresponding relationship between a preset number threshold and the number of tracking points, where the preset number threshold may be obtained through experience or historical data statistics. The server may obtain, in time series, information corresponding to a fixed number of the plurality of tracking points at a time to analyze, so as to determine a current motion state of the moving target within a time span determined by the plurality of tracking points. Through the analysis of continuous groups of tracking points with fixed quantity, the server can determine the navigation path of the moving target at least according to the position information of each tracking point, determine the speed information of each section of the moving target on the navigation path according to the speed information corresponding to each tracking point, and determine the motion state of each section of the moving target on the navigation path according to the current motion state of the moving target in each time span. The server can present navigation paths, corresponding speeds, motion states and other parameters of the moving targets through the display module.
For example, the server may acquire 10 tracking points at a time in time sequence, and the preset number threshold may be 8. If the corresponding speed information of 9 or 10 tracking points in the 10 tracking points is greater than the preset speed parameter, the current motion state of the moving target can be determined to be a navigation state. If the corresponding speed information of 9 or 10 tracking points in the 10 tracking points is less than the preset speed parameter, the current motion state of the moving target can be determined to be the parking state. If the number of tracking points in a batch, which neither meets the condition that the speed information corresponding to the tracking point is greater than the preset speed parameter and is greater than the preset number threshold value, nor meets the condition that the number of tracking points, which meets the condition that the speed information corresponding to the tracking point is less than the preset speed parameter and is greater than the preset number threshold value, the server can maintain the intermediate motion state of the moving target.
According to the scheme of the embodiment, the moving target is determined to be in the sailing state or the parking state by comparing the speed information corresponding to the plurality of tracking points with the preset speed parameter, so that the continuity of the current motion state judgment is realized, the deviation caused by the local tracking points is favorably eliminated, and the accuracy of the current motion state judgment is improved.
In one embodiment, the step of acquiring the position information of the plurality of tracking points corresponding to the moving target and the time information of the moving target passing through each tracking point in step S201 includes:
acquiring message data reported by a mobile target through a message queue; and analyzing the message data to obtain the position information of a plurality of tracking points corresponding to the moving target and the time information of the moving target passing through the plurality of tracking points.
In this embodiment, the message data reported by the moving target may include location information of the moving target at each tracking point and time information of the moving target passing through multiple tracking points. The moving target may have a moving target ID for distinguishing from other water moving devices. Under the condition of large message data volume, the server can acquire the message data of the moving target in real time through the message queue and analyze the message data to obtain the position information of the moving target at each tracking point and the time information of the moving target passing through a plurality of tracking points. The location information may include, among other things, longitude information and latitude information of the tracking point.
For example, the analyzed report information may include the following:
information 1: (id:1, lon:113.2, lat:22.3, time: 20190618091500);
information 2: (id:3, lon:113.5, lat:22.2, time: 20190718091500);
information 3: (id:1, lon:113.5, lat:22.2, time: 20190718091500).
Where lon represents longitude and lat represents latitude. The information 1 and the information 3 belong to the same data of the moving target with the id of 1, and the server can extract the position information and the time information of each tracking point corresponding to the moving target with the id of 1 and determine the motion state of the moving target.
According to the scheme of the embodiment, the message data of the moving target is acquired through the message queue, and the instantaneity of acquiring the message data is improved.
In one embodiment, the method comprises:
acquiring a plurality of tracking points with a preset tracking number according to the sequence of the time information; determining the current motion state of the moving target according to the position information, the time information and the speed information corresponding to the tracking points with the preset tracking number; and acquiring information corresponding to the new tracking points with the number less than the preset tracking number, and eliminating the previous tracking points in the plurality of tracking points with the preset tracking number to obtain a plurality of new tracking points meeting the preset tracking number.
In this embodiment, the server may process, according to the sequence of the time information of each tracking point, each batch of N tracking points, and adopt a first-in first-out manner, after the motion state of the moving target corresponding to the N tracking points of one batch is determined, N new tracking points may be obtained from the message queue, the first tracking point of the N tracking points is removed, a new round of processing and rolling advance are performed to improve the continuity of obtaining the tracking point corresponding to the moving target, where N may be an integer smaller than N. For example, when N is 1, the server may obtain 1 new tracking point from the message queue, remove the first 1 tracking point of the N tracking points, process the tracking point data in the message queue one by one, and perform rolling pushing, thereby improving the accuracy of calculation.
In some embodiments, the server may also input data of the tracking point corresponding to the moving target to a target queue for data processing, where the target queue may be a queue corresponding to the moving target. The queue may be a first-in-first-out queue, and as shown in fig. 3, the queue length may be a predetermined queue threshold. When the server acquires the tracking points for calculation, a first-in first-out mode can be adopted, n new tracking points are acquired each time, n first tracking points are removed, and the length of the target queue is ensured to be fixed. The server may process the speed information at the tracking point of the incoming queue each time. The data input to each trace point of the target queue may include: (id, time, v, lon, lat), wherein id is id of the moving target, time represents time information corresponding to the tracking point, v represents speed information corresponding to the tracking point, lon represents longitude of the tracking point, and lat represents latitude of the tracking point.
According to the scheme of the embodiment, the rolling propulsion of data is realized by managing the number of the tracking points of the moving target analyzed each time, and the accuracy of obtaining the motion state of the moving target is improved.
In one embodiment, the method further comprises:
acquiring the intermediate motion state of a moving target; and if the current motion state is different from the intermediate motion state, taking the time information of the first tracking point in the plurality of tracking points as the starting time of the current motion state, and updating the ending time of the intermediate motion state.
In this embodiment, the motion state of the moving target is a continuous process, the sailing state and the parking state may be switched to each other, the intermediate motion state may be a state in which the moving target continues in the sailing state or the parking state, the intermediate motion state may be determined according to information corresponding to the moving target at an intermediate tracking point, and the intermediate tracking point may be a tracking point before a plurality of tracking points acquired this time and may be at least one same as the plurality of tracking points acquired this time, so as to ensure continuity of the acquired tracking point data. The intermediate motion state may include a sailing state or a parked state.
When the current motion state of the moving target detected by the server is different from the intermediate motion state, it can be determined that the motion state of the moving target is switched, and the intermediate motion state is ended and a new motion state is recalculated. For example, if the moving object is in the stopped state from 10 minutes 12 seconds to 10 minutes 12 seconds from 16 months, 10 months, 12 days in 2020, and the current moving state of the moving object is determined to be the sailing state from the plurality of tracking points, the time information of the first tracking point among the plurality of tracking points acquired this time is from 10 minutes 00 seconds to 10 minutes 10 seconds from 21 days, 10 months, 12 days in 2020, and the current moving state of the moving object is determined to be the sailing state from the plurality of tracking points, it is described that the stopped state has ended, and the server can use the time information of the first tracking point among the plurality of tracking points this time as the stop time of the stopped state from 2020 months, 12 days, 21 days, 10 minutes 00 seconds, and use the time information of the first tracking point as the start time of the current moving state, i..
When the current motion state of the moving object detected by the server is the same as the intermediate motion state, the intermediate motion state can be considered to be still continuing until the motion state switching is detected, and the step of updating the intermediate motion state termination time is executed.
According to the scheme of the embodiment, the motion state switching is determined according to the intermediate motion state and the current motion state by acquiring the intermediate motion state of the moving target, so that the motion state and the current motion state are updated in real time, and the accuracy and the efficiency of acquiring the motion state are improved.
In one embodiment, the step of obtaining the speed information of the moving target at the plurality of tracking points according to the position information and the time information of the plurality of tracking points in step S202 includes:
according to the position information and the time information of the plurality of tracking points, acquiring movement distance information and movement time consumption information of the moving target between two adjacent tracking points; and obtaining corresponding speed information of the moving target at each tracking point according to the movement distance information and the movement time consumption information.
In this embodiment, the position information may be longitude and latitude information of a plurality of tracking points, and the server may obtain the movement distance information between two adjacent tracking points according to the longitude and latitude information. The server can also obtain the movement time consumption information of the moving target moving from the previous tracking point to the next tracking point according to the time information of the adjacent tracking points. The server can obtain the corresponding speed information of the moving target at each tracking point according to the movement distance information and the movement time consumption information, and the speed information can be used as the speed information of the following tracking point.
According to the scheme of the embodiment, the corresponding speed information of each tracking point is determined according to the position information and the time information of the plurality of tracking points, so that the deviation caused by directly adopting the reported data of the moving target is avoided, and the accuracy of acquiring the speed information is improved.
In one embodiment, before comparing the speed information corresponding to each tracking point determined in step S203 with the preset speed parameter, the method includes:
and comparing the speed information corresponding to the plurality of tracking points with the error control parameters, and rejecting the information corresponding to the tracking points of which the speed information is greater than the error control parameters.
In this embodiment, the information reported by the moving target is the discrete location information of the moving target, and a problem of moving target equipment or a problem of message analysis may cause a large error in the speed of an individual tracking point, which affects the accuracy of determination. The server can preset error control parameters of the speed information, and eliminates information corresponding to the tracking points of which the speed information is greater than the error control parameters from the tracking points, so that the server is not used for determining the current motion state of the moving target. For example, the error control parameter may be set to 300 km/h. The server can acquire data according to time sequence from the information corresponding to the removed tracking point, and determine the current motion state of the moving target.
According to the scheme of the embodiment, the accuracy of obtaining the current motion state of the moving target is improved by removing the tracking point information corresponding to the obvious and unreasonable speed information.
In one embodiment, as shown in fig. 4, there is provided a method for acquiring a motion state of a moving object on water, the method comprising:
step S401, obtaining message data reported by a mobile target through a message queue; analyzing the message data to obtain the position information of a plurality of tracking points corresponding to the moving target and the time information of the moving target passing through each tracking point; and the tracking point is determined according to the data reported by the moving target.
Step S402, obtaining the movement distance information and the movement time consumption information of the moving target between two adjacent tracking points according to the position information and the time information of the plurality of tracking points; and obtaining corresponding speed information of the moving target at each tracking point according to the movement distance information and the movement time consumption information.
Step S403, comparing the speed information corresponding to the plurality of tracking points with the error control parameters, and rejecting the information corresponding to the tracking points of which the speed information is greater than the error control parameters; and acquiring tracking points with preset tracking quantity according to the sequence of the time information.
Step S404, comparing the corresponding speed information of each tracking point with a preset speed parameter respectively, and determining the current motion state of the moving target according to the comparison result; if the number of tracking points of which the speed information is greater than the preset speed parameter is greater than a preset number threshold value, determining that the current motion state of the moving target is a navigation state; and if the number of the tracking points of which the speed information is smaller than the preset speed parameter is larger than the preset number threshold value in the plurality of tracking points, determining that the current motion state of the moving target is the parking state.
Step S405, acquiring the middle motion state of the moving target; and if the current motion state is different from the intermediate motion state, taking the time information of the first tracking point in the plurality of tracking points as the starting time of the current motion state, and updating the ending time of the intermediate motion state.
In the embodiment, the message data reported by the moving target is obtained through the message queue, the position information of a plurality of tracking points corresponding to the moving target and the time information of the moving target passing each tracking point are obtained after the message data is analyzed, the speed information corresponding to each tracking point is obtained according to the position information and the time information of each tracking point, the information corresponding to the corresponding tracking point is eliminated, the speed information corresponding to each tracking point is compared with the preset speed parameter to determine the current motion state of the moving target, the starting time and the ending time of the motion state are determined, the real-time processing of the message data of the water moving target is realized, the timeliness of determining the motion state of the water moving target is improved, the speed information at each tracking point is determined through the position information and the time information, and the information corresponding to the tracking point with larger speed error is eliminated, the accuracy of the obtained current motion state is further improved.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 5, there is provided a motion state acquiring device for a water moving object, the device 500 comprising:
a tracking point information obtaining module 501, configured to obtain position information of multiple tracking points corresponding to a moving target and time information of the moving target passing through each tracking point; the tracking point is determined according to the data reported by the moving target;
a speed information obtaining module 502, configured to obtain, according to the position information and the time information of the multiple tracking points, speed information corresponding to the moving target at the multiple tracking points, respectively;
a current state obtaining module 503, configured to compare the speed information corresponding to each tracking point with a preset speed parameter, and determine a current motion state of the moving target according to a comparison result.
In one embodiment, the current state obtaining module 503 includes: the state judgment module is used for determining that the current motion state of the moving target is a navigation state if the number of tracking points with speed information larger than a preset speed parameter is larger than a preset number threshold value in the plurality of tracking points; and if the number of the tracking points of which the speed information is smaller than the preset speed parameter is larger than the preset number threshold value in the plurality of tracking points, determining that the current motion state of the moving target is the parking state.
In one embodiment, the apparatus 500 further comprises: acquiring the intermediate motion state of a moving target; the middle motion state is the motion state of the moving target at the middle tracking point; at least one of the intermediate tracking points is identical to the plurality of tracking points; the intermediate motion state comprises a sailing state or a parking state; and if the current motion state is different from the intermediate motion state, taking the time information of the first tracking point in the plurality of tracking points as the starting time of the current motion state, and updating the ending time of the intermediate motion state.
In one embodiment, the speed information obtaining module 502 includes: the speed information acquisition unit is used for acquiring the movement distance information and the movement time consumption information of the moving target between two adjacent tracking points according to the position information and the time information of the plurality of tracking points; and obtaining corresponding speed information of the moving target at each tracking point according to the movement distance information and the movement time consumption information.
In one embodiment, the tracking point information obtaining module 501 further includes: a tracking point information obtaining unit, configured to obtain, through a message queue, message data reported by a mobile target; and analyzing the message data to obtain the position information of a plurality of tracking points corresponding to the moving target and the time information of the moving target passing through the plurality of tracking points.
In one embodiment, the apparatus 500 further includes: the tracking point replacing module is used for acquiring a plurality of tracking points with preset tracking quantity according to the sequence of the time information; determining the current motion state of the moving target according to the position information, the time information and the speed information corresponding to the tracking points with the preset tracking number; and acquiring information corresponding to the new tracking points with the number less than the preset tracking number, and eliminating the previous tracking points in the plurality of tracking points with the preset tracking number to obtain a plurality of new tracking points meeting the preset tracking number.
In one embodiment, the current state obtaining module 503 further includes: and the speed abnormity eliminating unit is used for comparing the speed information corresponding to the plurality of tracking points with the error control parameters and eliminating the information corresponding to the tracking points of which the speed information is greater than the error control parameters.
For specific definition of the motion state acquiring device of the water moving target, reference may be made to the above definition of the motion state acquiring method of the water moving target, and details are not described here. All or part of the modules in the device for acquiring the motion state of the aquatic moving target can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The method for acquiring the motion state of the water moving target can be applied to computer equipment, the computer equipment can be a server, and the internal structure diagram of the computer equipment can be as shown in fig. 6. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing the reported data of the mobile target. The network interface of the computer device is used for communicating with an external moving object through network connection. The computer program is executed by a processor to realize a motion state acquisition method of the water moving target.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for acquiring the motion state of a water moving target is characterized by comprising the following steps:
acquiring position information of a plurality of tracking points corresponding to a moving target and time information of the moving target passing through each tracking point; the tracking point is determined according to the data reported by the moving target;
obtaining speed information corresponding to the moving target at the plurality of tracking points according to the position information and the time information of the plurality of tracking points;
and respectively comparing the speed information corresponding to each tracking point with a preset speed parameter, and determining the current motion state of the moving target according to the comparison result.
2. The method of claim 1, wherein determining the current motion state of the moving object according to the comparison comprises:
if the number of the tracking points of which the speed information is greater than the preset speed parameter is greater than a preset number threshold value, determining that the current motion state of the moving target is a navigation state;
and if the number of the tracking points of which the speed information is smaller than the preset speed parameter is larger than the preset number threshold value in the plurality of tracking points, determining that the current motion state of the moving target is a parking state.
3. The method of claim 2, further comprising:
acquiring the intermediate motion state of the moving target; the intermediate motion state is the motion state of the moving target at an intermediate tracking point; at least one of the intermediate tracking points is the same as the plurality of tracking points; the intermediate motion state comprises a sailing state or a parking state;
and if the current motion state is different from the intermediate motion state, taking the time information of the first tracking point in the plurality of tracking points as the starting time of the current motion state, and updating the ending time of the intermediate motion state.
4. The method according to claim 1, wherein the obtaining speed information corresponding to the moving target at the tracking points according to the position information and the time information of the tracking points comprises:
according to the position information and the time information of the plurality of tracking points, obtaining movement distance information and movement time consumption information of the moving target between two adjacent tracking points;
and obtaining the speed information corresponding to the moving target at each tracking point according to the movement distance information and the movement time consumption information.
5. The method according to claim 1, wherein the acquiring the position information of the plurality of tracking points corresponding to the moving target and the time information of the moving target passing each tracking point comprises:
acquiring message data reported by the mobile target through a message queue;
and analyzing the message data to obtain the position information of a plurality of tracking points corresponding to the moving target and the time information of the moving target passing through the plurality of tracking points.
6. The method according to any one of claims 1 to 5, further comprising:
acquiring a plurality of tracking points with a preset tracking number according to the sequence of the time information;
determining the current motion state of the moving target according to the position information, the time information and the speed information corresponding to the tracking points with the preset tracking number;
and acquiring information corresponding to the new tracking points with the number less than the preset tracking number, and eliminating the previous tracking points in the plurality of tracking points with the preset tracking number to obtain a plurality of new tracking points meeting the preset tracking number.
7. The method according to any one of claims 1 to 5, wherein before comparing the speed information corresponding to each tracking point with a preset speed parameter, the method further comprises:
and comparing the speed information corresponding to the plurality of tracking points with the error control parameters, and rejecting the information corresponding to the tracking points of which the speed information is greater than the error control parameters.
8. A motion state acquisition device for a moving object on water, the device comprising:
the tracking point information acquisition module is used for acquiring the position information of a plurality of tracking points corresponding to the moving target and the time information of the moving target passing through each tracking point; the tracking point is determined according to the data reported by the moving target;
the speed information acquisition module is used for acquiring speed information corresponding to the moving target at the plurality of tracking points according to the position information and the time information of the plurality of tracking points;
and the current state acquisition module is used for respectively comparing the speed information corresponding to each tracking point with a preset speed parameter and determining the current motion state of the moving target according to the comparison result.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110141678.1A 2021-02-02 2021-02-02 Method, device, equipment and medium for acquiring motion state of aquatic moving target Active CN112800349B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110141678.1A CN112800349B (en) 2021-02-02 2021-02-02 Method, device, equipment and medium for acquiring motion state of aquatic moving target

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110141678.1A CN112800349B (en) 2021-02-02 2021-02-02 Method, device, equipment and medium for acquiring motion state of aquatic moving target

Publications (2)

Publication Number Publication Date
CN112800349A true CN112800349A (en) 2021-05-14
CN112800349B CN112800349B (en) 2022-02-18

Family

ID=75813595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110141678.1A Active CN112800349B (en) 2021-02-02 2021-02-02 Method, device, equipment and medium for acquiring motion state of aquatic moving target

Country Status (1)

Country Link
CN (1) CN112800349B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115480275A (en) * 2022-09-15 2022-12-16 中华人民共和国广东海事局 Motion state acquisition method and device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253377A1 (en) * 2007-10-31 2014-09-11 Location Based Technologies, Inc. Power conservation methods to update a position fix of a mobile location tracking device
US20150032304A1 (en) * 2013-07-24 2015-01-29 Furuno Electric Co., Ltd. Apparatus, method and computer readable media for calculating status, and movable body
CN105339256A (en) * 2013-05-13 2016-02-17 稳定解决方案股份有限公司 System and method for monitoring stability of a vessel
CN105741321A (en) * 2016-01-31 2016-07-06 华南理工大学 Video target movement tendency analysis method based on trace point distribution
CN106218831A (en) * 2016-07-22 2016-12-14 大连海事大学 A kind of method and system obtaining Ship Controling behavior based on watercraft AIS track data
CN106249232A (en) * 2016-08-24 2016-12-21 中国电子科技集团公司第二十八研究所 Method for tracking target based on target travel situation information data association strategy
CN110850403A (en) * 2019-11-18 2020-02-28 中国船舶重工集团公司第七0七研究所 Multi-sensor decision-level fused intelligent ship water surface target feeling knowledge identification method
CN112200059A (en) * 2020-09-30 2021-01-08 中华人民共和国广东海事局 Method and device for counting flow of aquatic moving target and computer equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253377A1 (en) * 2007-10-31 2014-09-11 Location Based Technologies, Inc. Power conservation methods to update a position fix of a mobile location tracking device
CN105339256A (en) * 2013-05-13 2016-02-17 稳定解决方案股份有限公司 System and method for monitoring stability of a vessel
US20150032304A1 (en) * 2013-07-24 2015-01-29 Furuno Electric Co., Ltd. Apparatus, method and computer readable media for calculating status, and movable body
CN105741321A (en) * 2016-01-31 2016-07-06 华南理工大学 Video target movement tendency analysis method based on trace point distribution
CN106218831A (en) * 2016-07-22 2016-12-14 大连海事大学 A kind of method and system obtaining Ship Controling behavior based on watercraft AIS track data
CN106249232A (en) * 2016-08-24 2016-12-21 中国电子科技集团公司第二十八研究所 Method for tracking target based on target travel situation information data association strategy
CN110850403A (en) * 2019-11-18 2020-02-28 中国船舶重工集团公司第七0七研究所 Multi-sensor decision-level fused intelligent ship water surface target feeling knowledge identification method
CN112200059A (en) * 2020-09-30 2021-01-08 中华人民共和国广东海事局 Method and device for counting flow of aquatic moving target and computer equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LIU: "Simulation of movement of ships in waves and its" forecast research", 《COMPUTER ENGINEERING AND DESIGN》 *
闫钧华: "基于ICT算法的复杂状态目标实时跟踪", 《华中科技大学学报(自然科学版)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115480275A (en) * 2022-09-15 2022-12-16 中华人民共和国广东海事局 Motion state acquisition method and device, computer equipment and storage medium
CN115480275B (en) * 2022-09-15 2023-08-08 中华人民共和国广东海事局 Motion state acquisition method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112800349B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
US9872125B2 (en) Data collection and management system, data collection and management method, terminal, and management apparatus
US20160364644A1 (en) Spiking neural network with reduced memory access and reduced in-network bandwidth consumption
US9286312B2 (en) Data coreset compression
US8792905B1 (en) Location monitoring using clusters of entities
CN112712690A (en) Vehicle electronic fence method and device and electronic equipment
CN111737377B (en) Method and device for identifying drift trajectory, computing equipment and storage medium
CN112800349B (en) Method, device, equipment and medium for acquiring motion state of aquatic moving target
CN113515399A (en) Data anomaly detection method and device
CN104820663A (en) Method and device for discovering low performance structural query language (SQL) statements, and method and device for forecasting SQL statement performance
CN114771572A (en) Automatic driving track prediction method, device, equipment and storage medium
CN114780644A (en) Ship navigation data processing method, device, equipment and storage medium
CN110297810B (en) Stream data processing method and device and electronic equipment
CN113222040B (en) Marine fixed target identification method, device, computer equipment and storage medium
Huang et al. Cloud computing-based map-matching for transportation data center
CN113741415B (en) Path planning method, path planning device, terminal equipment and computer readable storage medium
CN116662315A (en) Method, device, equipment and medium for space-time track completion based on big data
CN112699196A (en) Track generation method and device, terminal equipment and storage medium
CN109446437B (en) Information mining method, device, server and storage medium
CN116226633A (en) Method, system, device and medium for real-time fusion identification of ship data
CN116306790A (en) Offshore ship track real-time prediction method, system, equipment and medium based on CNN-GRU and attention mechanism
CN115729824A (en) Script testing method, device, equipment and storage medium
US10288547B2 (en) Facility state analysis device, analysis method for facility state, storage medium, and facility management system
CN115168527A (en) Real-time track data processing method, device and system and electronic equipment
CN114428711A (en) Data detection method, device, equipment and storage medium
CN115438095A (en) Position information processing method, position information processing device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant