Data processing method, behavior detection method and related device
By introducing positional operators to represent physical location events in logical language text, the complexity problem when converting natural language text into logical language text is solved, and the conversion accuracy and detection efficiency are improved.
Patent Information
- Application Number
- CN202310347659.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2024-09-27
AI Technical Summary
There are difficulties in converting natural language text to logical language text, especially the conversion involving physical location descriptions, which results in high complexity of logical language text propositions and difficulty in accurately expressing the meaning in natural language.
Position operators are introduced to represent events at physical locations through logical operators. For example, Gpos(0,500) is used to represent events within a distance of 500 meters, simplifying the expression of logical language text and reducing proposition complexity.
It improves the accuracy of conversion from natural language text to logical language text, reduces the proposition complexity of logical language text, enhances the machine's ability to understand the meaning of natural language, and improves the efficiency and accuracy of behavior detection.
Smart Images

Figure CN118709648A
Abstract
Description
Technical Field
[0001] The present application relates to the fields of language processing and autonomous driving, and in particular to data processing methods, behavior detection methods and related devices. Background Art
[0002] Language is an important tool for humans to express, communicate and think. The language humans use in daily life is called natural language. Humans use natural language to express ideas, communicate, describe objects, etc. However, the meaning of text in natural language form is difficult for machines to understand directly. If machines need to understand the meaning of language, it is necessary to convert text in natural language form into logical language text that can be understood by machines. Logical language text describes the meaning that can be understood by machines in the form of logical language. In logical semantics, the process of converting natural language into logical language is to logically deduce the meaning described by the text, thereby linking the meaning of language with the symbols and the meaning of symbols in the logical language.
[0003] Propositional logic is an important concept in the field of logical language. It uses logical operators to combine atomic propositions to form formulas representing "propositions". Among them, a proposition is a declarative sentence with a unique truth value. For example, for the proposition "the speed of the vehicle meets the speed limit requirement", if the speed of the vehicle is greater than the speed limit, the truth value of the proposition is false. Propositions can be divided into atomic propositions and compound propositions. Atomic propositions are propositions that cannot be divided any further; compound propositions are propositions formed by connecting atomic propositions through operators.
[0004] In the process of converting natural language text to logical language text, some concepts cannot be accurately converted. For example, for the natural language text "the vehicle turns on the turn signal 3 seconds in advance", it contains the time description of "3 seconds". In order to describe the time semantics, Linear temporal logic (LTL) was proposed, and temporal events can be represented by temporal operators. Metric Temporal Logic (MTL) is a further extension of LTL, which enriches the temporal operators.
[0005] However, there are still difficulties in converting certain semantics through logical operators and temporal operators. For example, some natural language texts often involve descriptions of distance, such as "When you encounter the 500m exit sign, you should turn on the right turn signal." Since it is unclear how long it will take for the vehicle to reach the exit after encountering the 500m exit sign, it is impossible to directly describe it using temporal operators. Even if you use temporal operators to convert the description of distance into logical language, you still need to design relatively complex propositions. Summary of the invention
[0006] The embodiments of the present application provide a data processing method, a behavior detection method and related devices, which can enrich the expression ability of logical symbols and improve the accuracy of conversion from natural language text to logical language text.
[0007] In a first aspect, an embodiment of the present application provides a data processing method, including:
[0008] Obtaining a natural language text, wherein the natural language text includes a description of a physical location;
[0009] A logical language text for detecting the detected object is determined according to the natural language text, wherein the logical language text contains a position operator, and the position operator is used to represent an event at a physical position.
[0010] In the embodiment of the present application, the description of the physical location in the natural language text can be represented by a position operator. For example, "after encountering the 500m exit sign, you should turn on the right turn signal" can be represented by "G pos(0,500) (the vehicle turns on the right turn signal)”, where G pos(0,500) It means "always within a certain distance range", 0 represents the starting position (i.e. the position of the 500-meter exit sign), and 500 represents the end position (i.e. the position of the exit), so it can indicate whether the vehicle has turned on the right turn signal within 500 meters of the 500-meter exit sign.
[0011] It can be seen that the description of the physical location is expressed through logical operators, which enriches the expressive power of logical symbols and significantly improves the accuracy of the conversion from natural language text to logical language text. The description of the physical location does not need to be converted into temporal operators or written in the proposition, which greatly reduces the proposition complexity of the logical language text.
[0012] In addition, on the one hand, since logical language usually has a unique truth value, it can avoid ambiguity and fuzzy semantics in natural language and has higher accuracy. On the other hand, the semantics described by logical language text can be understood by machines. When logical language text is used by machines to detect objects, it can greatly improve the detection efficiency and accuracy.
[0013] Optionally, the logical language text may also contain propositions, where the propositions may be atomic propositions or compound propositions. Of course, compound propositions also contain atomic propositions.
[0014] Optionally, the logical language text may be a character string, instruction, statement, text paragraph, computer program code or document expressed in the form of a logical language. The present application does not impose strict restrictions on the storage and transmission format of the text.
[0015] In a possible implementation of the first aspect, natural language text is used to indicate a behavior specification, wherein the behavior specification refers to the rules that an object should follow. The behavior generated by an object is usually associated with the location where the behavior is generated, so the behavior specification often involves a description of a physical location.
[0016] By converting behavioral norms in natural language form into behavioral norms in logical language form, the accuracy of the expression of behavioral norms can be improved.
[0017] Optionally, the behavioral norms may be behavioral rules defined by an individual or organization, for example, rules that motor vehicles should follow (such as traffic regulations), traffic rules that non-motor vehicles should follow, rules that pedestrians should follow, and navigation rules for drones.
[0018] In another possible implementation of the first aspect, the logical language text is used to determine whether the detected object complies with the behavioral specification.
[0019] On the one hand, logical language texts are more accurate in expressing meaning, so they can improve the accuracy of behavior detection. On the other hand, logical language can be understood by machines, so it is possible to detect whether the object being tested follows the behavior specification through machines, which improves the efficiency of behavior detection, and machine detection can further improve the accuracy of behavior detection.
[0020] In a possible implementation manner of the first aspect, determining, according to the natural language text, a logical language text for detecting the detected object includes:
[0021] Determine a normalized text according to the natural language text;
[0022] According to the normalized text, the logical language text used for detecting the object under test is determined.
[0023] Among them, there are some fuzzy semantics and unclear descriptions in natural language texts. For example: sufficient safety distance, turn on the turn signal in advance, etc. How far is sufficient distance and how long in advance to turn on are all clear information. Converting fuzzy semantics and unclear descriptions into unambiguous and semantically clear sentences, that is, standardized text, can improve the accuracy of expression. For example, converting sufficient safety distance into a time interval of 3 seconds, and clarifying the early turn on as turning on 3 seconds in advance. This standardized text can form a text of a logical language with clear meaning through language conversion, further improving the accuracy of expression.
[0024] In another possible implementation of the first aspect, the position operator includes at least one of the following operators:
[0025] Previous position X prepos , next position Xpos Until U prepos , reverse until U pos , direction is always G prepos , always G pos 、Once F prepos 、Final F pos , within the distance range from the first value p1 to the second value p2, always There is a distance range from the first value p1 to the second value p2 The first value and the second value are position parameters.
[0026] In this implementation, the position operator may describe events along a path starting from a given position.
[0027] As an example, positional operators can describe an event at a certain position on a path. For example, X prepos In (onLaneType(offRamp)), the proposition onLaneType(offRamp) indicates whether the lane type is a ramp out of the highway, combined with the distance operator X prepos It indicates whether the next position is a ramp out of the highway.
[0028] As an example, a position operator can describe events at a certain distance along a path. For example, G pos(0,500) (The vehicle turns on the right turn signal) indicates whether the vehicle always turns on the turn signal within the distance range of (0, 500).
[0029] In another possible implementation of the first aspect, determining, according to the natural language text, a logical language text for detecting the object under test includes:
[0030] The logical language text is determined according to the natural language text and the specification indication information of the first scenario, and the logical language text is used to detect the behavior of the detected object in the first scenario.
[0031] The normative indication information refers to information related to the behavioral norms in the first scenario, such as the content of the behavioral norms, the scope of the behavioral norms, the effective period of the behavioral norms, etc. Through the normative indication information, the logical language text applicable to the scenario can be determined more accurately, thereby improving the accuracy of the conversion.
[0032] Optionally, the regulatory indication information in the first scene may be obtained from a map of the first scene. For example, the first scene may be a road, and the high-precision map and / or digital road network may contain static information of the road, such as the location of the traffic regulation signboard of the road, the effective range of the signboard, etc.
[0033] In another possible implementation of the first aspect, the detected object may be located in the first scene, or the detected object is about to enter the first scene.
[0034] In another possible implementation of the first aspect, the specification indication information of the first scene includes an effective distance range of the behavior specification in the first scene, and the position operator includes a position parameter, and the position parameter is determined according to the effective distance range.
[0035] Taking the speed limit scenario as an example, in the first scenario, the speed limit between point A and point B on the road is 50, then the position operator can be determined by including the position of point A and the position of point B. For example, a standard indication information is in the form of "highway 500m exit sign: {position: d1}, {scope: [d1, d2]}", in this case, "after encountering the 500m exit warning sign, turn on the right turn signal" can be expressed as "G pos(p1,p2) (The vehicle turns on the right turn signal)", where the values of p1 and p2 can be determined by d1 and d2.
[0036] For example, d1=1498, d2=1998, and the distance difference between d2 and d1 is 500. At this time: p1 can be -550 (considering that the position of the sign set in the map may not be exactly at the 500m position, a distance margin of 50m is considered here), and p2 can be 0 (that is, p2 is used as the distance origin).
[0037] By standardizing the indication information, the logical language text can be automatically converted according to the information in the scene, which can improve the flexibility of the logical language text conversion. When the information in the scene changes, the parameters in the logical language text can also be updated accordingly, which greatly improves the update efficiency of the logical language text.
[0038] In another possible implementation of the first aspect, the logical language text is used to detect a behavior of the detected object within a first distance range on a first road.
[0039] The first distance range includes a start point and an end point on a road coordinate system of the first road, the positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin;
[0040] The position operator includes a first value and a second value, wherein the first value is the distance between the start point and the origin along the normal travel direction of the first road, and the second value is the distance between the end point and the origin along the normal travel direction of the first road.
[0041] Since the driving routes of vehicles on the road may be diverse, the above implementation uses the road coordinate system to unify the distance standard and direction, which can improve the accuracy and consistency of the description.
[0042] In another possible implementation of the first aspect, the origin is the current position of the measured object or the projection position of the current position of the measured object on the road coordinate system.
[0043] Optionally, the origin may also be the starting point of the behavior norm, such as the starting point or the end point of the sign. Alternatively, the origin may also be the position of the sign.
[0044] In another possible implementation of the first aspect, the logical language text further includes a logical operator, wherein the logical operator may include one or more of negation, conjunction, disjunction, derivation, or equivalence.
[0045] In another possible implementation of the first aspect, the logical language text further includes a time sequence operator. The time sequence operator may include next time X, until U, always G, finally F, always occur within t1-t2 It will happen between t1 and t2.
[0046] The above implementation method can express the description of time through timing operators, which enriches the expression ability of logical symbols and simplifies the design of propositions.
[0047] In a second aspect, an embodiment of the present application provides a behavior detection method, including:
[0048] Obtaining behavior information of the terminal;
[0049] It is determined whether the behavior of the terminal complies with the behavior specification according to the behavior information of the terminal and the logical language text, wherein the logical language text includes a position operator, and the position operator is used to represent an event at a physical location.
[0050] In the above implementation, the logical language text includes a position operator, and the application of the position operator can represent events at physical locations, which not only reduces the proposition complexity of the logical language text, but also improves the semantic accuracy, thereby improving detection efficiency and detection accuracy.
[0051] Optionally, since a behavior is usually associated with a physical location where the behavior is performed, the behavior information may include information indicating the location of the behavior.
[0052] In a possible implementation of the second aspect, the position operator includes at least one of the following operators:
[0053] Previous position X prepos , next position X pos Until U prepos , reverse until U pos , direction is always G prepos , always G pos 、Once F prepos 、Final F pos , within the distance range from the first position to the second position, always There is a distance between the first position and the second position The first value and the second value are position parameters.
[0054] In another possible implementation manner of the second aspect, the method further includes:
[0055] When the behavior of the terminal does not comply with the behavior specification, a violation prompt message is sent to the terminal.
[0056] The violation prompt information indicates information about the violated behavioral rules and / or indicates how to comply with the behavioral rules.
[0057] Exemplarily, the violation prompt information may include information about the behavior norms violated by the terminal, and / or the violation prompt information may be used to prompt the terminal (or the user of the terminal) to follow the behavior norms. The information about the behavior norms violated by the terminal may include, for example, the violated behavior norms, the time, location, and picture of the violation, and the penalty for the violation (penalty for the controller of the terminal).
[0058] For example, the server can perform real-time online or offline detection on the behavior of the vehicle, and send a violation prompt message to the terminal if the terminal does not comply with the behavior norms.
[0059] For another example, a detection device is provided in the terminal, and when the detection device detects that the behavior of the terminal does not comply with the behavior norm, the detection device outputs violation prompt information.
[0060] In the above implementation, the violation prompt can remind the terminal user to pay attention to the violation and reduce the possibility of repeated violations. For example, if the behavior norm is traffic rules and the terminal is a vehicle, if the vehicle violates the traffic rules, it will increase the possibility of traffic accidents and cause property losses; if the violation is repeated or multiple traffic rules are violated, it is very likely to endanger the life safety of the passengers. Violation prompts can increase the binding force of the rules, reduce the possibility of accidents in smart terminals, and improve personal and property safety.
[0061] In another possible implementation manner of the second aspect, the method further includes:
[0062] If the terminal's illegal behavior is caused by the intelligent driving function, a control switching instruction is sent, and the control switching instruction is used to deactivate the intelligent driving function.
[0063] For example, the vehicle's adaptive cruise control system can accelerate or decelerate the vehicle. If the vehicle is speeding when the adaptive cruise control system is turned on, the server or the intelligent driving controller in the vehicle can disable the adaptive cruise control system or temporarily lock the adaptive cruise control system, and the human driver can take over the vehicle.
[0064] In another possible implementation manner of the second aspect, the method further includes:
[0065] A behavior detection result is output, where the behavior detection result indicates whether the behavior of the terminal complies with the behavior specification.
[0066] The behavior detection results can reflect the degree to which the terminal's behavior is constrained by regulations, which helps to remind the terminal controller to strengthen the standardization of operations.
[0067] As a possible design, the terminal can be tested based on behavioral specifications during on-road testing or closed-road testing. The behavioral detection results can be used to analyze the intelligence and security of the terminal, which is conducive to the quality upgrade of the terminal.
[0068] In another possible implementation of the second aspect, the behavior information of the terminal further includes information of an intelligent driving function related to the behavior of the terminal; and the method further includes:
[0069] In the case where the behavior of the terminal does not comply with the behavior specification, function feedback information is output, where the function feedback information indicates the intelligent driving function and the behavior specification violated by the terminal, and the function feedback information is used to update the intelligent driving function.
[0070] In another possible implementation of the second aspect, the form of the logical language text is: conditional proposition→behavior proposition, where → represents derivation;
[0071] The determining, according to the behavior information and the logical language text of the terminal, whether the behavior of the terminal complies with the behavior specification includes:
[0072] determining the logical values of the conditional proposition and the behavioral proposition according to the behavioral information of the terminal,
[0073] If the conditional proposition is true and the logical value of the behavior proposition is true, then determining that the behavior of the terminal complies with the behavior specification;
[0074] If the conditional proposition is true and the logical value of the behavior proposition is false, it is determined that the behavior of the terminal does not comply with the behavior specification.
[0075] In yet another possible implementation of the second aspect, the logical language text indicates a behavior specification in the first scenario, and determining, according to the behavior information of the terminal and the logical language text, whether the behavior of the terminal complies with the behavior specification includes:
[0076] According to the behavior information and the logical language text of the terminal, it is determined whether the behavior of the terminal in the first scenario complies with the behavior specification in the first scenario.
[0077] In another possible implementation manner of the second aspect, the method further includes:
[0078] The logical language text is determined according to the natural language text and the specification indication information of the first scenario, wherein the natural language text is a behavior specification described in a natural language.
[0079] In another possible implementation of the second aspect, the specification indication information of the first scenario includes an effective distance range of the behavior specification in the first scenario; the position operator includes a position parameter, and the position parameter is determined according to the effective distance range.
[0080] In another possible implementation of the second aspect, the logical language text is used to detect the behavior of the detected object within a first distance range on the first road.
[0081] The first distance range includes a start point and an end point on a road coordinate system of the first road, the positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin;
[0082] The position operator includes a first value and a second value, wherein the first value is the distance between the start point and the origin along the normal travel direction of the first road, and the second value is the distance between the end point and the origin along the normal travel direction of the first road.
[0083] In another possible implementation of the second aspect, the origin is the current position of the measured object or the projection position of the current position of the measured object on the road coordinate system.
[0084] Optionally, the origin may also be the starting point of the behavior norm, such as the starting point or the end point of the sign. Alternatively, the origin may also be the position of the sign.
[0085] In another possible implementation of the second aspect, the logical language text further includes a logical operator, wherein the logical operator may include one or more of negation, conjunction, disjunction, derivation, or equivalence.
[0086] In another possible implementation of the second aspect, the logical language text further includes a time sequence operator. The time sequence operator may include next time X, until U, always G, finally F, always occur within t1-t2 It will happen between t1 and t2.
[0087] The above implementation method can express the description of time through timing operators, which enriches the expression ability of logical symbols and simplifies the design of propositions.
[0088] In a third aspect, an embodiment of the present application provides a data processing device, which is used to implement the method described in the first aspect or any possible implementation method of the first aspect.
[0089] In a possible implementation of the third aspect, the data processing device includes an acquisition module and a processing module. Optionally, the acquisition module is used to complete operations such as acquisition, reception, and reading, and the processing module is used to complete functions such as determination, conversion, detection, or projection.
[0090] In yet another possible implementation of the third aspect, the acquisition module is used to acquire a natural language text, where the natural language text includes a description of a physical location;
[0091] The processing module is used to determine a logical language text for detecting the detected object according to the natural language text, wherein the logical language text contains atomic propositions and position operators, and the position operator is used to represent an event at a physical position.
[0092] Optionally, the logical language text may also contain propositions, where the propositions may be atomic propositions or compound propositions. Of course, compound propositions also contain atomic propositions.
[0093] Optionally, the logical language text may be a character string, instruction, statement, text paragraph, computer program code or document expressed in the form of a logical language. The present application does not impose strict restrictions on the storage and transmission format of the text.
[0094] In a possible implementation of the third aspect, natural language text is used to indicate the behavior norm.
[0095] In another possible implementation of the third aspect, the logical language text is used to determine whether the detected object complies with the behavioral specification.
[0096] The step of determining a logical language text for detecting the object to be detected based on the natural language text includes:
[0097] Determine a normalized text according to the natural language text;
[0098] According to the normalized text, the logical language text used for detecting the object under test is determined.
[0099] In yet another possible implementation of the third aspect, the position operator includes at least one of the following operators:
[0100] Previous position X prepos , next position X pos Until U prepos , reverse until U pos , direction is always G prepos , always G pos 、Once F prepos 、Final F pos , within the distance range from the first value p1 to the second value p2, always There is a distance range from the first value p1 to the second value p2 The first value and the second value are position parameters.
[0101] In yet another possible implementation manner of the third aspect, the processing module is used to:
[0102] The logical language text is determined according to the natural language text and the specification indication information of the first scenario, and the logical language text is used to detect the behavior of the detected object in the first scenario.
[0103] Optionally, the regulatory indication information in the first scene may be obtained from a map of the first scene. For example, the first scene may be a road, and the high-precision map and / or digital road network may contain static information of the road, such as the location of the traffic regulation signboard of the road, the effective range of the signboard, etc.
[0104] In another possible implementation of the third aspect, the detected object may be located in the first scene, or the detected object is about to enter the first scene.
[0105] In another possible implementation of the third aspect, the specification indication information of the first scene includes an effective distance range of the behavior specification in the first scene, and the position operator includes a position parameter, and the position parameter is determined according to the effective distance range.
[0106] In yet another possible implementation of the third aspect, the logical language text is used to detect a behavior of the detected object within a first distance range on a first road.
[0107] The first distance range includes a start point and an end point on a road coordinate system of the first road, the positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin;
[0108] The position operator includes a first value and a second value, wherein the first value is the distance between the start point and the origin along the normal travel direction of the first road, and the second value is the distance between the end point and the origin along the normal travel direction of the first road.
[0109] In another possible implementation of the third aspect, the origin is the current position of the measured object or the projection position of the current position of the measured object on the road coordinate system.
[0110] Optionally, the origin may also be the starting point of the behavior norm, such as the starting point or the end point of the sign. Alternatively, the origin may also be the position of the sign.
[0111] In another possible implementation of the third aspect, the logical language text further includes a logical operator, wherein the logical operator may include one or more of negation, conjunction, disjunction, derivation, or equivalence.
[0112] In another possible implementation of the third aspect, the logical language text further includes a time sequence operator. The time sequence operator may include next time X, until U, always G, finally F, always occur between t1 and t2 It will happen between t1 and t2.
[0113] In a fourth aspect, an embodiment of the present application provides a detection device, wherein the data processing device is used to implement the method described in the aforementioned second aspect or any possible implementation manner of the second aspect.
[0114] In a possible implementation of the fourth aspect, the detection device includes an acquisition module and a processing module. Optionally, the acquisition module is used to complete operations such as acquisition, reception, and reading, and the processing module is used to complete functions such as determination, conversion, detection, or projection.
[0115] In yet another possible implementation of the fourth aspect, the acquisition module is used to acquire behavior information of the terminal;
[0116] The processing module is used to determine whether the behavior of the terminal complies with the behavior specification according to the behavior information of the terminal and the logical language text, wherein the logical language text contains a position operator, and the position operator is used to represent an event at a physical location.
[0117] Optionally, since a behavior is usually associated with a physical location where the behavior is performed, the behavior information may include information indicating the location of the behavior.
[0118] In a possible implementation of the fourth aspect, the position operator includes at least one of the following operators:
[0119] Previous position X prepos , next position X pos Until U prepos , reverse until U pos , direction is always G prepos , always G pos 、Once F prepos 、Final F pos , within the distance range from the first position to the second position, always There is a distance between the first position and the second position The first value and the second value are position parameters.
[0120] In yet another possible implementation of the fourth aspect, the behavior detection device further includes a communication module, and the communication module is used to send and / or receive information, and / or to output and / or input information.
[0121] In another possible implementation of the fourth aspect, the communication module is used to send violation prompt information, wherein the violation prompt information may include information about the behavior norms violated by the terminal and / or information prompting the user to follow the behavior norms.
[0122] Optionally, the communication module sends a violation prompt message when the behavior of the terminal does not comply with the behavior specification, and does not send the violation prompt message if the behavior specification of the terminal does not violate the specification.
[0123] In another possible implementation of the fourth aspect, the communication module is used to send a control switching indication, and the control switching indication is used to deactivate the intelligent driving function.
[0124] Optionally, the communication module sends a control switching instruction when the behavior of the terminal does not comply with the behavior specification, and does not send the control switching instruction if the behavior specification of the terminal does not violate the regulations.
[0125] In yet another possible implementation of the fourth aspect, the communication module is used to output a behavior detection result, where the behavior detection result indicates whether the behavior of the terminal complies with a behavior specification.
[0126] In yet another possible implementation of the fourth aspect, the behavior information of the terminal further includes information of an intelligent driving function related to the behavior of the terminal; and the communication module is used to:
[0127] In the case where the behavior of the terminal does not comply with the behavior specification, function feedback information is output, where the function feedback information indicates the intelligent driving function and the behavior specification violated by the terminal, and the function feedback information is used to update the intelligent driving function.
[0128] In another possible implementation of the fourth aspect, the form of the logical language text is: conditional proposition→behavior proposition, where → indicates derivation;
[0129] The processing module is used to:
[0130] determining the logical values of the conditional proposition and the behavioral proposition according to the behavioral information of the terminal,
[0131] If the conditional proposition is true and the logical value of the behavior proposition is true, then determining that the behavior of the terminal complies with the behavior specification;
[0132] If the conditional proposition is true and the logical value of the behavior proposition is false, it is determined that the behavior of the terminal does not comply with the behavior specification.
[0133] In another possible implementation of the fourth aspect, the logical language text indicates a behavior specification in the first scenario. The processing module is used to:
[0134] According to the behavior information and the logical language text of the terminal, it is determined whether the behavior of the terminal in the first scenario complies with the behavior specification in the first scenario.
[0135] In yet another possible implementation manner of the fourth aspect, the processing module is further used to:
[0136] The logical language text is determined according to the natural language text and the specification indication information of the first scenario, wherein the natural language text is a behavior specification described in a natural language.
[0137] In another possible implementation of the fourth aspect, the specification indication information of the first scenario includes an effective distance range of the behavior specification in the first scenario; the position operator includes a position parameter, and the position parameter is determined according to the effective distance range.
[0138] In yet another possible implementation of the fourth aspect, the logical language text is used to detect a behavior of the detected object within a first distance range on a first road,
[0139] The first distance range includes a start point and an end point on a road coordinate system of the first road, the positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin;
[0140] The position operator includes a first value and a second value, wherein the first value is the distance between the start point and the origin along the normal travel direction of the first road, and the second value is the distance between the end point and the origin along the normal travel direction of the first road.
[0141] In another possible implementation of the fourth aspect, the origin is the current position of the measured object or the projection position of the current position of the measured object on the road coordinate system.
[0142] Optionally, the origin may also be the starting point of the behavior norm, such as the starting point or the end point of the sign. Alternatively, the origin may also be the position of the sign.
[0143] In another possible implementation of the fourth aspect, the logical language text further includes a logical operator, wherein the logical operator may include one or more of negation, conjunction, disjunction, derivation, or equivalence.
[0144] In another possible implementation of the fourth aspect, the logical language text further includes a time sequence operator. The time sequence operator may include next time X, until U, always G, finally F, always occur between t1 and t2 It will happen between t1 and t2.
[0145] In a fifth aspect, an embodiment of the present application provides a data processing device, which includes a processor and a communication interface, wherein the communication interface is used to input and / or output data, or the communication interface is used to send and / or receive data, and the data processing device is used to implement the method described in the second aspect or any possible implementation method of the second aspect.
[0146] In a sixth aspect, an embodiment of the present application provides a detection device, which includes a processor and a communication interface, wherein the communication interface is used to input and / or output data, or the communication interface is used to send and / or receive data, and the detection device is used to implement the method described in the second aspect or any possible implementation method of the second aspect.
[0147] It should be noted that the processor described in the fifth and sixth aspects above may be a processor specifically used to execute these methods (referred to as a dedicated processor for convenience of distinction), or may be a processor that executes these methods by calling a computer program (the computer program includes computer instructions or the computer instructions can be obtained through the computer program), such as a general-purpose processor. Optionally, at least one processor may include both a dedicated processor and a general-purpose processor.
[0148] Optionally, the computer program may be stored in a memory. Exemplarily, the memory may be a non-transitory memory, such as a read-only memory (ROM), which may be integrated with the processor on the same device or may be separately provided on different devices. The embodiment of the present application does not limit the type of memory and the configuration of the memory and the processor.
[0149] In a possible implementation manner, the at least one memory is located outside the data processing device (or detection device).
[0150] In yet another possible implementation, the at least one memory is located within the data processing device (or detection device).
[0151] In another possible implementation, part of the at least one memory is located within the data processing device (or detection device), and another part of the memory is located outside the data processing device (or detection device).
[0152] In the present application, the processor and the memory may also be integrated into one device, that is, the processor and the memory may also be integrated together.
[0153] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on at least one processor, the method described in the first aspect or any possible implementation of the first aspect is implemented, or the method described in the second aspect or any possible implementation of the second aspect is implemented.
[0154] In an eighth aspect, the present application provides a computer program product, which includes computer instructions. When the instructions are executed on at least one processor, the method described in the first aspect or any possible implementation of the first aspect is implemented, or the method described in the second aspect or any possible implementation of the second aspect is implemented.
[0155] Optionally, the computer program product may be a software installation package, and when the aforementioned method is required, the computer program product may be downloaded and executed on a computing device.
[0156] In a ninth aspect, an embodiment of the present application provides a terminal, wherein the terminal includes the detection device described in the fourth aspect or any possible implementation manner of the fourth aspect, or includes the detection device described in the sixth aspect.
[0157] Optionally, the terminal can be an intelligent terminal or means of transportation such as a vehicle, a drone, or a robot. Of course, the terminal can also be replaced by industrial equipment, entertainment and leisure equipment, etc. Intelligent terminals include mobile phones, tablet computers, laptops, smart bracelets, smart watches, or smart glasses. Transportation tools include vehicles, ships, aircraft, or logistics robots. Industrial equipment includes industrial robots and robotic arms. Leisure and entertainment equipment includes virtual reality (VR) equipment, mixed reality (MR) equipment, massage chairs, or 4D cinema cabins. This application does not impose strict restrictions on the devices to which the electrical connector can be applied.
[0158] In a tenth aspect, an embodiment of the present application provides a server, wherein the server includes the data processing device described in the third aspect or any possible implementation manner of the third aspect, or includes the data processing device described in the fourth aspect.
[0159] In the eleventh aspect, an embodiment of the present application provides a server, wherein the server includes the detection device described in the fourth aspect or any possible implementation manner of the fourth aspect, or includes the detection device described in the sixth aspect.
[0160] Among the technical solutions provided in the second to eleventh aspects of the present application, the beneficial effects of some technical solutions can refer to the beneficial effects of the technical solution of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0161] The following is a brief introduction to the drawings required for describing the embodiments.
[0162] Figure 1 is a schematic diagram of a behavior detection system provided in an embodiment of the present application;
[0163] Figure 2 is a schematic diagram of a possible data processing method provided in an embodiment of the present application;
[0164] Figure 3 is a schematic diagram of a road provided in an embodiment of the present application;
[0165] Figure 4 is a schematic diagram of another road provided in an embodiment of the present application;
[0166] Figure 5 is a schematic diagram of a possible behavior detection method provided in an embodiment of the present application;
[0167] Figure 6 It is a schematic diagram of an operation scenario of a behavior detection method provided in an embodiment of the present application;
[0168] Figure 7It is a schematic diagram of a standardized behavior reminder provided by an embodiment of the present application;
[0169] Figure 8 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0170] Fig. 9 is a structural diagram of a behavior detection device provided in an embodiment of the present application;
[0171] Fig.10 It is a structural schematic diagram of a processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0172] For ease of understanding, the following examples provide some explanations of concepts related to the embodiments of the present application for reference. As described below:
[0173] 1. Terminal
[0174] The terminal in the embodiments of the present application is a device with behavioral capabilities. For example, the terminal can be a device that can be driven by power to move, such as a vehicle, a drone, a wheeled mobile robot or other transportation device or vehicle. For another example, the terminal can be a mechanical electronic device, such as a material handling machine (crane, conveyor, or loading and unloading machine, etc.), or an industrial robot arm, etc.
[0175] 2. Code of Conduct
[0176] Code of conduct is a set of rules used to constrain behavior.
[0177] For example, traffic regulations are set up to maintain road traffic order, prevent and reduce traffic accidents, and protect personal and property safety. Traffic regulations record different levels of violations and are used to constrain vehicle drivers, pedestrians, passengers, and units and individuals related to road traffic activities.
[0178] The traffic regulations involved in the embodiments of the present application are only exemplary regulations. For example, different countries and different regions may follow different traffic regulations. For another example, different sections of roads may be subject to different traffic regulations. For another example, the behavior norms applicable to the object under test can be pre-set or pre-set.
[0179] 3. Proposition
[0180] A proposition refers to the semantics of a descriptive sentence and can be judged as true or false. For example, the current speed of vehicle A meets the speed limit requirement. For the proposition: "The current speed of vehicle A is greater than the maximum speed limit", its truth value is false. For the proposition: "The current speed of vehicle A is less than or equal to the maximum speed limit", its truth value is true.
[0181] Propositions can include atomic propositions and compound propositions. Atomic propositions are propositions that cannot be divided any further. Compound propositions are propositions formed by connecting atomic propositions through operators.
[0182] 4. Logical Operators
[0183] Logical operators, or logical connectives, can connect propositions into more complex propositions. See Table 1. Logical operators include but are not limited to the operators shown in Table 1.
[0184] Table 1 Logical operators and their meanings
[0185]
[0186] It should be noted that the operators listed in the embodiments of the present application are some possible forms of operators listed to represent the meaning of the operation. In the specific implementation process, operators with corresponding meanings can be set as needed or by specific rules, and are not limited to the forms of operators listed in the embodiments of the present application. For example, in some scenarios, "&" is also used to represent conjunction. For another example, in some scenarios, "and" is used to represent conjunction.
[0187] 5. Timing Operators
[0188] Temporal operators are operators used to represent events in time. For example, linear temporal logic (LTL) introduces additional operators based on propositions and logical connectives. In addition, metric temporal logic (MTL) is a further extension of LTL, enriching the temporal operators.
[0189] As a possible example, the timing operator includes but is not limited to the operators shown in Table 2.
[0190] Table 2 Timing operators and their meanings
[0191]
[0192] The above exemplary description of concepts can be applied hereinafter.
[0193] In the process of converting natural language text into logical language text, some descriptions involving physical locations cannot be accurately converted. For example, "When you encounter the 500m exit sign, you should turn on the right turn signal." Since it is unclear how long it will take for the vehicle to reach the exit after encountering the 500m exit sign, it is impossible to directly describe it using a timing operator. Even if you use a timing operator to convert the description of distance into logical language, you still need to design a relatively complex proposition.
[0194] In view of this, the embodiments of the present application provide a position operator, a data processing method, a behavior detection method and related devices. The embodiments of the present application use a position operator to represent the description of the physical position in the natural language, thereby enriching the expression ability of the logical symbols and improving the accuracy of the conversion from the natural language text to the logical language text. Furthermore, the natural language text can be a text indicating the behavior norms, and the logical language text converted from the natural language text can efficiently detect whether the behavior of the terminal complies with the behavior norms, thereby improving the detection efficiency and accuracy.
[0195] The following first introduces the position operator provided in the embodiments of the present application.
[0196] The position operator, or distance operator, may represent an event on a path starting from a given position. Exemplarily, the position operator may include one or more operators shown in Table 3, and their meanings are also shown in Table 3.
[0197] Table 3 Positional operators and their meanings
[0198]
[0199] As an example of usage, the position operator can represent an event at a certain physical location on a path. For example, X prepos (onLaneType(offRamp)) contains propositions and position operators. The proposition onLaneType(offRamp) indicates whether the lane type of the object under test is a ramp out of the highway. Combined with the distance operator X prepos This represents the proposition: whether the next position of the object being measured is the exit ramp of the highway.
[0200] As another example of usage, the location operator can represent events within a certain distance range on a path. pos(0,500) (The object under test turns on the right turn signal) represents the proposition: within the distance range of (0, 500), whether the object under test always turns on the turn signal.
[0201] It should be noted that the values of the starting point and the end point of the distance range can be adjusted according to the origin taken at that time. For example, (0, 500) is an example with the investigation starting point (or the starting point of the distance range) as the origin. If the investigation end point is taken as the origin, it can also be expressed as (-500, 0).
[0202] The above-mentioned logical operators can be used in the logical language text. In this case, the description of the physical location in other languages can be expressed by one or more logical operators shown in Table 3, which significantly improves the semantic accuracy of the logical language text.
[0203] Optionally, the above logical operators can be used in various scenarios, such as for converting text in other languages into text in logical languages, or for expressing rules of various algorithms.
[0204] As an example of the use of a positional operator, the positional operator can be used for language conversion. As a possible implementation, the data processing device can convert a natural language text into a logical language text, wherein the natural language text contains a description of a physical location, and the logical language text contains a positional operator, and the positional operator is used to represent an event at a physical location. The data processing device uses the positional operator in the logical language text to improve the conversion accuracy of the natural language text into the logical language text.
[0205] Furthermore, the natural language text may be a text indicating behavioral norms, and the logical language text converted from the natural language text may efficiently detect whether the behavior of the object under test complies with the behavioral norms, thereby improving detection efficiency and accuracy.
[0206] The following will introduce the behavior detection system in conjunction with the accompanying drawings and take the object to be detected as a terminal (such as a vehicle) as an example. It should be noted that the system architecture and business scenarios described in this application are intended to more clearly illustrate the technical solution of this application and do not constitute a limitation on the technical solution provided by this application. It should be understood that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided by this application are also applicable to similar technical problems.
[0207] See also Figure 1 , Figure 1 1 is a schematic diagram of a behavior detection system provided in an embodiment of the present application, wherein the behavior detection system includes a vehicle 101. Further, the system may also include a server 102 and / or a roadside device 103. Among them:
[0208] The vehicle 101 has the ability to move. For example, the vehicle 101 realizes the behaviors of moving forward, turning, backing up, opening doors, turning on lights, stopping, etc. It should be noted that the behaviors in the embodiments of the present application are broad behaviors, including one or more of states and state transitions. For example, "the vehicle's turn signal is on" can be regarded as the behavior of the vehicle; "the vehicle's speed is 50 kilometers per hour (km / h)" can also be regarded as the behavior of the vehicle.
[0209] In one implementation, the vehicle 101 can implement the method provided in the embodiment of the present application. For example, the vehicle 101 can detect whether its own behavior complies with the behavior specification. For another example, the vehicle 101 can obtain the behavior of other measured objects and detect whether the behavior of other measured objects complies with the behavior specification. Figure 1, the vehicle 101 can collect information of the vehicle 104 in front through cameras, radars, etc., and detect whether the behavior of the vehicle 104 complies with the behavioral norms.
[0210] Optionally, server 102 is a device with centralized computing capabilities. Although it is referred to as a server here, it is not limited to being implemented by a server. For example, it can be replaced by a virtual machine, a container, a cloud, a data center, etc. For example, the server includes but is not limited to a general-purpose computer, a server computer, a blade server, a rack server, etc. When server 102 is implemented by a server, the number of servers it contains can be one or more (such as a server cluster). A virtual machine is a virtualized computing module. The cloud is a software platform that uses application virtualization technology, which enables one or more software and applications to be developed and run in an independent virtualized environment. Optionally, the cloud can be deployed on a public cloud, a private cloud, or a hybrid cloud, etc.
[0211] The server 102 may communicate with the vehicle 101 to obtain information from the vehicle 101 and / or to send information to the vehicle 101 .
[0212] As a possible solution, the server 102 can be used to implement the method provided in the embodiment of the present application. Exemplarily, the server 102 can obtain the behavior information of the vehicle 101 and detect whether the behavior of the vehicle 101 complies with the behavioral norms. Optionally, the behavior information of the vehicle 101 can be reported by the vehicle to the server 102, which can be reported by the vehicle itself or by other vehicles, such as vehicles 104 around the vehicle 101. Or optionally, the behavior information of the vehicle 101 can be obtained through the roadside device 103. For example, the roadside device 103 is equipped with a sensing device that can capture or detect the behavior of the vehicle and report the behavior information of the vehicle to the server 102.
[0213] The roadside device 103 is a device installed on the roadside (or at an intersection, or on the roadside, etc.). It should be understood that the aforementioned road can be an outdoor road (such as a main road, a secondary road, an elevated road, or a temporary road, etc.), or an indoor road (such as a road in an indoor parking lot, etc.).
[0214] The roadside device 103 is used to provide services for the vehicle 101 and / or the server 102, and generally has one or more of the following capabilities: communication capability, information collection capability, or computing capability, etc. For example, the roadside device 103 can communicate with the terminal (including the vehicle 101) and the server 102. For another example, the roadside device 103 includes a sensing device that can collect information about its surroundings. For example, the roadside device 103 may include one or more of the following sensing devices: a camera, a radar, a lidar, a temperature sensor, a humidity sensor, or a positioning device, etc. For another example, the roadside device 103 provides the vehicle 101 with one or more services such as identity recognition, electronic toll collection, or electronic deduction of points.
[0215] It should be noted that the roadside device 103 can be an independent device or integrated into other devices. For example, the roadside device 103 can be integrated into devices such as smart gas stations, charging piles, smart traffic lights, street lights, telephone poles, or traffic signs.
[0216] The roadside device 103 can communicate with the vehicle 101 to obtain the behavior information of the vehicle 101 and / or send information to the vehicle 101 .
[0217] As a possible solution, the roadside device 103 can be used to implement the method provided in the embodiment of the present application. Exemplarily, the roadside device 103 can obtain the behavior information of the vehicle 101 and detect whether the behavior of the vehicle 101 complies with the behavior specification.
[0218] When a communication connection is established between any two of the above three, the link of the communication connection may include one or more types of connection media, including wired links (such as optical fibers), wireless links, or a combination of wired links and wireless links. For example, the connection medium may be a wireless link, which uses a short-range connection technology, such as Spark Link, 802.11b / g technology, bluetooth technology, Zigbee technology, radio frequency identification (RFID) technology, ultra-wideband (UWB) technology, wireless short-range communication (such as vehicle-mounted wireless short-range communication) technology, or vehicle to everything (V2X, vehicle-to-external information exchange) technology. For another example, the wireless link uses a long-range connection technology, such as global system for mobile communications (GSM), general packet radio service (GPRS), universal mobile telecommunications system (UMTS), LTE, or 5G and other wireless access type technologies.
[0219] The method of the embodiment of the present application is introduced below in conjunction with the accompanying drawings. For ease of understanding, the following describes each embodiment separately through multiple illustrations, which does not limit the embodiments to be independent, that is, the embodiments can be combined.
[0220] See also Figure 2 , Figure 2 is a schematic diagram of a possible data processing method provided by an embodiment of the present application. Optionally, the method can be applied to the aforementioned system, for example Figure 1 The behavior detection system shown. It should be understood that for the convenience of description, the data processing method is described in the order of S201 to S202, and it is not intended to limit the execution to the above order. The embodiment of the present application does not limit the execution order, execution time, execution number, etc. of the above one or more steps. S201 to step S202 are as follows:
[0221] Step S201: The data processing device obtains natural language text.
[0222] A data processing device is a device that has the ability to process data. For example, a data processing device can be Figure 1The vehicle 101, server 102, or roadside device 103 shown in FIG. 101 . For another example, the data processing device may be included in the vehicle 101, server 102, or roadside device 103.
[0223] Natural language text refers to text in natural language form, and the text here includes but is not limited to character strings, formulas, sentences, paragraphs, or complete documents.
[0224] Natural language text contains descriptions of physical locations. For example, "Electric vehicles should be pushed on the sidewalk." Here, "on the sidewalk" is a description of location. Another example is "after encountering the 500m exit sign, the right turn signal should be turned on." Here, "after encountering the 500m exit sign" is also a description of location.
[0225] In one possible implementation, natural language text is used to indicate the behavior norm. The behavior norm refers to the rules that the object should follow. It is understandable that the behavior generated by the object is usually associated with the location where the behavior is generated, so the behavior norm often involves a description of the physical location.
[0226] Optionally, the code of conduct indicated by the natural language text may be predefined or pre-specified. As a possible implementation, the code of conduct may be pre-defined by an industry standard, and the industry standard is not limited here. For another example, the code of conduct may also be pre-specified by a law or standard, and the specific law or standard is not limited here. For another example, the code of conduct may be a rule of conduct defined by an individual or an organization. Exemplarily, the code of conduct may include rules that motor vehicles should follow (such as traffic regulations), traffic rules that non-motor vehicles should follow, rules that pedestrians should follow, or navigation rules for drones, etc.
[0227] As an example of a behavioral norm, the natural language text "When exiting a highway, pay attention to the exit warning signs and follow the steps below: When you see the 500m exit warning sign, turn on the right turn signal and be prepared to enter the deceleration lane. Do not overtake." In other words, the natural language text indicates the behavioral norms of the vehicle. Between the 500m exit sign and the highway exit, the vehicle must turn on the right turn signal and do not overtake.
[0228] The way in which the data processing device obtains natural language text can be one or a combination of the following ways: pre-configured in the data processing device, pre-defined or pre-specified during the processing process, input by the user, obtained through the network (for example, sent to the data processing device by other devices), etc.
[0229] Step S202: The data processing device determines the logical language text based on the natural language text.
[0230] The logical language text includes a position operator, which is used to represent an event at a physical location, wherein the position operator may include one or more operators shown in Table 3. In other words, the description of a physical location in a natural language text may be represented by a position operator. Combined with the position operator, the natural language text may be more accurately converted into a logical language text.
[0231] For example, the logical language text determined by the natural language text "When you encounter the 500m exit sign, you should turn on the right turn signal" is: pos(0,500) (the vehicle turns on the right turn signal)". Combined with Table 3, it can be seen that G pos(0,500) means "always within a certain distance", 0 represents the starting point (i.e. the location of the 500-meter exit sign), and 500 represents the end point (i.e. the location of the exit). Therefore, the above logical language text can express the following semantics: whether the vehicle turns on the right turn signal within 500 meters of the 500-meter exit sign.
[0232] In a possible implementation, the logical language text is used to detect the object under test. For example, the logical language text can be used to detect whether the object under test complies with the behavioral specification. For another example, the logical language text can be used to detect whether the object under test has performed a certain behavior or is in a certain state.
[0233] For example, take the proposition “G pos(0,500) (the vehicle turns on the right turn signal)" to detect the vehicle's behavior. pos(0,500) When (the vehicle turns on the right turn signal) is true, it means that the vehicle always turns on the right turn signal within the range (0, 500). In other words, the vehicle follows the behavior specification of "turning on the right turn signal when encountering the 500m exit sign".
[0234] As a possible implementation, the logical language text further includes a logical operator or a sequential operator, etc. The logical operator may include one or more operators shown in Table 1. The sequential operator may include one or more operators shown in Table 2. Specific examples can be found below and are not listed here one by one.
[0235] In some scenarios, there are some ambiguous semantics and unclear descriptions in natural language texts, such as sufficient safety distance, turning on the turn signal in advance, etc.
[0236] As a possible solution, in the process of determining the logical language text, the data processing device can determine the standardized text according to the natural language text, and determine the logical language text based on the standardized text. Among them, the standardized text is a sentence with no ambiguity and clear semantics. For example, the sufficient safety distance is converted into a time interval of 3 seconds, and the early opening is clearly defined as opening 3 seconds in advance. Through language conversion, the standardized text can almost directly correspond to the logical language text with clear meaning, further improving the accuracy of the expression.
[0237] The following takes the behavior norm indicated by the natural language text as traffic rules (referred to as traffic rules) as an example to illustrate a possible process of determining the logical language text. Table 4 is a schematic table of a possible natural language text, standardized text and logical language text provided by an embodiment of the present application.
[0238] Table 4
[0239]
[0240] It can be seen that the standardized traffic rules have clearer semantics than the natural language traffic rules. The logical language traffic rules contain propositions and positional operators. The description of the position in the natural language text is marked by the positional operators in the logical language traffic rules.
[0241] Specifically, the proposition onLaneType(DecLane) is used to determine (or judge) whether the lane type in which the current vehicle is located is a deceleration lane, and the proposition onLaneType(offRamp) is used to determine whether the lane type in which the current vehicle is located is a ramp to exit the highway. Then onLaneType(DecLane)∧X onLaneType(offRamp) combined together indicates the determination of whether the lane type in which the current vehicle is located is a deceleration lane and whether the lane type in which the vehicle is located at the next moment is a ramp to exit the highway. That is, it expresses the state of the vehicle at the moment when it is about to exit the ramp. The proposition actOvertake(Ego,Obj) indicates the determination of whether the vehicle is overtaking at the current moment. Then ~actOvertake(Ego,Obj)&onLaneType(DecLane) indicates the determination of whether the vehicle is not overtaking at the current moment, and whether the vehicle is in the deceleration lane.
[0242] After combining the distance operator, G pos(-500,0)(~actOvertake(Ego,Obj)&onLaneType(DecLane)), which means that from the current position to the range of 500 meters previously traveled, it is determined whether the vehicle is always not overtaking, and whether the vehicle is always in the deceleration lane. When the vehicle meets the behavior specifications shown in the first row of Table 4, the logical language text shown in the third row of Table 4 can express the following proposition: When the lane type of the vehicle is a deceleration lane and the lane type of the vehicle at the next moment is an exit ramp of the highway, from the range of 500 meters previously traveled, the vehicle is always not overtaking, and the vehicle is always in the deceleration lane.
[0243] In a possible implementation, the deceleration lane can also be replaced by the right lane. In this case, the proposition "onLaneType(DecLane)" can also be replaced by "OnLaneType(RightMostLane)". In some scenarios, the right lane within 500 meters from the exit is the deceleration lane.
[0244] In another possible implementation, the behavior specification requires that within 500 meters from the exit, the vehicle should drive in the deceleration lane or the right lane. In this case, the proposition "onLaneType(DecLane)" can also be replaced by "(OnLaneType(DecLane)|OnLaneType(RightMostLane))".
[0245] In a possible implementation, the data processing device may convert the fuzzy semantics and unclear descriptions into unambiguous and semantically clear sentences through a language processing model. Optionally, the language processing module may be obtained through reinforcement learning, deep learning or convolutional neural network.
[0246] In a possible implementation, the data processing device converts the natural language text into a standardized text based on the information input by the user. For example, the data processing device feeds back the unclear sentence to the user and receives the clear sentence input by the user, and the clear sentence can be converted by the user after analysis and verification.
[0247] Optionally, the standard language text may also be described in natural language. Here, in order to describe natural language text with unclear semantics, the natural language text with clear semantics is called standard language text. In the specific implementation process, there may be a step of "determining the standard text". For example, semantic clarification is achieved in the process of determining the logical language text. For another example, in some scenarios, the meaning of the natural language text may already be clear and unambiguous, and there is no need to convert it into standard language text.
[0248] In some scenarios, behavioral norms can be associated with scenarios. For example, "When you encounter the 500m exit sign, you should turn on the right turn signal", which requires scenario information to indicate the location of the 500m exit sign. Another example is that speed-related norms are associated with the speed limit of the road. Another example is that norms about crossing a crosswalk are associated with roads with crosswalks.
[0249] As a possible implementation, the logical language text may be related to the normative indication information of a scene (referred to as the first scene for ease of description). Normative indication information refers to information related to behavioral norms in the first scene. Exemplarily, taking the speed limit scene as an example, the speed limit between point A and point B on the road in the first scene is 50. The normative indication information of the first scene may include the content of the specification (i.e.: the speed of the object under test must be less than or equal to 50), the scope of application of the specification (such as the starting point, the end point, or the distance between the starting point and the end point, etc.), the effective period of the specification (such as the entire period, or between time T1 and time T2), etc. Among them, point A, point B, time T1, and time T2 are all exemplary parameters and can be replaced arbitrarily.
[0250] In a possible implementation, the data processing device determines the logical language text according to the natural language text and the specification indication information of the first scene. In this case, the logical language text can be adapted to the first scene and can be used to perform behavior detection in the first scene. For example, it is detected whether the behavior of the object under test complies with the specification. In this case, the object under test can be located in the first scene, or the object under test is about to enter the first scene.
[0251] The information related to behavioral norms in the first scenario may be static or dynamic.
[0252] Taking the first scenario of a road as an example, the standard indication information of the road may be static information of the road, such as the location of the standard indication sign on the road, the effective range of the standard indication sign, etc. The effective range of the standard indication sign includes a distance range (or effective distance range) and a time range (or effective time period), etc.
[0253] As a possible implementation, the regulatory indication information in the first scene may be obtained from a map of the first scene. For example, the first scene may be a certain road, and the high-precision map and / or digital road network may contain static information of the road, such as the location of the traffic regulation signboard of the road, the effective range of the signboard, etc.
[0254] The following uses the digital road network as an example to introduce a possible standard indication information. Figure 3 , Figure 3is a schematic diagram of a road provided in an embodiment of the present application. For ease of description, the road is represented as road 1 below. Road 1 includes two lanes, namely lane 1 and lane 2. In a digital road network, the standard indication information of road 1 may include information as shown in Table 5.
[0255] Table 5
[0256]
[0257] Combination Figure 3 As shown in Table 5, the speed limit of Lane 1 is 60 km / h to 120 km / h. There are two signs on Lane 2. The effective period of the "1 km sign from the exit" is all time (all), and the effective distance range is from the road coordinate s=495 to s=1498. The effective period of the "500 m sign from the exit" is all time (all), and the effective distance range is from the road coordinate s=1498 to s=1998.
[0258] As a possible implementation, the data processing device obtains the logical language text through the natural language text and the standard indication information, which can improve the flexibility of the logical language text conversion. When the information in the scene changes, the parameters in the logical language text can also be updated accordingly.
[0259] As an example of obtaining a logical language text according to the specification indication information, the specification indication information of the first scene includes the effective distance range of the behavior specification in the first scene. The position operator of the logical language text includes a position parameter, which is determined according to the above effective distance range.
[0260] Taking the speed limit scenario as an example, the speed limit on lane 1 of road 1 is 60 to 120 km / h, then the position parameter in the position operator can be determined by the distance range of the speed limit of lane 1. For example, the distance range of the speed limit of road 1 is 800 meters, then the logical statement about the speed limit specification can be expressed as: "G pos(p1,p2) (The vehicle complies with the speed limit range (v1, v2))", where p1 and p2 can be determined by the speed limit distance range of lane 1. For example, taking the end point of the speed limit distance range as the origin, p1 = -800, p2 = 0. For another example, taking the starting point of the speed limit distance range as the origin, p1 = 0, p2 = 800.
[0261] As an example of obtaining a logical language text according to the specification indication information, the parameters of the proposition in the logical language text can also be determined according to the specification indication information. For example, v1 and v2 in the above logical statement can be determined according to the speed limit range of road 1 in the digital road network, such as v1=60, v3=120.
[0262] The above logic statement can be used to detect whether the vehicle on road 1 is speeding. Therefore, by combining the specification indication information in the scene, the logic language text applicable to a scene can be determined more flexibly and accurately to detect whether the object under test in the scene complies with the specification.
[0263] In some scenarios, an inspection margin can be set in the process of determining the position parameters in the logical language text through the specification indication information. In other words, the specification indicated by the logical language text is more relaxed than the specification indicated in the specification indication information. For example, the data processing device can set some leniency on the distance range to make the behavior detection process more reasonable and improve the user experience. In some scenarios, the inspection margin can also compensate for violations caused by inaccurate positioning of some signboards, thereby improving the user experience of the terminal users.
[0264] As another example of obtaining a logical language text based on standard indication information, a standard indication information is in the form of "Highway 500m exit sign: {position: d1}, {scope: (d1, d2)}", in which case, "After encountering the 500m exit warning sign, the right turn signal should be turned on" can be expressed as "G pos(p1,p2) (The vehicle turns on the right turn signal)", where the values of p1 and p2 can be determined by d1 and d2. For example, the distance difference between p2 and p1 is equal to the distance difference between d2 and d1, that is: p2-p1=d2-d1. For example, when d1=1498 and d2=1998, taking p2 as the origin as an example, then p1=-500 and p2=0. Taking p1 as the origin as an example, then p1=0 and p2=500.
[0265] In some scenarios, when determining the position parameters by d1 and d2, a consideration margin can be set. For example, when d1 = 1498 and d2 = 1998, the distance difference between d2 and d1 is 500. Taking the origin p2 as an example, p2 is 0 and p1 can be -550 (taking into account a distance margin of 50m).
[0266] The following takes the traffic rules (referred to as traffic rules) as an example to illustrate a conversion process combining the specification indication information. Table 6 is a schematic table of a possible natural language text, a standardized text and a logical language text provided by an embodiment of the present application.
[0267] Table 6
[0268]
[0269] In the logical language traffic rules shown in Table 6, the values of p1 and p2 in the logical language traffic rules can be configured in combination with the digital road network. At this time, logical language traffic rules applicable to different roads can be generated according to the static information of different roads to detect the behavior of the object under test on different roads.
[0270] In Table 6, the proposition underTrafficSign(Ego, OffRamp) indicates whether the vehicle (Ego represents the vehicle) is within the range of the off-ramp sign (OffRamp represents the off-ramp sign). Furthermore, the behavior detection device (described below) determines whether the vehicle is within the range of a certain off-ramp sign based on the digital road network and the current position of the vehicle. In the above example, combined with the position operator, the natural language traffic rules in the first row of Table 6 are finally expressed in a logical language. The logical language traffic rules shown in the third row of Table 6 can be used to detect the behavior of the vehicle. The specific detection content can be as follows: When the vehicle is about to exit the ramp, check whether the vehicle has not overtaken and is driving in the deceleration lane within the distance range from p1 to p2.
[0271] The distance range has been mentioned several times above, and the distance range is introduced below.
[0272] As a possible example, the distance range refers to the distance along a certain path. For example, if the path is a road, the distance range may include the start point and the end point in the road coordinate system. The road coordinate system may be understood as the standard route of the road. The positive direction of the road coordinate system is the normal direction of travel along the road.
[0273] See also Figure 4 , Figure 4 is a schematic diagram of another road provided in an embodiment of the present application. The road includes multiple lanes, and the road coordinate system is as follows: Figure 4 The normal direction is the positive direction of the road.
[0274] In one possible implementation, when detecting the behavior of a vehicle, the vehicle's driving route may deviate from the road coordinate system. During the detection, the vehicle's driving route or some points in the driving route can be projected into the road coordinate system, so that the vehicle's behavior can be detected in a standardized manner.
[0275] As a possible implementation, if a position operator is used to represent the description of the road, when the position operator includes a position parameter, the position parameter may also be determined according to a road coordinate system of the road.
[0276] Exemplarily, the logical language text is used to detect the behavior of the detected object within a first distance range on the first road. Figure 4, the logical language text is used to detect the behavior of the vehicle between the vehicle starting point and the vehicle end point. That is, the first distance range can be the distance between the vehicle starting point and the vehicle end point.
[0277] The position operator of the logical language text includes a first value (i.e., p1) and a second value (i.e., p2), wherein the first value is the distance between the starting point of the vehicle and the origin along the normal traveling direction of the first road, and the second value is the distance between the end point of the vehicle and the origin along the normal traveling direction of the first road.
[0278] Optionally, the first value and the second value may be calculated by projecting them onto a road coordinate system. In other words, the difference between p1 and p2 is not equal to the actual travel distance of the vehicle, but is equal to the projection distance of the vehicle's travel route on the road coordinate system.
[0279] The origin may be predefined. For example, taking the origin as the vehicle end point, the second value is 0 (p2=0), and the first value is the distance between the projection of the vehicle start point and the vehicle end point in the road coordinate system, i.e. -500 (the start point is in the negative direction of the end point).
[0280] Optionally, the origin is the current position of the object being measured or the projection position of the current position of the object being measured on the road coordinate system. Alternatively, the origin may also be the starting point of the behavior specification, such as the starting point or end point of a sign. Alternatively, the origin may also be the position of a sign.
[0281] See also Figure 5 , Figure 5 is a schematic diagram of a possible behavior detection method provided in an embodiment of the present application. Optionally, the method can be applied to the aforementioned system, for example Figure 1 The behavior detection system shown. It should be understood that for the convenience of description, the behavior detection method is described in the order of S501 to S502, and it is not intended to limit the execution to the above order. The embodiment of the present application does not limit the execution order, execution time, execution number, etc. of the above one or more steps. S501 to step S502 are as follows:
[0282] Step S501: The behavior detection device obtains behavior information of the terminal.
[0283] The behavior detection device is a device with computing capability. Optionally, the behavior detection device is an independent device, such as a terminal (e.g. Figure 1 The vehicle 101 shown), a server, or a roadside device, etc. Alternatively, the behavior detection device may be a module in an independent device, such as a processor, a controller, etc. in a terminal.
[0284] Behavior information refers to information describing behavior, which can be understood as the context or cause and effect of the behavior. Behavior information includes but is not limited to the name of the behavior, the type of behavior, and the scene of the behavior (such as the time, location, region, or terrain of the behavior). Behavior information can be formatted data or unformatted data, such as video data, image data, and terminal driving parameter data (such as speed, lane, route, etc.).
[0285] The behavior detection device can obtain the behavior information of the terminal by collecting it by itself, receiving it from other devices, or inputting it by the user. The following are some possible examples:
[0286] Case 1: The behavior detection device is a terminal or is included in a terminal, and can collect behavior information of the terminal.
[0287] For example, the terminal includes a positioning device (or a map) that can be used to detect its own position and current speed. The position information and speed can be used as the behavior information of the terminal.
[0288] For another example, the terminal may include a visual sensor (such as a camera, radar, or laser radar, etc.), which collects images or point clouds, which can be used to determine the behavior of the terminal. In other words, the data collected by the visual sensor can be used as behavior information.
[0289] Case 2: The behavior detection device is located outside the terminal and can collect the behavior information of the terminal.
[0290] See also Figure 6 , Figure 6 1 is a schematic diagram of an operation scenario of a behavior detection method provided in an embodiment of the present application. The behavior detection device may be a roadside device 103, or may be included in the roadside device 103. The roadside device 103 may include a sensor, and the sensor may record the behavior of the terminal. The data collected by the sensor may be used as behavior information. The sensor here may include but is not limited to a speed sensor, a camera, a radar, or a laser radar.
[0291] For example, the roadside device 103 may obtain a picture of the vehicle 101, which may be used as the behavior information of the vehicle 101. For another example, the roadside device may shoot a video, which may be used as the behavior information of the vehicle 101. For another example, the roadside device may generate point cloud data, which may be used as the behavior information, etc.
[0292] Case 3: The behavior information of the terminal is provided by the terminal or other equipment to the behavior detection device.
[0293] by Figure 6For example, the behavior detection device may be the server 102 or included in the server 102. The behavior information of the terminal may be provided to the server 102 by the roadside device 103. Alternatively, it may be provided to the server 102 by the terminal itself (e.g., the vehicle 101). Alternatively, it may also be provided to the server 102 by other terminals, such as other vehicles around the vehicle 101.
[0294] The above cases are illustrative cases made to facilitate understanding of the concept of "acquisition". In the specific implementation process, the behavior detection device can also obtain the behavior information of the terminal in other ways. As another possible implementation, the user copies the behavior information of the terminal to the behavior detection device through a readable storage medium. As another possible implementation, the behavior information of the terminal can also be input by the user or uploaded by the user. For example, the user captures the behavior information of the terminal through a mobile phone or a driving recorder, and uploads the behavior information of the terminal to the behavior detection device through the user interface.
[0295] Step S502: The behavior detection device determines whether the behavior of the terminal complies with the behavior specification based on the behavior information and the logical language text of the terminal.
[0296] Logical language text contains positional operators, which are used to represent events at physical locations.
[0297] For example, the logic language text can indicate the behavior specification. For example, for the specification "the speed limit on road L2 is 80", the logic language text is used to express it as: G pos(p1,p2) WithinSpeedLimit(Ego,0,80). The proposition WithinSpeedLimit(Ego,0,80) indicates whether the vehicle's speed is within the speed limit of 80 km / h (where 0 represents the lowest speed and 80 represents the highest speed). p1 is the starting point of the speed limit on road 2, and p2 is the end point of the speed limit on road 2.
[0298] The behavior detection device determines the truth or falsity of the logic language text based on the behavior information of the terminal. If the logic language is true, it is determined that the terminal follows the behavior specification; if the logic language is false, it is determined that the terminal does not follow the behavior specification. pos(p1,p2) WithinSpeedLimit(Ego,0,80) is used to detect the behavior of the vehicle. If the logical value of the logical language text is true, it means that the terminal is not speeding on L2; otherwise, if the logical value of the logical language text is false, it means that the terminal is speeding on L2.
[0299] In a possible design, the form of the logical language text is: conditional proposition → behavior proposition, where → represents derivation. The behavior detection device determines the logical values of the conditional proposition and the behavior proposition based on the behavior information of the terminal. If the conditional proposition is true and the logical value of the behavior proposition is true, it is determined that the behavior of the terminal complies with the behavior specification; if the conditional proposition is true and the logical value of the behavior proposition is false, it is determined that the behavior of the terminal does not comply with the behavior specification. Exemplarily, the logical language text is, for example: onLaneType(DecLane)∧X onLaneType(offRamp)→G pos(-500,0) (~actOvertake(Ego,Obj)&onLaneType(DecLane))", where the conditional proposition is "onLaneType(DecLane)∧X onLaneType(offRamp)", and the behavior proposition is "G pos(-500,0) (~actOvertake(Ego,Obj)&onLaneType(DecLane))". When both are true, it is determined that the behavior of the terminal complies with the behavior specification.
[0300] As a possible implementation, the logical language text indicates the behavior specification in the first scenario. In this case, the behavior detection device can determine whether the behavior of the terminal in the first scenario complies with the behavior specification in the first scenario based on the behavior information of the terminal and the logical language text.
[0301] Optionally, the logical language text may be obtained according to specification instructions. For a related description, see Figure 2 Description of the illustrated embodiment.
[0302] After the behavior detection, the behavior detection device can output the behavior detection result. The behavior detection result can indicate whether the behavior of the terminal complies with the behavior norm. Further, the behavior detection result can also include the behavior that does not comply with the behavior norm (hereinafter referred to as the violation), the terminal number, the time when the violation occurred, the section where the violation occurred, the degree of violation, the punishment measures for the violation (such as deduction points, fines, etc.), etc.
[0303] For example, a behavior detection result may be as shown in Table 7, including the behavior sequence number, the terminal number generating the behavior, the time of generation, the road section generating the behavior, and the corresponding penalty measures, etc. The behavior detection result may indicate the specific situation that the terminal does not follow the behavior specification on Highway A, and reflect the degree to which the behavior of the terminal is constrained by the specification, which helps to remind the controller of the terminal to strengthen the standardization of the operation.
[0304] Table 7
[0305] Behavior number Terminal Number Behavior time Road Section Punitive measures …… …… …… …… …… …… H1 T1 Speeding 2023 / 1 / 1 A high speed Deduct x points, fine y yuan H2 T2 Speeding 2023 / 1 / 1 A high speed Deduct x points, fine y yuan H3 T2 Speeding 2023 / 1 / 1 A high speed Deduct x points, fine y yuan H3 T2 Illegal lane change 2023 / 1 / 1 A high speed Deduct z points and fine k yuan …… …… …… …… …… ……
[0306] It should be understood that the behavior number, terminal number, section name, penalty measures, etc. shown in Table 7 are only examples. For example, the amount represented by x, y, z, k, etc. can be designed according to the specific situation.
[0307] As a possible design, in test scenarios such as on-road testing and closed road testing of the terminal, the behavior detection device can detect the terminal based on the behavior specification. The behavior detection results can be used to analyze the intelligence and safety of the terminal, which is conducive to the quality upgrade of the terminal. For example, for terminals equipped with intelligent driving systems or with intelligent driving functions (collectively referred to as intelligent driving terminals), the behavior is automatically detected through logical language text. If the terminal always exceeds the speed limit on a certain section of road, the terminal has speed control problems during driving on the section. Furthermore, the behavior detection device can provide feedback or update the intelligent driving function that performs the driving operation.
[0308] In some possible designs, the behavior detection device also obtains violation prompt information. Furthermore, the violation prompt information can be provided to the terminal (for example, sent to the vehicle, sent to the owner's mobile phone, etc.), the terminal management platform (for example, the vehicle management center, and then the autonomous driving server, etc.), etc.
[0309] The violation prompt information indicates the information of the violated behavioral norm and / or indicates how to follow the behavioral norm. In other words, the violation prompt information may include the information of the behavioral norm violated by the terminal, and the violation prompt information may be used to prompt the terminal (or the user of the terminal) to follow the behavioral norm, etc.
[0310] The information of the behavioral norms violated by the terminal includes, for example, the violated behavioral norms, the time, location, and pictures of the violation, the punishment for the violation (punishment for the controller of the terminal), etc.
[0311] As a possible example, the behavior detection device detects that terminal T2 changes lanes illegally on Highway A. The behavior detection device can send violation information to terminal T2. The violation information may include, for example, the law for determining the illegal lane change, the illegal behavior (such as illegal lane change), the location of the violation (such as Highway A), points deducted (such as z points deducted), and a fine (such as indicating that the user needs to pay a fine of k yuan).
[0312] As another possible example, if the terminal has the corresponding hardware conditions, the terminal can trigger voice, light, electricity, vibration prompts, or display screens to output violation prompt information. For example, the terminal can include a display processor, an audio processor, a vibration processor, and other modules that control output (or the terminal is connected to a module that controls output), and the terminal can output a reminder signal to the user through the above modules. Taking the display processor as an example, Figure 77 is a schematic diagram of a standardized behavior reminder provided by an embodiment of the present application, and the display processor 701 can be used to output violation prompt information, etc. As shown in area 702, the violation prompt information includes the violation behavior (i.e., "speeding"), the violation location ("road section A"), and information prompting the user to follow the behavior norm (i.e., "reduce the speed").
[0313] As another possible example, the behavior of the vehicle may be made by an intelligent driving system or an intelligent driving function. When the terminal is controlled by the intelligent driving function, if a violation of the terminal is detected, a violation prompt message may be output to the intelligent driving system so that the intelligent driving function can update the driving decision and reduce the duration of the violation.
[0314] In some possible implementations, if the terminal's illegal behavior is caused by an intelligent driving function, a control switching instruction is sent, and the control switching instruction is used to deactivate the intelligent driving function.
[0315] For example, the vehicle's adaptive cruise control system can accelerate or decelerate the vehicle. If the vehicle is speeding when the adaptive cruise control system is turned on, the server or the intelligent driving controller in the vehicle can disable the adaptive cruise control system or temporarily lock the adaptive cruise control system, and the human driver can take over the vehicle.
[0316] As a possible solution, the behavior information of the terminal also includes information of the intelligent driving function related to the behavior of the terminal. When the behavior of the terminal does not comply with the behavior specification, function feedback information is output, the function feedback information indicates the behavior specification violated by the intelligent driving function and the terminal, and the function feedback information is used to update the intelligent driving function.
[0317] exist Figure 5 In the embodiment shown, the logical language text includes a position operator, and the application of the position operator can represent events at physical locations, which not only reduces the proposition complexity of the logical language text, but also improves the semantic accuracy, thereby improving detection efficiency and detection accuracy.
[0318] Some devices for implementing the aforementioned method are introduced below.
[0319] It should be understood that the division of units in the device provided in the embodiments of the present application is only a division of logical functions, and in actual implementation, it can be fully or partially integrated into one physical entity, or it can be physically separated. In addition, the units in the device can be implemented in the form of a processor calling software; for example, the device includes a processor, the processor is connected to a memory, and instructions are stored in the memory. The processor calls the instructions stored in the memory to implement any of the above methods or implement the functions of each unit of the device, wherein the processor is, for example, a general-purpose processor, such as a central processing unit (CPU) or a microprocessor, and the memory is a memory inside the device or a memory outside the device. Alternatively, the units in the device can be implemented in the form of hardware circuits, and the functions of some or all of the units can be realized by designing the hardware circuits, and the hardware circuits can be understood as one or more processors; for example, in one implementation, the hardware circuit is an application-specific integrated circuit (ASIC), and the functions of some or all of the above units are realized by designing the logical relationship of the components in the circuit; for another example, in another implementation, the hardware circuit can be realized by a programmable logic device (PLD), taking a field programmable gate array (FPGA) as an example, which can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by a configuration file, so as to realize the functions of some or all of the above units. All units of the above devices can be realized in the form of a processor calling software, or in the form of hardware circuits, or in part by a processor calling software, and the rest by hardware circuits.
[0320] It can be seen that each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, ASIC, FPGA, or a combination of two processors in these processor forms.
[0321] In addition, all or part of the units in the above device can be integrated together, or can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a system-on-a-chip (SOC). The SOC may include at least one processor for implementing any of the above methods or implementing the functions of each unit of the device. The type of the at least one processor may be different, for example, including a CPU and an FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.
[0322] Several possible arrangements are listed below.
[0323] See also Figure 8 , Figure 8 80 is a structural diagram of a data processing device provided in an embodiment of the present application, wherein the data processing device 80 includes an acquisition module 801 and a processing module 802. Among them, the acquisition module 801 can be used to implement the aforementioned acquisition, receiving and other functions. In some possible implementation scenarios, the acquisition module 801 can also be replaced by a communication interface module and / or a transceiver module. The processing module 802 can be used to perform operations such as determining, calculating, generating, converting, and / or supporting other processes of the aforementioned embodiments.
[0324] Exemplarily, the data processing device 80 is used to implement the aforementioned data processing method, for example Figure 2 The data processing method in the illustrated embodiment.
[0325] In a possible implementation, the acquisition module 801 is used to acquire a natural language text, where the natural language text includes a description of a physical location;
[0326] The processing module 802 is used to determine a logical language text for detecting the detected object according to the natural language text, wherein the logical language text contains atomic propositions and position operators, and the position operator is used to represent an event at a physical position.
[0327] Optionally, the logical language text may also contain propositions, where the propositions may be atomic propositions or compound propositions. Of course, compound propositions also contain atomic propositions.
[0328] Optionally, the logical language text may be a character string, instruction, statement, text paragraph, computer program code or document expressed in the form of a logical language. The present application does not impose strict restrictions on the storage and transmission format of the text.
[0329] In a possible implementation, natural language text is used to indicate the behavior norm.
[0330] In yet another possible implementation, the logical language text is used to determine whether the detected object complies with the behavior specification.
[0331] The step of determining a logical language text for detecting the object to be detected based on the natural language text includes:
[0332] Determine a normalized text according to the natural language text;
[0333] According to the normalized text, the logical language text used for detecting the object under test is determined.
[0334] In another possible implementation, the position operator includes at least one of the following operators:
[0335] Previous position X prepos , next position X pos Until U prepos , reverse until U pos , direction is always G prepos , always G pos 、Once F prepos 、Final F pos , within the distance range from the first value p1 to the second value p2, always There is a distance range from the first value p1 to the second value p2 The first value and the second value are position parameters.
[0336] In yet another possible implementation, the processing module 802 is used to:
[0337] The logical language text is determined according to the natural language text and the specification indication information of the first scenario, and the logical language text is used to detect the behavior of the detected object in the first scenario.
[0338] Optionally, the regulatory indication information in the first scene may be obtained from a map of the first scene. For example, the first scene may be a road, and the high-precision map and / or digital road network may contain static information of the road, such as the location of the traffic regulation signboard of the road, the effective range of the signboard, etc.
[0339] In another possible implementation, the detected object may be located in the first scene, or the detected object is about to enter the first scene.
[0340] In yet another possible implementation, the specification indication information of the first scene includes an effective distance range of the behavior specification in the first scene, and the position operator includes a position parameter, and the position parameter is determined according to the effective distance range.
[0341] In another possible implementation, the logical language text is used to detect the behavior of the detected object within a first distance range on the first road.
[0342] The first distance range includes a start point and an end point on a road coordinate system of the first road, the positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin;
[0343] The position operator includes a first value and a second value, wherein the first value is the distance between the start point and the origin along the normal travel direction of the first road, and the second value is the distance between the end point and the origin along the normal travel direction of the first road.
[0344] In another possible implementation, the origin is the current position of the measured object or the projection position of the current position of the measured object on the road coordinate system.
[0345] Optionally, the origin may also be the starting point of the behavior norm, such as the starting point or the end point of the sign. Alternatively, the origin may also be the position of the sign.
[0346] In another possible implementation, the logical language text further includes logical operators, wherein the logical operators may include one or more of negation, conjunction, disjunction, derivation, or equivalence.
[0347] In another possible implementation, the logic language text further includes a time sequence operator. The time sequence operator may include the next time X, until U, always G, finally F, always occur between t1 and t2 It will happen between t1 and t2.
[0348] See also Fig. 9 , Fig. 9 : is a structural diagram of a behavior detection device provided in an embodiment of the present application, wherein the behavior detection device 90 includes an acquisition module 901 and a processing module 902. Optionally, a communication module 903 is also included. Among them, the acquisition module 901 can be used to implement the aforementioned acquisition, receiving, reading and other operations. The communication module 903 implements communication functions, such as receiving and sending information.
[0349] In some possible implementation scenarios, the acquisition module 901 and the communication module 903 may also be a unit. Optionally, both may be replaced by a communication interface module and / or a transceiver module. The processing module 902 may be used to perform functions such as determining, converting, detecting, or projecting, and / or to support other processes of the aforementioned embodiments.
[0350] Exemplarily, the behavior detection device 90 is used to implement the aforementioned behavior detection method, for example Figure 6 The data processing method in the illustrated embodiment.
[0351] In another possible implementation, the acquisition module 901 is used to acquire behavior information of the terminal;
[0352] The processing module 902 is used to determine whether the behavior of the terminal complies with the behavior specification according to the behavior information of the terminal and the logical language text, wherein the logical language text contains a position operator, and the position operator is used to represent an event at a physical location.
[0353] Optionally, since a behavior is usually associated with a physical location where the behavior is performed, the behavior information may include information indicating the location of the behavior.
[0354] In a possible implementation, the position operator includes at least one of the following operators:
[0355] Previous position X prepos , next position X pos Until U prepos , reverse until U pos , direction is always G prepos , always G pos 、Once F prepos 、Final F pos , within the distance range from the first position to the second position, always There is a distance between the first position and the second position The first value and the second value are position parameters.
[0356] In yet another possible implementation, the behavior detection device further includes a communication module 903, and the communication module 903 is used to send and / or receive information, and / or to output and / or input information.
[0357] In another possible implementation, the communication module 903 is used to send a violation prompt message. The violation prompt message indicates information about the violated behavioral norm and / or indicates how to follow the behavioral norm. In other words, the violation prompt message may include information about the behavioral norm violated by the terminal, and the violation prompt message may be used to prompt the terminal (or the user of the terminal) to follow the behavioral norm, etc.
[0358] In another possible implementation, the communication module 903 is used to send a control switching instruction, and the control switching instruction is used to deactivate the intelligent driving function.
[0359] Optionally, the communication module 903 sends a control switching instruction when the behavior of the terminal does not comply with the behavior specification, and does not need to send the control switching instruction if the behavior specification of the terminal does not violate the regulations.
[0360] In yet another possible implementation, the communication module 903 is configured to output a behavior detection result, where the behavior detection result indicates whether the behavior of the terminal complies with a behavior specification.
[0361] In another possible implementation, the behavior information of the terminal further includes information of an intelligent driving function related to the behavior of the terminal; and the communication module 903 is used to:
[0362] In the case where the behavior of the terminal does not comply with the behavior specification, function feedback information is output, where the function feedback information indicates the intelligent driving function and the behavior specification violated by the terminal, and the function feedback information is used to update the intelligent driving function.
[0363] In another possible implementation, the form of the logic language text is: conditional proposition → action proposition, where → indicates derivation;
[0364] The processing module 902 is used to:
[0365] determining the logical values of the conditional proposition and the behavioral proposition according to the behavioral information of the terminal,
[0366] If the conditional proposition is true and the logical value of the behavior proposition is true, then determining that the behavior of the terminal complies with the behavior specification;
[0367] If the conditional proposition is true and the logical value of the behavior proposition is false, it is determined that the behavior of the terminal does not comply with the behavior specification.
[0368] In another possible implementation, the logical language text indicates a behavior specification in the first scenario. The processing module 902 is configured to:
[0369] According to the behavior information and the logical language text of the terminal, it is determined whether the behavior of the terminal in the first scenario complies with the behavior specification in the first scenario.
[0370] In yet another possible implementation, the processing module 902 is further configured to:
[0371] The logical language text is determined according to the natural language text and the specification indication information of the first scenario, wherein the natural language text is a behavior specification described in a natural language.
[0372] In another possible implementation, the specification indication information of the first scenario includes an effective distance range of the behavior specification in the first scenario; the position operator includes a position parameter, and the position parameter is determined according to the effective distance range.
[0373] In another possible implementation, the logical language text is used to detect the behavior of the detected object within a first distance range on the first road.
[0374] The first distance range includes a start point and an end point on a road coordinate system of the first road, the positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin;
[0375] The position operator includes a first value and a second value, wherein the first value is the distance between the start point and the origin along the normal travel direction of the first road, and the second value is the distance between the end point and the origin along the normal travel direction of the first road.
[0376] In another possible implementation, the origin is the current position of the measured object or the projection position of the current position of the measured object on the road coordinate system.
[0377] Optionally, the origin may also be the starting point of the behavior norm, such as the starting point or the end point of the sign. Alternatively, the origin may also be the position of the sign.
[0378] In another possible implementation, the logical language text further includes logical operators, wherein the logical operators may include one or more of negation, conjunction, disjunction, derivation, or equivalence.
[0379] In another possible implementation, the logic language text further includes a time sequence operator. The time sequence operator may include the next time X, until U, always G, finally F, always occur between t1 and t2 It will happen between t1 and t2.
[0380] See also Fig.10 , Fig.10 1 is a schematic diagram of the structure of a processing device provided in an embodiment of the present application. The processing device 100 may include at least one processor 1001 and a communication interface 1002. Optionally, it may also include at least one memory 1003. Further optionally, it may also include a connecting line 1004, wherein the processor 1001, the communication interface 1002 and / or the memory 1003 are connected via the connecting line 1004, and communicate with each other via the connecting line 1004 to transmit control and / or data signals. Optionally, the processing device 100 may be an independent device, such as a terminal, a server, a roadside device, or a device contained in an independent device, such as a chip, a software module, or an integrated circuit.
[0381] in:
[0382] (1) Processor 1001 is a module for performing operations. In one implementation, the processor may be a circuit with the ability to read and run instructions, such as a central processing unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a microprocessor), etc.; in another implementation, the processor may implement certain functions through the logical relationship of a hardware circuit, and the logical relationship of the hardware circuit is fixed or reconfigurable, such as a hardware circuit implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as an FPGA. In addition, it may also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), a tensor processing unit (TPU), a deep learning processing unit (DPU), etc.
[0383] (2) The communication interface 1002 may be used to provide information input or output for the at least one processor. In some possible scenarios, the communication interface 1002 may include an interface circuit. And / or, the communication interface 1002 may be used to receive data sent externally and / or send data to the outside. For example, the communication interface 1002 may include a wired link interface such as an Ethernet cable, or a wireless link (Wi-Fi, Bluetooth, general wireless transmission, vehicle-mounted short-range communication technology, and other short-range wireless communication technologies, etc.) interface. Optionally, the communication interface 1002 may also include a transmitter (such as a radio frequency transmitter, an antenna, etc.) coupled to the interface, or a receiver, etc.
[0384] Optionally, if the processing device 100 is an independent device, the communication interface 1002 may include a receiver and a transmitter. The receiver and the transmitter may be the same component or different components. When the receiver and the transmitter are the same component, the component may be referred to as a transceiver.
[0385] Optionally, if the processing device 100 is a chip or a circuit, the communication interface 1002 may include an input interface and an output interface, and the input interface and the output interface may be the same interface, or may be different interfaces.
[0386] Optionally, the function of the communication interface 1002 may be implemented by a transceiver circuit or a dedicated transceiver chip. The processor 1001 may be implemented by a dedicated processing chip, a processing circuit, a processor or a general-purpose chip.
[0387] (3) The memory 1003 is used to provide a storage space, in which data such as an operating system and a computer program can be stored. The memory 1003 can be a random access memory (RAM), a read-only memory (ROM), an erasable programmable read only memory (EPROM), or a portable read only memory (CD-ROM), etc., or a combination of multiple thereof.
[0388] The functions and actions of the modules or units in the processing device 100 listed above are only exemplary.
[0389] In a possible design, each functional unit in the processing device 100 can be used to implement the aforementioned data processing method. For example, the processing device 100 can be replaced with Figure 2 The data processing device in the method embodiment shown is omitted here in order to avoid redundancy.
[0390] In a possible design, each functional unit in the processing device 100 can be used to implement the aforementioned behavior detection method. For example, the processing device 100 can be replaced with Figure 6 The behavior detection device in the method embodiment shown is omitted here in order to avoid redundancy.
[0391] Optionally, the processor 1001 may be a processor specifically used to execute the aforementioned method (for convenience of distinction, referred to as a dedicated processor), or may be a processor that executes the aforementioned method by calling a computer program (for convenience of distinction, referred to as a dedicated processor). Optionally, the at least one processor may include both a dedicated processor and a general-purpose processor.
[0392] Optionally, in the case where the computing device includes at least one memory 1003 , if the processor 1001 implements the aforementioned power supply control method by calling a computer program, the computer program may be stored in the memory 1003 .
[0393] The present application also provides a chip system, which includes a processor and a communication interface, wherein the communication interface is used to receive and / or send data, and / or the communication interface is used to provide input and / or output for the processor. The chip system is used to implement the aforementioned data processing method and / or behavior detection method, for example Figure 2 , Figure 6 The methods are described in the examples shown.
[0394] An embodiment of the present application also provides a terminal, which includes one or more of the aforementioned data processing device, behavior detection device or processing device.
[0395] As a possible implementation, the terminal may be a smart terminal or means of transportation such as a vehicle, a drone, or a robot. Exemplary. Of course, the terminal may also be replaced by industrial equipment, entertainment and leisure equipment, etc. Smart terminals such as mobile phones, tablet computers, laptops, smart bracelets, smart watches, or smart glasses. Means of transportation such as vehicles, ships, aircraft, or logistics robots. Industrial equipment such as industrial robots and robotic arms. Leisure and entertainment equipment such as virtual reality (VR) equipment, mixed reality (MR) equipment, massage chairs, or 4D cinema cabins. This application does not impose strict restrictions on the equipment used for electrical connectors.
[0396] An embodiment of the present application also provides a server, which includes one or more of the aforementioned data processing device, behavior detection device or processing device.
[0397] An embodiment of the present application also provides a roadside device, which includes one or more of the aforementioned data processing device, behavior detection device or processing device.
[0398] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on at least one processor, the aforementioned data processing method and / or behavior detection method is implemented, for example Figure 2 , Figure 6 The methods are described in the examples shown.
[0399] The present application also provides a computer program product, which includes computer instructions, and when executed by a computing device, implements the aforementioned data processing method and / or behavior detection method, for example Figure 2 , Figure 6 The methods are described in the examples shown.
[0400] It should be noted that the names of devices, parameters, and information in this application are only examples, and the names can be replaced arbitrarily during the specific implementation process. For example, the behavior detection device can also be called a detection device, a processing device, etc.
[0401] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0402] The "at least one" mentioned in the embodiments of the present application refers to one or more, and "plurality" refers to two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, (a and b), (a and c), (b and c), or (a and b and c), where a, b, c can be single or multiple. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can be represented by: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0403] Furthermore, unless otherwise specified, the ordinal numbers such as "first" and "second" used in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects. For example, the first position and the second position are only for the convenience of describing the position, and do not indicate the difference in the position representation method, appearance order, importance, etc. of the first position and the second position.
[0404] In the above embodiments, the term "when..." can be interpreted as meaning "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modification, equivalent substitution, improvement, etc. made within the concept and principle of the present application shall be included in the protection scope of the present application.
[0405] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
Claims
1. A data processing method, characterized in that: The method comprises: Obtaining a natural language text, wherein the natural language text includes a description of a physical location; According to the natural language text, a logical language text for detecting the detected object is determined, wherein the logical language text contains atomic propositions and position operators, and the position operator is used to represent an event at a physical position.
2. The method according to claim 1, characterized in that The natural language text is used to indicate the behavior specification.
3. The method according to claim 2, characterized in that The logical language text is used to determine whether the detected object complies with the behavior specification.
4. The method according to any one of claims 1 to 3, characterized in that: The positional operators include at least one of the following operators: Previous position X prepos , next position X pos Until U prepos , reverse until U pos , direction is always G prepos , always G pos 、Once F prepos 、Final F pos , within the distance range from the first value p1 to the second value p2, always There is a distance range from the first value p1 to the second value p2 The first value and the second value are position parameters.
5. The method according to any one of claims 1 to 4, characterized in that: The step of determining a logical language text for detecting the object to be detected based on the natural language text includes: The logical language text is determined according to the natural language text and the specification indication information of the first scenario, and the logical language text is used to detect the behavior of the detected object in the first scenario.
6. The method according to any one of claim 5, characterized in that: The specification indication information of the first scenario includes an effective distance range of the behavior specification in the first scenario; The position operator includes a position parameter, and the position parameter is determined according to the effective distance range.
7. The method according to any one of claims 1 to 6, characterized in that: The logical language text is used to detect the behavior of the detected object within a first distance range on the first road, The first distance range includes a start point and an end point on a road coordinate system of the first road, the positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin; The position operator includes a first value and a second value, wherein the first value is the distance between the start point and the origin along the normal travel direction of the first road, and the second value is the distance between the end point and the origin along the normal travel direction of the first road.
8. The method according to claim 7, characterized in that The origin is the current position of the measured object or the projection position of the current position of the measured object on the road coordinate system.
9. The method according to any one of claims 1 to 8, characterized in that: The logical language text also includes one or more of a logical operator and a temporal operator.
10. A behavior detection method, characterized in that: The method comprises: Obtaining behavior information of the terminal; Whether the behavior of the terminal complies with the behavior specification is determined according to the behavior information and the logical language text of the terminal, wherein the logical language text includes atomic propositions and position operators, and the position operator is used to represent an event at a physical location.
11. The method according to claim 10, characterized in that The positional operators include at least one of the following operators: Previous position X prepos , next position X pos Until U prepos , reverse until U pos , direction is always G prepos , always G pos 、Once F prepos 、Final F pos , within the distance range from the first position to the second position, always There is a distance between the first position and the second position The first value and the second value are position parameters.
12. The method according to claim 10 or 11, characterized in that: The method further comprises: In the case that the behavior of the terminal does not comply with the behavior specification, violation prompt information is sent to the terminal, where the violation prompt information indicates information about the violated behavior specification and / or indicates how to comply with the behavior specification.
13. The method according to claim 10 or 11, characterized in that: The method further comprises: A behavior detection result is output, where the behavior detection result indicates whether the behavior of the terminal complies with the behavior specification.
14. The method according to any one of claims 10 or 11, characterized in that The behavior information of the terminal further includes information of the intelligent driving function related to the behavior of the terminal; and the method further includes: In the case where the behavior of the terminal does not comply with the behavior specification, function feedback information is output, where the function feedback information indicates the intelligent driving function and the behavior specification violated by the terminal, and the function feedback information is used to update the intelligent driving function.
15. The method according to any one of claims 10 to 14, characterized in that: The form of the logical language text is: conditional proposition → action proposition, where → indicates derivation; The determining, according to the behavior information and the logical language text of the terminal, whether the behavior of the terminal complies with the behavior specification includes: determining the logical values of the conditional proposition and the behavioral proposition according to the behavioral information of the terminal, If the conditional proposition is true and the logical value of the behavior proposition is true, then determining that the behavior of the terminal complies with the behavior specification; If the conditional proposition is true and the logical value of the behavior proposition is false, it is determined that the behavior of the terminal does not comply with the behavior specification.
16. The method according to any one of claims 10 to 15, characterized in that: The logical language text indicates a behavior specification in a first scenario, and determining whether the behavior of the terminal complies with the behavior specification according to the behavior information of the terminal and the logical language text includes: According to the behavior information and the logical language text of the terminal, it is determined whether the behavior of the terminal in the first scenario complies with the behavior specification in the first scenario.
17. The method according to claim 16, characterized in that The method further comprises: The logical language text is determined according to the natural language text and the specification indication information of the first scenario, wherein the natural language text is a behavior specification described in a natural language.
18. The method according to claim 17, characterized in that The specification indication information of the first scene includes the effective distance range of the behavior specification in the first scene; the position operator includes a position parameter, and the position parameter is determined according to the effective distance range.
19. The method according to any one of claims 10 to 18, characterized in that: The logical language text is used to detect the behavior of the detected object within a first distance range on the first road, The first distance range includes a start point and an end point on a road coordinate system of the first road, the positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin; The position operator includes a first value and a second value, wherein the first value is the distance between the start point and the origin along the normal travel direction of the first road, and the second value is the distance between the end point and the origin along the normal travel direction of the first road.
20. The method according to any one of claims 10 to 19, characterized in that: The logical language text also includes one or more of a logical operator and a temporal operator.
21. A data processing device, characterized in that: The data processing device comprises an acquisition module and a processing module, and the processing device is used to implement the method according to any one of claims 1 to 9.
22. A detection device, characterized in that: The detection device comprises an acquisition module and a processing module, and the processing device is used to implement the method described in any one of claims 10-20.
23. A data processing device, characterized in that: The data processing device includes a processor and a communication interface; The communication interface is used to receive and / or send data, and / or the communication interface is used to provide input and / or output for the processor; The processor is used to implement the method according to any one of claims 1 to 9.
24. A detection device, characterized in that: The chip includes a processor and a communication interface; The communication interface is used to receive and / or send data, and / or the communication interface is used to provide input and / or output for the processor; The processor is used to implement the method according to any one of claims 10-20.
25. A terminal, characterized in that: The terminal comprises the detection device as claimed in claim 24.
26. The terminal according to claim 25, characterized in that The terminal is a vehicle, a drone or a robot.
27. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on at least one processor, the method according to any one of claims 1 to 9 is implemented.
28. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on at least one processor, the method according to any one of claims 10 to 21 is implemented.
Citation Information
Cited By
Data processing method, behavior detection method, and related device
EP4693093A1
Data processing method, behavior detection method, and related device
WO2024198607A1
