Data processing method, behavior detection method, and related device

By using position operators in logical language texts to represent physical location descriptions in natural language texts, the problem of difficulty in converting distance and timing descriptions is solved, and the expression ability of logical language texts and the accuracy of behavior detection are improved.

WO2024198607A1PCT designated stage expired Publication Date: 2024-10-03YINWANG INTELLIGENT TECHNOLOGIES CO LTD

Patent Information

Application Number
PCT/CN2024/070799
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-27
Filing Date
2024-01-05
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

There are difficulties when converting physical location descriptions in natural language texts into logical language texts, especially the accuracy of distance and timing descriptions, which results in high complexity of logical language text propositions and low detection efficiency and accuracy.

Method used

Introduce position operators to represent events at physical locations through position operators in logical language text. For example, 'Gpos(0,500) (vehicle turns on the right turn signal)' indicates whether the vehicle turns on the right turn signal at the 500-meter exit sign, simplifying The expression and transformation process of logical language text.

Benefits of technology

It improves the accuracy of conversion from natural language text to logical language text, reduces the proposition complexity of logical language text, enhances the efficiency and accuracy of behavior detection, avoids fuzzy semantics and ambiguity, and improves machine understanding and detection capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024070799_03102024_PF_FP_ABST
    Figure CN2024070799_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed are a data processing method, a behavior detection method, and a related device, applied to the field of language processing and automatic driving. According to the present application, description on a physical position can be represented by means of a position operator, so that the expression capability of a logic symbol may be enriched, and conversion accuracy from a natural language text to a logic language text may be improved. Furthermore, the natural language text can be a text indicating a behavior norm, in this case, the logic language text obtained by converting the natural language text can efficiently detect whether a behavior of a terminal follows the behavior norm, and detection efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Data processing method, behavior detection method and related device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 27, 2023, with application number 202310347659.3 and application name “Data processing method, behavior detection method and related device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] This 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

[0003] Language is a crucial tool for human expression, communication, and thought. The language humans use daily is called natural language. Humans use natural language to express ideas, communicate, and describe objects. However, the meaning of text in natural language is difficult for machines to directly understand. To enable machines to understand the meaning of language, natural language text must be converted into machine-understandable logical language text. Logical language text describes machine-understandable meaning in the form of logical language. In logical semantics, the process of converting natural language into logical language involves logically deducing the meaning of the text, thereby linking the meaning of the language with the symbols and their meanings in the logical language.

[0004] Propositional logic is a key concept in the field of logical languages. It uses logical operators to combine atomic propositions to form formulas representing "propositions." A proposition is a declarative sentence with a unique truth value. For example, for the proposition "The vehicle's speed meets the speed limit," if the vehicle's speed exceeds the speed limit, the truth value of the proposition is false. Propositions can be divided into atomic propositions and compound propositions. Atomic propositions are indivisible, while compound propositions are formed by combining atomic propositions with operators.

[0005] When converting natural language text to logical language text, some concepts cannot be accurately converted. For example, the natural language text "The vehicle turned on the turn signal 3 seconds in advance" contains the temporal description "3 seconds." To describe temporal semantics, Linear Temporal Logic (LTL) was proposed. Temporal events can be represented using temporal operators. Metric Temporal Logic (MTL) is a further extension of LTL, enriching the temporal operators.

[0006] However, using logical and temporal operators to convert certain semantics still presents difficulties. For example, natural language text often involves descriptions of distance, such as "When you encounter the 500m exit sign, you should turn on your right turn signal." Because it's unclear how long it will take for a vehicle to reach the exit after encountering the 500m exit sign, temporal operators cannot directly describe this. Even using temporal operators to convert distance descriptions into logical language requires designing relatively complex propositions.

[0007] Summary of the Invention

[0008] The embodiments of the present application provide a data processing method, a behavior detection method, and related devices, which can enrich the expressive power of logical symbols and improve the accuracy of conversion from natural language text to logical language text.

[0009] In a first aspect, an embodiment of the present application provides a data processing method, comprising:

[0010] Obtaining a natural language text, wherein the natural language text includes a description of a physical location;

[0011] A logical language text for detecting the detected object is determined according to the natural 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.

[0012] 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 turns on the right turn signal within 500 meters of the 500-meter exit sign.

[0013] As can be seen, the description of physical locations expressed through logical operators enriches the expressive power of logical symbols and significantly improves the accuracy of the conversion from natural language text to logical language text. Physical location descriptions do not need to be converted into temporal operators or written into propositions, greatly reducing the complexity of propositions in logical language text.

[0014] Furthermore, because logical language typically has a unique truth value, it can avoid the ambiguity and vague semantics found in natural language, resulting in higher accuracy. Furthermore, the semantics described by logical language text can be understood by machines. When used to detect objects under test, this can significantly improve detection efficiency and accuracy.

[0015] Optionally, the logical language text may also contain propositions, which can be atomic propositions or compound propositions. Of course, compound propositions also contain atomic propositions.

[0016] 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. This application does not impose strict restrictions on the storage and transmission format of the text.

[0017] In one possible implementation of the first aspect, natural language text is used to indicate behavioral norms. Behavioral norms refer to rules that an object should follow. Because the behavior generated by an object is typically associated with the location where the behavior occurs, behavioral norms often involve descriptions of physical locations.

[0018] 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.

[0019] Alternatively, the code of conduct may be a set of behavioral rules defined by an individual or organization, for example, rules for motor vehicles (e.g., traffic regulations), traffic rules for non-motor vehicles, rules for pedestrians, and navigation rules for drones.

[0020] 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.

[0021] On the one hand, logical language text is more accurate in expressing meaning, thus improving the accuracy of behavior detection. On the other hand, logical language can be understood by machines, making it possible to use machines to detect whether the tested object complies with the behavioral specifications, improving the efficiency of behavior detection. Machine detection can also further improve the accuracy of behavior detection.

[0022] In a possible implementation of the first aspect, determining, based on the natural language text, a logical language text for detecting the detected object includes:

[0023] determining a normalized text based on the natural language text;

[0024] The logical language text used to detect the object to be detected is determined according to the normalized text.

[0025] Natural language text contains some ambiguous semantics and unclear descriptions. For example, "sufficient safety distance" and "turn signal on in advance" require clear information about what distance is sufficient and how long in advance to turn on the signal. Converting ambiguous semantics and unclear descriptions into unambiguous, semantically clear statements, i.e., standardized text, can improve the accuracy of the meaning. For example, converting "sufficient safety distance" into a time interval of 3 seconds and clarifying "turn signal on in advance" to "turn on 3 seconds in advance." This standardized text can be transformed into a clear logical language through language conversion, further improving the accuracy of the meaning.

[0026] In another possible implementation of the first aspect, the position operator includes at least one of the following operators:

[0027] 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 , always within the distance range from the first value p1 to the second value p2 There is a distance between the first value p1 and the second value p2 The first value and the second value are position parameters.

[0028] In this implementation, the position operator can describe events along a path starting from a given position.

[0029] 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 location is a ramp out of the highway.

[0030] As an example, the position operator can describe events at a certain distance along a path. For example, G pos(0,500) (Vehicle turns on the right turn signal) indicates whether the vehicle always turns on the turn signal within the distance range (0,500).

[0031] In another possible implementation of the first aspect, determining, based on the natural language text, a logical language text for detecting the detected object includes:

[0032] 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.

[0033] The standard 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 application of the behavioral norms, and the effective period of the behavioral norms. This standard indication information allows for more precise determination of the logical language text applicable to the scenario, improving conversion accuracy.

[0034] 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 about the road, such as the location of traffic regulation signs on the road and the scope of the signs.

[0035] In another possible implementation of the first aspect, the object under test may be located in the first scene, or the object under test is about to enter the first scene.

[0036] In another possible implementation of the first aspect, the specification indication information of the first scenario includes an effective distance range of the behavior specification in the first scenario, and the position operator includes a position parameter, and the position parameter is determined according to the effective distance range.

[0037] 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 instruction information is in the form of "Highway 500m exit sign: {position: d1}, {scope: [d1, d2]}", in this case, "When you encounter the 500m exit warning sign, you should 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.

[0038] For example, d1 = 1498, d2 = 1998, and the distance difference between d2 and d1 is 500. In this case, p1 can be -550 (considering that the location of the sign set on the map may not be exactly at the 500m position, an extra distance margin of 50m is taken into account here), and p2 can be 0 (i.e., p2 is used as the distance origin).

[0039] By standardizing instruction information, the logical language text can be automatically converted based on the scene information, which can improve the flexibility of logical language text conversion. When the scene information changes, the parameters in the logical language text can also be updated accordingly, greatly improving the efficiency of logical language text update.

[0040] In another possible implementation of the first aspect, the logical language text is used to detect the behavior of the detected object within a first distance range on the first road.

[0041] The first distance range includes a start point and an end point on a road coordinate system of the first road, a positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin;

[0042] The position operator includes a first value and a second value, wherein the first value is the distance between the starting 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.

[0043] Since the driving routes of vehicles on the road may be diverse, the above embodiment uses the road coordinate system to unify the distance standard and direction, which can improve the accuracy and consistency of the description.

[0044] 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.

[0045] Alternatively, the origin may be the effective starting point of the behavioral norm, such as the effective starting point or effective end point of a signboard. Alternatively, the origin may be the position of the signboard.

[0046] In another possible implementation of the first aspect, the logical language text further includes logical operators, wherein the logical operators may include one or more of negation, conjunction, disjunction, deduction, or equivalence.

[0047] In another possible implementation of the first aspect, the logical language text further includes a time sequence operator. The time sequence operator may include the next moment X, until U, always G, finally F, always occur between t1 and t2, It will happen between t1 and t2

[0048] The above implementation method can express the description of time through temporal operators, which enriches the expressive power of logical symbols and simplifies the design of propositions.

[0049] In a second aspect, an embodiment of the present application provides a behavior detection method, including:

[0050] Obtain terminal behavior information;

[0051] Whether the behavior of the terminal complies with the behavior specification is determined according to the behavior information of the terminal and a 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.

[0052] 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.

[0053] Optionally, since an action is usually associated with a physical location where the action is performed, the action information may include information indicating the location of the action.

[0054] In a possible implementation of the second aspect, the position operator includes at least one of the following operators:

[0055] 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 , always within the distance range from the first position to the second position There is a distance between the first position and the second position The first value and the second value are position parameters.

[0056] In another possible implementation of the second aspect, the method further includes:

[0057] When the behavior of the terminal does not comply with the behavior specification, a violation prompt message is sent to the terminal.

[0058] The violation prompt information indicates information about the violated behavioral rules and / or instructs how to comply with the behavioral rules.

[0059] For example, the violation prompt information may include information about the behavioral 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 comply with the behavioral norms. The information about the behavioral norms violated by the terminal may include, for example, the violated behavioral norms, the time, location, and image of the violation, and the penalty for the violation (penalty for the terminal controller).

[0060] For example, the server can perform real-time online or offline detection on the vehicle's behavior, and send a violation prompt message to the terminal if the terminal does not comply with the behavioral norms.

[0061] 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 behavioral norms, it outputs a violation prompt message.

[0062] In the above implementation, violation notifications can alert terminal users to violations, reducing the likelihood of recurring violations. For example, if the behavioral norm is a traffic rule and the terminal is a vehicle, violating traffic rules increases the likelihood of a traffic accident and property damage. Repeated violations, including violations of multiple traffic rules, can endanger the lives of passengers. Violation notifications can increase the binding force of rules, reduce the likelihood of accidents involving smart terminals, and improve personal and property safety.

[0063] In another possible implementation of the second aspect, the method further includes:

[0064] 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.

[0065] For example, a vehicle's adaptive cruise control system can accelerate or decelerate the vehicle. If the vehicle is speeding while the adaptive cruise control system is 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, allowing the human driver to take over the vehicle.

[0066] In another possible implementation of the second aspect, the method further includes:

[0067] A behavior detection result is output, where the behavior detection result indicates whether the behavior of the terminal complies with the behavior specification.

[0068] The behavior detection results can reflect the extent to which the terminal's behavior is constrained by regulations, which helps to remind the terminal controller to strengthen the standardization of operations.

[0069] 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.

[0070] In yet another possible implementation of the second aspect, the behavior information of the terminal further includes information about an intelligent driving function related to the behavior of the terminal; and the method further includes:

[0071] When 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.

[0072] In another possible implementation of the second aspect, the form of the logical language text is: conditional proposition → action proposition, where → represents derivation;

[0073] The determining, based on the behavior information and the logical language text of the terminal, whether the behavior of the terminal complies with the behavior specification includes:

[0074] Determine the logical values ​​of the conditional proposition and the behavioral proposition according to the behavioral information of the terminal,

[0075] If the conditional proposition is true and the logical value of the behavior proposition is true, determining that the behavior of the terminal complies with the behavior specification;

[0076] 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.

[0077] In yet another possible implementation of the second aspect, the logical language text indicates a behavior specification in the first scenario, and determining whether the behavior of the terminal complies with the behavior specification based on the behavior information of the terminal and the logical language text includes:

[0078] Determine whether the behavior of the terminal in the first scenario complies with the behavior specification in the first scenario according to the behavior information and the logical language text of the terminal.

[0079] In another possible implementation of the second aspect, the method further includes:

[0080] The logical language text is determined according to the natural language text and the specification indication information of the first scenario, where the natural language text is a behavior specification described in a natural language.

[0081] 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.

[0082] 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.

[0083] The first distance range includes a start point and an end point on a road coordinate system of the first road, a positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin;

[0084] The position operator includes a first value and a second value, wherein the first value is the distance between the starting 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.

[0085] 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.

[0086] Alternatively, the origin may be the effective starting point of the behavioral norm, such as the effective starting point or effective end point of a signboard. Alternatively, the origin may be the position of the signboard.

[0087] In another possible implementation of the second aspect, the logical language text further includes logical operators, wherein the logical operators may include one or more of negation, conjunction, disjunction, deduction, or equivalence.

[0088] In another possible implementation of the second aspect, the logical language text further includes a temporal operator. The temporal operators may include next time X, until U, always G, finally F, always occur between t1 and t2, It will happen between t1 and t2

[0089] The above implementation method can express the description of time through temporal operators, which enriches the expressive power of logical symbols and simplifies the design of propositions.

[0090] 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.

[0091] 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 perform operations such as acquisition, reception, and reading, and the processing module is used to perform functions such as determination, conversion, detection, or projection.

[0092] In another possible implementation of the third aspect, the acquisition module is configured to acquire a natural language text, where the natural language text includes a description of the physical location;

[0093] The processing module is used to determine a logical language text for detecting the object to be detected based on the natural language text, wherein the logical language text contains atomic propositions and position operators, and the position operators are used to represent events at physical locations.

[0094] Optionally, the logical language text may also contain propositions, which can be atomic propositions or compound propositions. Of course, compound propositions also contain atomic propositions.

[0095] 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. This application does not impose strict restrictions on the storage and transmission format of the text.

[0096] In a possible implementation of the third aspect, natural language text is used to indicate the behavioral norm.

[0097] 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.

[0098] The step of determining a logical language text for detecting the detected object based on the natural language text includes:

[0099] determining a normalized text based on the natural language text;

[0100] The logical language text used to detect the object to be detected is determined according to the normalized text.

[0101] In another possible implementation of the third aspect, the position operator includes at least one of the following operators:

[0102] 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 , always within the distance range from the first value p1 to the second value p2 There is a distance between the first value p1 and the second value p2 The first value and the second value are position parameters.

[0103] In yet another possible implementation manner of the third aspect, the processing module is configured to:

[0104] 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.

[0105] 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 about the road, such as the location of traffic regulation signs on the road and the scope of the signs.

[0106] 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.

[0107] In another possible implementation of the third aspect, the specification indication information of the first scenario includes an effective distance range of the behavior specification in the first scenario, and the position operator includes a position parameter, and the position parameter is determined according to the effective distance range.

[0108] In another possible implementation of the third aspect, the logical language text is used to detect the behavior of the detected object within a first distance range on the first road.

[0109] The first distance range includes a start point and an end point on a road coordinate system of the first road, a positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin;

[0110] The position operator includes a first value and a second value, wherein the first value is the distance between the starting 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.

[0111] 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.

[0112] Alternatively, the origin may be the effective starting point of the behavioral norm, such as the effective starting point or effective end point of a signboard. Alternatively, the origin may be the position of the signboard.

[0113] In another possible implementation of the third aspect, the logical language text further includes logical operators, wherein the logical operators may include one or more of negation, conjunction, disjunction, deduction, or equivalence.

[0114] In another possible implementation of the third aspect, the logical language text further includes a temporal operator. The temporal operators may include the next moment X, until U, always G, finally F, always occur between t1 and t2, It will happen between t1 and t2

[0115] 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 method of the second aspect.

[0116] 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 perform operations such as acquisition, reception, and reading, and the processing module is used to perform functions such as determination, conversion, detection, or projection.

[0117] In yet another possible implementation of the fourth aspect, the acquisition module is used to acquire behavior information of the terminal;

[0118] The processing module is used to determine whether the behavior of the terminal complies with the behavior specification based on 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.

[0119] Optionally, since an action is usually associated with a physical location where the action is performed, the action information may include information indicating the location of the action.

[0120] In a possible implementation of the fourth aspect, the position operator includes at least one of the following operators:

[0121] 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 , always within the distance range from the first position to the second position There is a distance between the first position and the second position The first value and the second value are position parameters.

[0122] 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.

[0123] In another possible implementation of the fourth aspect, the communication module is configured to send violation prompt information, wherein the violation prompt information may include information about the behavioral norms violated by the terminal and / or information prompting the user to comply with the behavioral norms.

[0124] Optionally, the communication module sends a violation prompt message when the behavior of the terminal does not comply with the behavior specification. If the behavior specification of the terminal does not violate the specification, the communication module may not send the violation prompt message.

[0125] In another possible implementation of the fourth aspect, the communication module is used to send a control switching instruction, and the control switching instruction is used to deactivate the intelligent driving function.

[0126] Optionally, the communication module sends a control switching instruction when the behavior of the terminal does not comply with the behavior specification; if the behavior specification of the terminal does not violate the regulations, the communication module may not send the control switching instruction.

[0127] In yet another possible implementation of the fourth aspect, the communication module 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.

[0128] In yet another possible implementation of the fourth aspect, the behavior information of the terminal further includes information about an intelligent driving function related to the behavior of the terminal; and the communication module is configured to:

[0129] When 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.

[0130] In another possible implementation of the fourth aspect, the form of the logical language text is: conditional proposition → action proposition, where → represents derivation;

[0131] The processing module is used to:

[0132] Determine the logical values ​​of the conditional proposition and the behavioral proposition according to the behavioral information of the terminal,

[0133] If the conditional proposition is true and the logical value of the behavior proposition is true, determining that the behavior of the terminal complies with the behavior specification;

[0134] 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.

[0135] In another possible implementation of the fourth aspect, the logical language text indicates a behavior specification in the first scenario. The processing module is configured to:

[0136] Determine whether the behavior of the terminal in the first scenario complies with the behavior specification in the first scenario according to the behavior information and the logical language text of the terminal.

[0137] In yet another possible implementation of the fourth aspect, the processing module is further configured to:

[0138] The logical language text is determined according to the natural language text and the specification indication information of the first scenario, where the natural language text is a behavior specification described in a natural language.

[0139] 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.

[0140] In another possible implementation of the fourth aspect, the logical language text is used to detect the behavior of the detected object within a first distance range on the first road.

[0141] The first distance range includes a start point and an end point on a road coordinate system of the first road, a positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin;

[0142] The position operator includes a first value and a second value, wherein the first value is the distance between the starting 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.

[0143] 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.

[0144] Alternatively, the origin may be the effective starting point of the behavioral norm, such as the effective starting point or effective end point of a signboard. Alternatively, the origin may be the position of the signboard.

[0145] In another possible implementation of the fourth aspect, the logical language text further includes logical operators, wherein the logical operators may include one or more of negation, conjunction, disjunction, deduction, or equivalence.

[0146] In another possible implementation of the fourth aspect, the logical language text further includes a time sequence operator. The time sequence operator may include the next moment X, until U, always G, finally F, always occur between t1 and t2, It will happen between t1 and t2

[0147] 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.

[0148] 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.

[0149] It should be noted that the processors described in the fifth and sixth aspects above may be processors specifically used to execute these methods (referred to as dedicated processors for ease of distinction), or may be processors that execute 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, the at least one processor may include both a dedicated processor and a general-purpose processor.

[0150] Optionally, the computer program may be stored in a memory. For example, 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 provided on separate devices. The embodiments of the present application do not limit the type of memory or the configuration of the memory and the processor.

[0151] In a possible implementation, the at least one memory is located outside the data processing device (or detection device).

[0152] In another possible implementation, the at least one memory is located within the data processing device (or detection device).

[0153] 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).

[0154] In this 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.

[0155] 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.

[0156] 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 computer program product implements the method described in the first aspect or any possible embodiment of the first aspect, or implements the method described in the second aspect or any possible embodiment of the second aspect.

[0157] Optionally, the computer program product may be a software installation package. When the aforementioned method is required, the computer program product may be downloaded and executed on a computing device.

[0158] In a ninth aspect, an embodiment of the present application provides a terminal, which includes the detection device described in the fourth aspect or any possible implementation method of the fourth aspect, or includes the detection device described in the sixth aspect.

[0159] Optionally, the terminal can be an intelligent terminal or transportation tool 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.

[0160] In a tenth aspect, an embodiment of the present application provides a server, which includes the data processing device described in the third aspect or any possible implementation method of the third aspect, or includes the data processing device described in the fourth aspect.

[0161] In the eleventh aspect, an embodiment of the present application provides a server, which includes the detection device described in the fourth aspect or any possible implementation method of the fourth aspect, or includes the detection device described in the sixth aspect.

[0162] Among the technical solutions provided in the second to eleventh aspects of this 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

[0163] The following is a brief introduction to the drawings required for describing the embodiments.

[0164] FIG1 is a schematic diagram of a behavior detection system provided in an embodiment of the present application;

[0165] FIG2 is a schematic diagram of a possible data processing method provided in an embodiment of the present application;

[0166] FIG3 is a schematic diagram of a road provided in an embodiment of the present application;

[0167] FIG4 is a schematic diagram of another road provided in an embodiment of the present application;

[0168] FIG5 is a schematic diagram of a possible behavior detection method provided in an embodiment of the present application;

[0169] FIG6 is a schematic diagram of an operation scenario of a behavior detection method provided in an embodiment of the present application;

[0170] FIG7 is a schematic diagram of a standardized behavior reminder provided by an embodiment of the present application;

[0171] FIG8 is a schematic structural diagram of a data processing device provided in an embodiment of the present application;

[0172] FIG9 is a schematic structural diagram of a behavior detection device provided in an embodiment of the present application;

[0173] FIG10 is a schematic structural diagram of a processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0174] For ease of understanding, the following examples provide some explanations of concepts related to the embodiments of the present application for reference.

[0175] 1. Terminal

[0176] 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, drone, 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 machinery, etc.) or an industrial robot arm.

[0177] 2. Code of Conduct

[0178] Codes of conduct are rules set to constrain behavior.

[0179] For example, traffic laws and regulations are established to maintain road traffic order, prevent and reduce traffic accidents, and protect personal and property safety. Traffic laws and regulations record different levels of violations and are used to constrain vehicle drivers, pedestrians, passengers, and entities and individuals involved in road traffic activities.

[0180] The traffic regulations involved in the embodiments of this application are merely exemplary. For example, different countries and regions may follow different traffic regulations. For another example, different road sections may be subject to different traffic regulations. For another example, behavioral norms applicable to the subject may be pre-set or pre-defined.

[0181] 3. Proposition

[0182] A proposition is the semantic meaning of a declarative sentence and can be judged as true or false. For example, vehicle A's current speed meets the speed limit. For the proposition "Vehicle A's current speed is greater than the maximum speed limit," its truth value is false. For the proposition "Vehicle A's current speed is less than or equal to the maximum speed limit," its truth value is true.

[0183] 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.

[0184] 4. Logical Operators

[0185] Logical operators, or connectives, connect propositions into more complex propositions. See Table 1. Logical operators include but are not limited to the operators shown in Table 1.

[0186] Table 1 Logical operators and their meanings

[0187] It should be noted that the operators listed in the embodiments of this application are some possible operator forms listed to express the meaning of the operation. During the specific implementation process, operators with corresponding meanings can be set as needed or according to specific rules, and are not limited to the operator forms listed in the embodiments of this application. For example, in some scenarios, "&" is also used to represent conjunction. For example, in some scenarios, "and" is used to represent conjunction.

[0188] 5. Timing Operators

[0189] Temporal operators are used to represent events in time. For example, linear temporal logic (LTL) introduces additional operators based on propositions and logical connectives. Furthermore, metric temporal logic (MTL) further expands LTL, enriching its temporal operators.

[0190] As a possible example, the timing operators include but are not limited to the operators shown in Table 2.

[0191] Table 2 Timing operators and their meanings

[0192] The above exemplary description of the concepts can be applied hereinafter.

[0193] When converting natural language text to logical language text, some descriptions involving physical locations cannot be accurately converted. For example, "When you encounter the 500m exit sign, turn on your right turn signal." Since it's unclear how long it will take for a vehicle to reach the exit after the 500m sign, temporal operators cannot be used to directly describe this. Even using temporal operators to convert distance descriptions into logical language requires designing complex propositions.

[0194] In light of this, embodiments of the present application provide positional operators, data processing methods, behavior detection methods, and related devices. These embodiments employ positional operators to represent descriptions of physical locations in natural language, thereby enriching the expressive power of logical symbols and improving the accuracy of converting natural language text to logical language text. Furthermore, the natural language text can be text indicating behavioral norms. The logical language text converted from the natural language text can efficiently detect whether a terminal's behavior complies with behavioral norms, improving detection efficiency and accuracy.

[0195] The following first introduces the position operator provided in the embodiment of the present application.

[0196] Position operators, also known as distance operators, can represent events on a path starting from a given location. For example, position operators can 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] 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, where the proposition onLaneType(offRamp) indicates whether the lane type of the object being measured 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.

[0199] As another example, the location operator can represent events within a certain distance range on a path. For example, Gpos(0,500) (The subject turns on the right turn signal) represents the proposition: within the distance range (0,500), whether the subject always turns on the turn signal.

[0200] It should be noted that the values ​​of the starting point and 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 starting point of the investigation (or the starting point of the distance range) as the origin. If the end point of the investigation is used as the origin, it can also be expressed as (-500, 0).

[0201] The above logical operators can be used in logical language texts. In this case, the description of physical locations in other languages ​​can be expressed using one or more logical operators shown in Table 3, significantly improving the semantic accuracy of the logical language texts.

[0202] Optionally, the above logical operators can be used in various scenarios, such as converting text in other languages ​​into text in a logical language, or expressing rules of various algorithms.

[0203] As an example of a positional operator, a positional operator can be used for language conversion. As a possible implementation, a data processing device can convert natural language text into logical language text. The natural language text contains a description of a physical location, and the logical language text contains a positional operator, which 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 accuracy of the conversion from natural language text to logical language text.

[0204] 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 being tested complies with the behavioral norms, thereby improving detection efficiency and accuracy.

[0205] The following will introduce the behavior detection system with reference to the accompanying drawings and taking the case where the object to be detected is 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 solutions of this application and do not constitute a limitation on the technical solutions provided in 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 in this application are also applicable to similar technical problems.

[0206] Please refer to Figure 1, which is a schematic diagram of a behavior detection system provided by an embodiment of the present application. The behavior detection system includes a vehicle 101. Furthermore, it may also include a server 102 and / or a roadside device 103. Among them:

[0207] Vehicle 101 has the ability to move. For example, vehicle 101 can move forward, turn, reverse, open doors, turn on lights, and stop. It should be noted that the term "behavior" in the present embodiment is broadly defined, encompassing one or more states and state transitions. For example, "the vehicle's turn signal is on" can be considered a vehicle behavior; "the vehicle's speed is 50 kilometers per hour (km / h)" can also be considered a vehicle behavior.

[0208] In one embodiment, vehicle 101 can implement the methods provided in the embodiments of the present application. For example, vehicle 101 can detect whether its own behavior complies with behavioral norms. For another example, vehicle 101 can obtain the behavior of other measured objects and detect whether the behavior of other measured objects complies with behavioral norms. Referring to Figure 1, vehicle 101 can collect information about vehicle 104 in front of it through cameras, radar, etc., and detect whether the behavior of vehicle 104 complies with behavioral norms.

[0209] Optionally, the 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 the 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.

[0210] 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 .

[0211] 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. Alternatively, 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 vehicle's behavior information to the server 102.

[0212] The roadside device 103 is a device installed on the side of a road (or at an intersection, or on the side of a road, 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.).

[0213] 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. 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 can 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. 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 point deduction.

[0214] It should be noted that the roadside device 103 can be a standalone 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, utility poles, or traffic signs.

[0215] The roadside device 103 can communicate with the vehicle 101 to obtain behavior information of the vehicle 101 and / or send information to the vehicle 101.

[0216] As a possible solution, the roadside device 103 can be used to implement the method provided in the embodiment of the present application. For example, 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.

[0217] When establishing a communication connection 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 and wireless links. For example, the connection medium may be a wireless link, and the wireless link adopts a short-range connection technology, such as Spark Link, 802.11b / g, Bluetooth, Zigbee, RFID, UWB, short-range wireless communication (such as vehicle-mounted short-range wireless communication), or vehicle-to-everything (V2X) technology. For another example, the wireless link adopts a long-range connection technology, such as GSM (Global System for Mobile Communications), GPRS (General Packet Radio Service), UMTS (Universal Mobile Telecommunications System), LTE, or 5G wireless access type technology.

[0218] The following describes the method of the embodiment of the present application in conjunction with the accompanying drawings. For ease of understanding, the following describes each embodiment separately through multiple figures, which does not limit the embodiments to be independent, that is, the embodiments can be combined.

[0219] Please refer to Figure 2, which 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, such as the behavior detection system shown in Figure 1. It should be understood that for the convenience of description, the data processing method is described in the order of S201 to S202, and is not intended to be limited to execution in the above order. The embodiment of the present application does not limit the order of execution of one or more steps above, the time of execution, the number of executions, etc. S201 to step S202 are as follows:

[0220] Step S201: The data processing device obtains natural language text.

[0221] A data processing device is a device capable of processing data. For example, the data processing device may be vehicle 101, server 102, or roadside device 103, as shown in Figure 1. Furthermore, the data processing device may be included in a device such as vehicle 101, server 102, or roadside device 103.

[0222] Natural language text refers to text in natural language form, which includes but is not limited to character strings, formulas, sentences, paragraphs, or complete documents.

[0223] Natural language text contains descriptions of physical locations. For example, in the sentence "Electric vehicles should be pushed on the sidewalk," the phrase "on the sidewalk" is a description of location. Another example is "After you reach the 500m exit sign, you should turn on your right turn signal." The phrase "after you reach the 500m exit sign" is also a description of location.

[0224] In one possible implementation, natural language text is used to indicate behavioral norms. Behavioral norms refer to the rules that an object should follow. As can be understood, the behavior an object performs is often associated with the location where the behavior occurs, so behavioral norms often involve descriptions of physical locations.

[0225] Optionally, the behavioral norms indicated by the natural language text may be predefined or pre-specified. As a possible implementation, the behavioral norms may be pre-defined by industry standards, and the industry standards are not limited here. For another example, the behavioral norms may also be pre-specified by laws or standards, and the specific laws or standards are not limited here. For another example, the behavioral norms may be behavioral rules defined by individuals or organizations. Exemplarily, the behavioral norms 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.

[0226] As an example of a behavioral code, the natural language text reads, "When exiting a highway, pay attention to the exit warning signs and follow the steps below: After encountering the 500m exit warning sign, turn on the right turn signal, prepare to enter the deceleration lane, and do not overtake." In other words, the natural language text indicates the vehicle's behavioral code: between the 500m exit sign and the highway exit, the vehicle must turn on the right turn signal and not overtake.

[0227] 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 middle of 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.

[0228] Step S202: The data processing device determines the logical language text based on the natural language text.

[0229] Logical language text contains positional operators, which are used to represent events at physical locations. Positional operators can include one or more of the operators shown in Table 3. In other words, descriptions of physical locations in natural language text can be represented using positional operators. Combined with positional operators, natural language text can be more accurately converted into logical language text.

[0230] 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: "G pos(0,500) (the vehicle turns on the right turn signal)". Combined with Table 3, it can be seen that G pos(0,500) "Always within a certain distance range" means "always within a certain distance range." 0 represents the starting point (i.e., the 500-meter exit sign), and 500 represents the ending point (i.e., the exit). Therefore, the above logical language text can express the following semantics: whether the vehicle has turned on the right turn signal within 500 meters of the 500-meter exit sign.

[0231] In one 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 behavioral specifications. 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.

[0232] 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 (Vehicle turns on 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 "turn on the right turn signal when encountering the 500m exit sign".

[0233] As a possible implementation, the logical language text further includes logical operators or sequential operators. The logical operators may include one or more of the operators shown in Table 1. The sequential operators may include one or more of the operators shown in Table 2. Specific examples are provided below and are not listed here.

[0234] In some scenarios, natural language text contains ambiguous semantics and unclear descriptions, such as sufficient safety distance and turning on the turn signal in advance.

[0235] As a possible solution, during the process of determining the logical language text, the data processing device can determine a standardized text based on the natural language text, and then determine the logical language text based on the standardized text. Standardized text refers to unambiguous, semantically clear statements. For example, "sufficient safety distance" can be converted to a 3-second time interval, and "opening in advance" can be clarified as "opening 3 seconds in advance." Through language conversion, this standardized text can almost directly correspond to the clear logical language text, further improving the accuracy of the meaning.

[0236] The following uses the example of a traffic rule (referred to as a traffic rule) as an example to illustrate a possible process for determining a logical language text. Table 4 shows a possible natural language text, a standardized text, and a logical language text provided by an embodiment of the present application.

[0237] Table 4

[0238] As can be seen, standardized traffic rules have more explicit semantics than natural language traffic rules. Logical language traffic rules contain propositions and positional operators. Positional descriptions in natural language text are identified by positional operators in logical language traffic rules.

[0239] Specifically, the proposition onLaneType(DecLane) is used to determine (or judge) whether the vehicle's current lane type is a deceleration lane, and the proposition onLaneType(offRamp) is used to determine whether the vehicle's current lane type is a highway exit ramp. Therefore, onLaneType(DecLane)∧X onLaneType(offRamp) together indicate the determination of whether the vehicle's current lane type is a deceleration lane and whether the vehicle's next lane type will be a highway exit ramp. This expresses the vehicle's state at the moment it is about to exit the ramp. The proposition actOvertake(Ego,Obj) indicates the determination of whether the vehicle is currently overtaking. Therefore, ~actOvertake(Ego,Obj)&onLaneType(DecLane) indicates the determination of whether the vehicle is currently not overtaking and whether the vehicle is in the deceleration lane.

[0240] After combining the distance operator, G pos(-500,0)(~actOvertake(Ego,Obj)&onLaneType(DecLane)) indicates that, within the 500-meter range from the current position, the vehicle is always not overtaking and is always in the deceleration lane. When the vehicle meets the behavioral 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 vehicle's lane type is a deceleration lane and the next lane type is an exit ramp, within the 500-meter range, the vehicle is always not overtaking and is always in the deceleration lane.

[0241] In one possible implementation, the deceleration lane can be replaced by the right lane. In this case, the proposition "onLaneType(DecLane)" can be replaced with "OnLaneType(RightMostLane)". In some scenarios, the right lane within 500 meters of the exit is the deceleration lane.

[0242] In another possible implementation, the behavioral specification requires that vehicles should drive in the deceleration lane or the right lane within 500 meters of an exit. In this case, the proposition "onLaneType(DecLane)" can also be replaced with "(OnLaneType(DecLane)|OnLaneType(RightMostLane))".

[0243] In one possible implementation, the data processing device may use a language processing model to convert ambiguous and unclear descriptions into unambiguous, semantically clear sentences. Optionally, the language processing module may be obtained through reinforcement learning, deep learning, or convolutional neural networks.

[0244] In one possible implementation, a data processing device converts natural language text into standardized text based on user input. For example, the data processing device may provide feedback to the user regarding an unclear sentence and receive a clear sentence from the user. The clear sentence may be converted by the user after analysis and verification.

[0245] Optionally, the canonical language text may also be described in natural language. This section describes semantically ambiguous natural language text, so semantically clarified natural language text is referred to as canonical language text. In specific implementations, there may be a "determining canonical text" step or no "determining canonical text." For example, semantic clarification can be achieved during the process of determining the logical language text. In other scenarios, the meaning of the natural language text may already be clear and unambiguous, eliminating the need for conversion to canonical language text.

[0246] In some scenarios, behavioral norms can be context-specific. For example, "When you encounter the 500m exit sign, turn on your right turn signal" requires contextual information to indicate the location of the 500m exit sign. Another example is a speed-related norm that is contextually related to the speed limit of a road. Another example is a norm regarding crossing a crosswalk that is contextually related to roads with crosswalks.

[0247] 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. For example, 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.

[0248] In one possible implementation, a data processing device determines a logical language text based on 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 can detect whether the behavior of the subject being detected complies with the specification. In this case, the subject being detected can be in the first scene or about to enter the first scene.

[0249] The information related to behavioral norms in the first scenario may be static or dynamic.

[0250] Taking the first scenario of a road as an example, the road regulatory information can be static information of the road, such as the location of the regulatory sign on the road, the effective range of the regulatory sign, etc. The effective range of the regulatory sign includes a distance range (or effective distance range) and a time range (or effective time period).

[0251] As a possible implementation, the regulatory indication information in the first scenario may be obtained from a map of the first scenario. For example, the first scenario may be a road, and the high-precision map and / or digital road network may contain static information about the road, such as the location of traffic regulation signs on the road and the scope of the signs.

[0252] The following describes possible standard indication information using a digital road network as an example. Referring to Figure 3, which is a schematic diagram of a road provided in an embodiment of the present application, for ease of description, this road is represented below as Road 1. Road 1 includes two lanes: Lane 1 and Lane 2. In a digital road network, the standard indication information for Road 1 may include the information shown in Table 5.

[0253] Table 5

[0254] Combining Figure 3 and Table 5, we can see that the speed limit in Lane 1 is 60 kilometers per hour (km / h) to 120 km / h. Lane 2 has two signs. The "1 km from exit sign" is active at all times, with a range from road coordinates s = 495 to s = 1498. The "500 m from exit sign" is active at all times, with a range from road coordinates s = 1498 to s = 1998.

[0255] As a possible implementation, the data processing device generates a logical language text from the natural language text and the standard instruction 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.

[0256] As an example of obtaining a logical language text based on the specification indication information, the specification indication information of the first scenario includes the effective range of the behavior specification in the first scenario. The position operator of the logical language text includes a position parameter, which is determined based on the effective range.

[0257] As an example, if the speed limit on lane 1 of road 1 is 60 to 120 km / h, the position parameter in the position operator can be determined by the distance range of the speed limit of lane 1. For example, if the distance range of the speed limit of road 1 is 800 meters, 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, with the end point of the speed limit distance range as the origin, p1 = -800 and p2 = 0. For another example, with the starting point of the speed limit distance range as the origin, p1 = 0 and p2 = 800.

[0258] As an example of obtaining a logical language text based on standard instructions, the parameters of the propositions in the logical language text can also be determined based on the standard instructions. For example, v1 and v2 in the above logical statement can be determined based on the speed limit range of road 1 in the digital road network, such as v1 = 60 and v3 = 120.

[0259] The above logic statement can be used to detect whether vehicles on Road 1 are speeding. Therefore, by combining the regulatory information in the scene, the logical language text applicable to a certain scene can be determined more flexibly and accurately to detect whether the object under test in the scene complies with the regulations.

[0260] In some scenarios, a margin of error can be set when determining the position parameters in the logical language text using the standard indication information. In other words, the specifications indicated by the logical language text are more relaxed than those indicated by the standard indication information. For example, the data processing device can set some relaxation on the distance range to make the behavior detection process more reasonable and improve the user experience. In some scenarios, the margin of error can also compensate for violations caused by the inaccurate positioning of some signs, thereby improving the user experience of the terminal.

[0261] As another example of obtaining a logical language text based on standard instruction information, a standard instruction information is in the form of "Highway 500m exit sign: {position: d1}, {scope: (d1, d2)}", in which case, "When you encounter the 500m exit warning sign, you should 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. 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.

[0262] In some scenarios, when determining the position parameters using d1 and d2, a margin can be set. For example, if d1 = 1498 and d2 = 1998, the distance difference between d2 and d1 is 500. For example, if p2 is the origin, p2 is 0 and p1 can be -550 (taking into account a 50m distance margin).

[0263] The following uses traffic rules (referred to as traffic rules) as an example to illustrate a conversion process combining the specification indication information. Table 6 shows a possible natural language text, normalized text, and logical language text provided by an embodiment of the present application.

[0264] Table 6

[0265] In the logical language traffic rules shown in Table 6, the values ​​of p1 and p2 can be configured in conjunction with the digital road network. In this case, logical language traffic rules applicable to different roads can be generated based on static information about different roads to detect the behavior of the subject on different roads.

[0266] In Table 6, the proposition underTrafficSign(Ego, OffRamp) indicates whether the vehicle (Ego represents the vehicle itself) 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 through 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.

[0267] The distance range has been mentioned several times above, and the following is an introduction to the distance range.

[0268] As one possible example, a distance range refers to the distance along a path. For example, if the path is a road, the distance range may include the start and end points in the road coordinate system. The road coordinate system can 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.

[0269] Please refer to Figure 4, which 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 shown as the arrows in Figure 4. The normal direction of travel is the positive direction of the road.

[0270] 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.

[0271] 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 can also be determined according to the road coordinate system of the road.

[0272] Exemplarily, the logical language text is used to detect the behavior of a detected object within a first distance range on a first road. In conjunction with FIG4 , the logical language text is used to detect the behavior of a vehicle between a vehicle starting point and a vehicle end point. That is, the first distance range may be the distance between the vehicle starting point and the vehicle end point.

[0273] The position operator of the logical language text contains 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 direction of travel of the first road, and the second value is the distance between the end point of the vehicle and the origin along the normal direction of travel of the first road.

[0274] 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 distance traveled by the vehicle, but is equal to the projection distance of the vehicle's route onto the road coordinate system.

[0275] The origin can be predefined. For example, taking the origin as the vehicle endpoint, the second value is 0 (p2=0), and the first value is the distance between the vehicle start point and the vehicle end point in the road coordinate system, that is, -500 (the start point is in the negative direction of the end point).

[0276] Optionally, the origin is the current position of the measured object or the projection of the current position of the measured object on the road coordinate system. Alternatively, the origin can be the starting point of the behavioral regulation, such as the starting point or end point of a sign. Alternatively, the origin can be the location of the sign.

[0277] Please refer to Figure 5, which is a schematic diagram of a possible behavior detection method provided by an embodiment of the present application. Optionally, the method can be applied to the aforementioned system, such as the behavior detection system shown in Figure 1. It should be understood that for the convenience of description, the behavior detection method is described here in the order of S501 to S502, and is not intended to be limited to execution in the above order. The embodiment of the present application does not limit the order of execution of one or more steps above, the time of execution, the number of executions, etc. S501 to step S502 are as follows:

[0278] Step S501: The behavior detection device obtains behavior information of the terminal.

[0279] The behavior detection device is a device with computing capabilities. Optionally, the behavior detection device is a standalone device, such as a terminal (e.g., vehicle 101 shown in FIG1 ), a server, or a roadside device. Alternatively, the behavior detection device can be a module in a standalone device, such as a processor or controller in a terminal.

[0280] Behavior information refers to information describing a behavior, which can be understood as the context or background of the behavior. Behavior information includes, but is not limited to, the name of the behavior, the type of behavior, and the context of the behavior (such as the time, location, region, or terrain of the behavior). Behavior information can be formatted or unformatted data, such as video data, image data, and terminal driving parameter data (such as speed, lane, route, etc.).

[0281] 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:

[0282] Case 1: The behavior detection device is a terminal or is included in a terminal and can collect behavior information of the terminal.

[0283] 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.

[0284] For example, a terminal may include a visual sensor (such as a camera, radar, or lidar) that captures images or point clouds, which can be used to determine the terminal's behavior. In other words, the data collected by the visual sensor can be used as behavioral information.

[0285] Case 2: The behavior detection device is located outside the terminal and can collect the terminal's behavior information.

[0286] Please refer to Figure 6, which is a schematic diagram of an operational scenario for 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 a roadside device 103. Roadside device 103 may include sensors that can record terminal behavior. The data collected by the sensors may serve as behavior information. The sensors may include, but are not limited to, speed sensors, cameras, radar, or lidar.

[0287] 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 capture 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.

[0288] Case 3: The behavior information of the terminal is provided to the behavior detection device by the terminal or other equipment.

[0289] Taking Figure 6 as an example, the behavior detection device can be server 102 or included in server 102. The terminal's behavior information can be provided to server 102 by roadside device 103. Alternatively, it can be provided to server 102 by the terminal itself (e.g., vehicle 101). Alternatively, it can be provided to server 102 by other terminals, such as other vehicles around vehicle 101.

[0290] The above cases are illustrative cases made to facilitate understanding of the concept of "acquisition". During 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 uses a mobile phone or a driving recorder to shoot the behavior information of the terminal, and uploads the behavior information of the terminal to the behavior detection device through the user interface.

[0291] 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.

[0292] Logical language text contains positional operators, which are used to represent events at physical locations.

[0293] For example, the logic language text can indicate the behavior specification. For example, for the specification "speed limit 80 on road L2", the logic language text is expressed as: G pos(p1,p2) WithinSpeedLimit(Ego,0,80). The proposition WithinSpeedLimit(Ego,0,80) indicates whether the vehicle's speed is within the 80 km / h speed limit (where 0 represents the minimum speed and 80 represents the maximum speed). p1 is the starting point of the speed limit on Road 2, and p2 is the ending point of the speed limit on Road 2.

[0294] 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 norm; if the logic language is false, it is determined that the terminal does not follow the behavior norm. For example, using G pos(p1,p2) WithinSpeedLimit(Ego,0,80) is used to detect the vehicle's behavior. If the logical value of the logic language text is true, it means that the terminal is not speeding on L2; conversely, if the logical value of the logic language text is false, it means that the terminal is speeding on L2.

[0295] 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: 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.

[0296] As a possible implementation, the logical language text indicates the behavior norm 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 norm in the first scenario based on the terminal's behavior information and the logical language text.

[0297] Optionally, the logical language text may be obtained according to specification indication information. For related descriptions, please refer to the description in the embodiment shown in FIG2 .

[0298] After the behavior detection, the behavior detection device can output the behavior detection results. The behavior detection results can indicate whether the terminal's behavior complies with the behavioral norms. Furthermore, the behavior detection results can also include the behavior that does not comply with the behavioral norms (hereinafter referred to as the violation), the terminal number, the time the violation occurred, the road section where the violation occurred, the degree of violation, and the penalty measures for the violation (such as point deductions, fines, etc.).

[0299] For example, a behavior detection result may be as shown in Table 7, including the behavior sequence number, the terminal number that generated the behavior, the time of occurrence, the road section where the behavior occurred, and the corresponding penalty measures. This behavior detection result can indicate the specific circumstances in which the terminal did not follow the behavioral regulations on Highway A, reflecting the extent to which the terminal's behavior was constrained by the regulations, and helping to remind the terminal controller to strengthen the standardization of operations.

[0300] Table 7

[0301] It should be understood that the behavior number, terminal number, section name, and penalty measures shown in Table 7 are only examples. For example, the amounts represented by x, y, z, and k can be designed according to specific circumstances.

[0302] 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 road section, the terminal has speed control problems during the driving process of the road section. Furthermore, the behavior detection device can provide feedback or update the intelligent driving function that performs the driving operation.

[0303] 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's management center, and the autonomous driving server, etc.), etc.

[0304] The violation prompt information indicates the information of the violated behavioral norm and / or instructs how to follow the behavioral norm. In other words, the violation prompt information can include information of the behavioral norm violated by the terminal, and the violation prompt information can be used to prompt the terminal (or the user of the terminal) to follow the behavioral norm.

[0305] The information on the behavioral norms violated by the terminal includes, for example, the violated behavioral norms, the time, location, and pictures of the violation, and the punishment for the violation (punishment for the controller of the terminal).

[0306] 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).

[0307] As another possible example, when the terminal has the corresponding hardware conditions, the terminal can trigger voice, light, electricity, vibration prompts, or display screens, etc., to output violation prompt information. For example, the terminal may include modules that control outputs such as a display processor, an audio processor, and a vibration processor (or the terminal is connected to a module that controls outputs), and the terminal can output reminder signals to the user through the above modules. Taking the display processor as an example, Figure 7 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 illegal behavior (i.e., "speeding"), illegal location ("Section A"), and information that prompts the user to follow behavioral norms (i.e., "reduce speed").

[0308] As another possible example, the vehicle's behavior may be determined by an intelligent driving system or intelligent driving function. When the terminal is controlled by the intelligent driving function, if a violation is detected, a violation prompt message may be output to the intelligent driving system, allowing the intelligent driving function to update its driving decisions and reduce the duration of the violation.

[0309] In some possible implementations, if the illegal behavior of the terminal is caused by an intelligent driving function, a control switching instruction is sent, where the control switching instruction is used to deactivate the intelligent driving function.

[0310] For example, a vehicle's adaptive cruise control system can accelerate or decelerate the vehicle. If the vehicle is speeding while the adaptive cruise control system is 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, allowing the human driver to take over the vehicle.

[0311] As one possible solution, the terminal's behavior information also includes information about intelligent driving functions related to the terminal's behavior. If the terminal's behavior does not comply with behavioral specifications, functional feedback information is output, indicating the intelligent driving function and the behavioral specifications violated by the terminal. The functional feedback information is used to update the intelligent driving function.

[0312] In the embodiment shown in FIG5 , 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 accuracy.

[0313] Some devices for implementing the above methods are introduced below.

[0314] It should be understood that the division of the units in the device provided in the embodiments of the present application is only a division of logical functions, and in actual implementation, they can be fully or partially integrated into one physical entity, or they 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 to 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 within 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. The hardware circuit can be understood as one or more processors. For example, in one implementation, the hardware circuit is an application-specific integrated circuit (ASIC), which realizes the functions of some or all of the above units by designing the logical relationship of the components in the circuit. For another example, in another implementation, the hardware circuit can be implemented by a programmable logic device (PLD). Taking a field programmable gate array (FPGA) as an example, it can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by configuring the configuration file, thereby realizing the functions of some or all of the above units. All units of the above devices can be implemented in the form of software called by the processor, or in the form of hardware circuits, or in part by the form of software called by the processor, and the rest by hardware circuits.

[0315] 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.

[0316] In addition, the various units in the above devices can be fully or partially 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 the various units of the device. The type of the at least one processor can be different, for example, including a CPU and FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.

[0317] Several possible arrangements are listed below.

[0318] Please refer to Figure 8, which is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. Data processing device 80 includes an acquisition module 801 and a processing module 802. Acquisition module 801 can be used to implement the aforementioned acquisition and reception functions. In some possible implementation scenarios, acquisition module 801 can also be replaced by a communication interface module and / or a transceiver module. Processing module 802 can be used to perform operations such as determination, calculation, generation, and conversion, and / or to support other processes in the aforementioned embodiments.

[0319] Exemplarily, the data processing device 80 is used to implement the aforementioned data processing method, such as the data processing method in the embodiment shown in FIG. 2 .

[0320] In a possible implementation, the acquisition module 801 is configured to acquire a natural language text, wherein the natural language text includes a description of a physical location;

[0321] The processing module 802 is used to determine a logical language text for detecting the detected object based on the natural language text, where the logical language text contains atomic propositions and position operators, and the position operators are used to represent events at physical locations.

[0322] Optionally, the logical language text may also contain propositions, which can be atomic propositions or compound propositions. Of course, compound propositions also contain atomic propositions.

[0323] 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. This application does not impose strict restrictions on the storage and transmission format of the text.

[0324] In one possible implementation, natural language text is used to indicate the behavioral norms.

[0325] In another possible implementation, the logical language text is used to determine whether the detected object complies with the behavioral specification.

[0326] The step of determining a logical language text for detecting the detected object based on the natural language text includes:

[0327] determining a normalized text based on the natural language text;

[0328] The logical language text used to detect the object to be detected is determined based on the normalized text.

[0329] In another possible implementation, the position operator includes at least one of the following operators:

[0330] 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 , always within the distance range from the first value p1 to the second value p2 There is a distance between the first value p1 and the second value p2 The first value and the second value are position parameters.

[0331] In yet another possible implementation, the processing module 802 is configured to:

[0332] 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.

[0333] 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 about the road, such as the location of traffic regulation signs on the road and the scope of the signs.

[0334] In another possible implementation, the object under test may be located in the first scene, or the object under test is about to enter the first scene.

[0335] 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, and the position operator includes a position parameter, which is determined according to the effective distance range.

[0336] In another possible implementation, the logical language text is used to detect the behavior of the detected object within a first distance range on a first road.

[0337] The first distance range includes a start point and an end point on a road coordinate system of the first road, a positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin;

[0338] The position operator includes a first value and a second value, wherein the first value is the distance between the starting 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.

[0339] 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.

[0340] Alternatively, the origin may be the effective starting point of the behavioral norm, such as the effective starting point or effective end point of a signboard. Alternatively, the origin may be the position of the signboard.

[0341] 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, deduction, or equivalence.

[0342] In another possible implementation, the logical language text further includes a time sequence operator. The time sequence operator may include the next moment X, until U, always G, finally F, always occur between t1 and t2, It will happen between t1 and t2

[0343] Please refer to Figure 9, which is a schematic diagram of the structure of a behavior detection device provided in an embodiment of the present application. Behavior detection device 90 includes an acquisition module 901 and a processing module 902. Optionally, it also includes a communication module 903. Acquisition module 901 can be used to implement the aforementioned acquisition, receiving, and reading operations. Communication module 903 implements communication functions, such as receiving and sending information.

[0344] In some possible implementation scenarios, the acquisition module 901 and the communication module 903 may also be a single 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 determination, conversion, detection, or projection, and / or to support other processes of the aforementioned embodiments.

[0345] Exemplarily, the behavior detection device 90 is used to implement the aforementioned behavior detection method, such as the data processing method in the embodiment shown in FIG6 .

[0346] In another possible implementation, the acquisition module 901 is configured to acquire behavior information of the terminal;

[0347] The processing module 902 is configured to determine whether the behavior of the terminal complies with the behavior specification based on the behavior information of the terminal and a 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.

[0348] Optionally, since an action is usually associated with a physical location where the action is performed, the action information may include information indicating the location of the action.

[0349] In one possible implementation, the position operator includes at least one of the following operators:

[0350] 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 , always within the distance range from the first position to the second position There is a distance between the first position and the second position The first value and the second value are position parameters.

[0351] 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.

[0352] In another possible embodiment, the communication module 903 is configured to send a violation prompt message. The violation prompt message indicates information about the violated behavioral norm and / or instructs how to comply with 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 comply with the behavioral norm.

[0353] In another possible implementation, the communication module 903 is configured to send a control switching instruction, where the control switching instruction is used to deactivate the intelligent driving function.

[0354] Optionally, the communication module 903 sends a control switching instruction when the behavior of the terminal does not comply with the behavior specification. If the behavior specification of the terminal does not violate the regulations, the control switching instruction may not be sent.

[0355] 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.

[0356] In another possible implementation, the behavior information of the terminal further includes information about an intelligent driving function related to the behavior of the terminal; and the communication module 903 is configured to:

[0357] When 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.

[0358] In another possible implementation, the form of the logical language text is: conditional proposition → action proposition, where → represents derivation;

[0359] The processing module 902 is configured to:

[0360] Determine the logical values ​​of the conditional proposition and the behavioral proposition according to the behavioral information of the terminal,

[0361] If the conditional proposition is true and the logical value of the behavior proposition is true, determining that the behavior of the terminal complies with the behavior specification;

[0362] 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.

[0363] In another possible implementation, the logical language text indicates the behavior specification in the first scenario. The processing module 902 is configured to:

[0364] Determine whether the behavior of the terminal in the first scenario complies with the behavior specification in the first scenario according to the behavior information and the logical language text of the terminal.

[0365] In another possible implementation, the processing module 902 is further configured to:

[0366] The logical language text is determined according to the natural language text and the specification indication information of the first scenario, where the natural language text is a behavior specification described in a natural language.

[0367] 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.

[0368] In another possible implementation, the logical language text is used to detect the behavior of the detected object within a first distance range on a first road.

[0369] The first distance range includes a start point and an end point on a road coordinate system of the first road, a positive direction of the road coordinate system represents a normal travel direction along the first road, and the road coordinate system includes an origin;

[0370] The position operator includes a first value and a second value, wherein the first value is the distance between the starting 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.

[0371] 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.

[0372] Alternatively, the origin may be the effective starting point of the behavioral norm, such as the effective starting point or effective end point of a signboard. Alternatively, the origin may be the position of the signboard.

[0373] 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, deduction, or equivalence.

[0374] In another possible implementation, the logical language text further includes a time sequence operator. The time sequence operator may include the next moment X, until U, always G, finally F, always occur between t1 and t2, It will happen between t1 and t2

[0375] Please refer to Figure 10, which is a structural diagram 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, communicate with each other via the connecting line 1004, and 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.

[0376] in:

[0377] (1) Processor 1001 is a module that performs operations. In one implementation, the processor can be a circuit with the ability to read and execute 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 can 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 a processor as an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as an FPGA. In addition, it can 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.

[0378] (2) The communication interface 1002 can 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 can be used to receive data sent from the outside 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, antenna, etc.) coupled to the interface, or a receiver, etc.

[0379] Optionally, if the processing device 100 is a standalone 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.

[0380] 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. The input interface and the output interface may be the same interface, or may be different interfaces.

[0381] Optionally, the functions 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.

[0382] (3) Memory 1003 is used to provide storage space, which can store data such as operating systems and computer programs. Memory 1003 can be one or a combination of random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM).

[0383] The functions and actions of the modules or units in the processing device 100 listed above are only for illustrative purposes.

[0384] In one 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 replace the data processing device in the method embodiment shown in Figure 2. To avoid redundancy, its detailed description is omitted here.

[0385] In one 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 replace the behavior detection device in the method embodiment shown in Figure 6. To avoid redundancy, its detailed description is omitted here.

[0386] 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 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.

[0387] 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 .

[0388] 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 to the processor. The chip system is used to implement the aforementioned data processing method and / or behavior detection method, such as the method described in the embodiments shown in Figures 2 and 6.

[0389] An embodiment of the present application further provides a terminal, which includes one or more of the aforementioned data processing device, behavior detection device, or processing device.

[0390] As a possible implementation, the terminal can be a smart terminal or transportation tool such as a vehicle, a drone, or a robot. For example. Of course, the terminal can also be replaced by industrial equipment, entertainment and leisure equipment, etc. Smart terminals such as mobile phones, tablets, laptops, smart bracelets, smart watches, or smart glasses, etc. Transportation tools such as vehicles, ships, aircraft, or logistics robots, etc. Industrial equipment such as industrial robots, robotic arms, etc. Leisure and entertainment equipment such as virtual reality (VR) equipment, mixed reality (MR) equipment, massage chairs, or 4D cinema cabins, etc. This application does not impose strict restrictions on the equipment used for electrical connectors.

[0391] 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.

[0392] 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.

[0393] An embodiment of the present application also provides a computer-readable storage medium, which stores instructions. When the instructions are executed on at least one processor, the aforementioned data processing method and / or behavior detection method is implemented, such as the method described in the embodiments shown in Figures 2 and 6.

[0394] An embodiment of 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, such as the method described in the embodiments shown in Figures 2 and 6.

[0395] It should be noted that the names of devices, parameters, and information in this application are only examples and can be replaced arbitrarily during implementation. For example, a behavior detection device can also be called a detection device, a processing device, etc.

[0396] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0397] The “at least one” mentioned in the embodiments of this application refers to one or more, and “plurality” refers to two or more. “At least one of the following items” 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 represent: 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 represent: 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 previous and next associated objects are in an “or” relationship.

[0398] Furthermore, unless otherwise indicated, ordinal numbers such as "first" and "second" in the embodiments of this application are used to distinguish between multiple objects and are not used to define the order, timing, priority, or importance of multiple objects. For example, the first position and the second position are simply for the convenience of describing the position and do not indicate a difference in the position representation, order of appearance, or importance of the first and second positions.

[0399] In the above embodiments, the term "when" can be interpreted to mean "if...", "after...", "in response to determining...", or "in response to detecting...", depending on the context. The above are merely optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the concepts and principles of the present application shall be included in the scope of protection of the present application.

[0400] Those 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 a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which 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

Patent Citations

  • Data processing method, behavior detection method and related device

    CN118709648A

  • Simulation test method and system for compliance with traffic laws and regulations of automatic driving automobile

    CN113254336A

  • A traffic rule-to-machine language conversion method and system

    CN113486628A

  • Method and device for judging traffic behavior compliance

    CN115457757A

  • Vehicle, driving assistance device and method

    US20220289238A1

Cited By

  • Parameter value estimation method for xPos relative position coding, multi-level relative position coding method and system

    CN119272810A

  • A multi-level relative position coding method and system

    CN119272810B

  • Mobile device, apparatus, data carrier, computer program, and method for planning a trajectory for a mobile device

    GB2701439A