Multi-channel communication line verification method based on logistic regression in urban smart systems
By adopting a multi-channel communication line verification method based on logistic regression in urban smart systems, the problem of time-consuming and error-prone in traditional methods in multi-channel communication models is solved, and fast and accurate multi-channel communication line verification is achieved.
Patent Information
- Application Number
- CN202411024805.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-07-29
AI Technical Summary
Traditional methods perform analysis one by one in a multi-channel or multi-line communication model, resulting in time-consuming and prone to analysis errors, especially in the case of large-capacity communication models or high-throughput lines.
The multi-channel communication line verification method based on logistic regression is adopted to obtain the real-time status of the multi-channel communication line, determine the line cross-correlation, and use logistic regression to perform binary classification processing to quickly obtain the line verification results.
This method can quickly determine the change relationship between input data and output data of different lines in a multi-channel communication line without analyzing the lines one by one, effectively reducing verification time and improving verification accuracy.
Smart Images

Figure CN118551347B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication line security verification, and specifically to a multi-channel communication line verification method based on logistic regression in an urban smart system. Background Art
[0002] The city smart system is a complex system that integrates advanced technologies such as the Internet of Things, big data, and cloud computing, aiming to improve the city's management efficiency, public service level, and quality of life of residents. As the infrastructure for information transmission, the stability and reliability of communication lines are crucial to the normal operation of the city smart system. Therefore, communication line verification plays a pivotal role in the construction of city smart systems.
[0003] Traditional methods for multi-channel or multi-line communication models often analyze each one of them one by one, and finally summarize the line safety verification results. For complex situations such as large-capacity communication models or high-throughput lines, traditional methods are time-consuming and prone to analysis errors. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present application provides a multi-channel communication line verification method based on logistic regression in an urban smart system to save the verification time of the communication line and improve the verification accuracy.
[0005] To achieve the above objectives, the present application provides a multi-channel communication line verification method based on logistic regression in a city smart system, comprising:
[0006] S1. Obtain the real-time status of the multi-channel communication line to be verified;
[0007] S2, using the real-time status of the multi-channel communication line to be verified to obtain the line cross-correlation of the multi-channel communication line to be verified;
[0008] S3, obtaining a logistic regression result of the multi-channel communication line to be verified based on logistic regression according to the line cross-correlation;
[0009] S4. Obtain a multi-channel communication line security verification result according to the logistic regression result of the multi-channel communication line to be verified.
[0010] The multi-channel communication line verification method based on logistic regression in the urban smart system of the present application is applied in the urban smart system. For the intricate multi-channel communication lines, there is no need to analyze the lines one by one. It quickly determines the line cross-correlation that can reflect the change relationship between the input data and output data of different lines in the multi-channel communication lines based on the real-time status of the multi-channel communication lines to be verified, and then performs binary classification of logistic regression on the line cross-correlation to obtain the line verification result. The verification process does not need to consider issues such as the number of cross lines, which effectively reduces the time required for the verification process and improves the verification accuracy.
[0011] Preferably, the step of obtaining the real-time status of the multi-channel communication line to be verified includes:
[0012] S1-1, using the current time as the standard time;
[0013] S1-2, respectively obtaining the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the multi-channel communication line to be verified at the standard time;
[0014] S1-3, determine whether the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the multi-channel communication line to be verified correspond to each other, if so, use the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the multi-channel communication line to be verified as the real-time state of the multi-channel communication line to be verified, otherwise, execute S1-4;
[0015] S1-4. Determine whether there is a transit node in the multi-channel communication line to be verified. If so, use the real-time communication volume of the starting end, the real-time communication volume of the terminating end, the working frequency and the communication volume exchanged with the transit node of the multi-channel communication line to be verified as the real-time status of the multi-channel communication line to be verified. Otherwise, give up the processing.
[0016] The multi-channel communication line verification method based on logistic regression in the urban smart system of the present application distinguishes the composition of the multi-channel communication line to be verified based on steps S1-3 and S1-4 to distinguish the composition of the real-time state of the multi-channel communication line to be verified, so as to serve as the basis for generating subsequent line cross-correlation.
[0017] Further, the step of obtaining the line cross-correlation of the multi-channel communication line to be verified by using the real-time status of the multi-channel communication line to be verified includes:
[0018] S2-1, determine whether the multi-channel communication line to be verified is a one-way communication, if so, execute S2-2, otherwise, execute S2-3;
[0019] S2-2, determine whether there is a transit node in the multi-channel communication line to be verified, if so, use the working frequency of the real-time state of the multi-channel communication line to be verified and the real-time communication volume of the starting end and the real-time communication volume of the terminating end to establish a first line state mapping and a second line state mapping as the line cross-correlation of the multi-channel communication line to be verified, otherwise, use the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the real-time state of the multi-channel communication line to be verified to establish a third line state mapping as the line cross-correlation of the multi-channel communication line to be verified;
[0020] S2-3. Determine whether there is a transit node in the multi-channel communication line to be verified. If so, establish independent mapping of line segments according to the transit nodes, the exchanged communication volume of the transit nodes, the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the multi-channel communication line to be verified as the line cross-correlation of the multi-channel communication line to be verified. Otherwise, establish independent mapping according to the transmission direction of the multi-channel communication line to be verified, the real-time communication volume of the starting end and the real-time communication volume of the terminating end as the line cross-correlation of the multi-channel communication line to be verified.
[0021] Further, the line segment independent mapping includes forward line segment independent mapping and reverse line segment independent mapping, and the steps of establishing line segment independent mapping as line cross-correlation of the multi-channel communication line to be verified according to the transit nodes, transit node exchange communication volume, starting end real-time communication volume and terminating end real-time communication volume of the multi-channel communication line to be verified include:
[0022] S2-3-1, using the segment line from the starting end of the multi-channel communication line to be verified to the transfer node as the first forward segment line;
[0023] S2-3-2, using the section line from the transfer node to the termination end of the multi-channel communication line to be verified as the second forward section line;
[0024] S2-3-3, using the segment line from the termination end of the multi-channel communication line to be verified to the transfer node as the first reverse segment line;
[0025] S2-3-4, using the section line from the transfer node to the starting end of the multi-channel communication line to be verified as the second reverse section line;
[0026] S2-3-5, based on the starting forward communication volume, the transit forward communication volume and the terminating forward communication volume, using the first forward segment line and the second forward segment line to establish a forward line segment independent mapping;
[0027] S2-3-6, based on the starting reverse communication volume, the transit reverse communication volume and the terminating reverse communication volume, using the first reverse segment line and the second reverse segment line to establish reverse line segment independent mapping;
[0028] S2-3-7. Utilize the forward line segment independent mapping and the reverse line segment independent mapping as the line cross-correlation of the multi-channel communication line to be verified.
[0029] Further, the starting end real-time communication volume includes the starting forward communication volume and the starting reverse communication volume, the terminating end real-time communication volume includes the terminating forward communication volume and the terminating reverse communication volume, the transit node switching communication volume includes the transit forward communication volume and the transit reverse communication volume, and the step of establishing the forward line segment independent mapping using the first forward segment line and the second forward segment line based on the starting forward communication volume, the transit forward communication volume and the terminating forward communication volume includes:
[0030] S2-3-5-1. Determine whether the lengths or real-time communication volumes of the first forward segment line and the second forward segment line correspond. If so, establish independent mapping of forward segment lines using the first forward segment line and the second forward segment line based on the starting forward communication volume, the transit forward communication volume, and the terminating forward communication volume. If not, return to step S2-3-1.
[0031] Furthermore, the step of establishing reverse line segment independent mapping using the first reverse segment line and the second reverse segment line based on the starting reverse communication volume, the transit reverse communication volume and the terminating reverse communication volume includes:
[0032] S2-3-6-1, determine whether the length or real-time communication volume of the first reverse section line corresponds to that of the second reverse section line, if so, execute S2-3-6-2, otherwise, return to S2-3-3;
[0033] S2-3-6-2, determine whether the length of the first reverse section line is completely consistent with the length of the second forward section line, if so, execute step S2-3-6-3, otherwise, return to S2-3-3;
[0034] S2-3-6-3. Determine whether the length of the second reverse segment line completely corresponds to the length of the first forward segment line. If so, based on the starting reverse communication volume, the transit reverse communication volume and the terminating reverse communication volume, use the first reverse segment line and the second reverse segment line to establish an independent mapping of reverse line segments. Otherwise, abandon the processing.
[0035] Further, the step of obtaining a logistic regression result of the multi-channel communication line to be verified based on logistic regression according to the line cross-correlation includes:
[0036] S3-1, determining whether the line cross-correlation corresponding to the same multi-channel communication line is linear, if so, executing S3-2, otherwise, obtaining the linear line corresponding to the line cross-correlation as the scaled-down line, and executing S3-3;
[0037] S3-2, using the line cross-correlation to obtain a line cross-correlation classification result based on a linear classifier as a logistic regression result of the multi-channel communication line to be verified;
[0038] S3-3. Using the scaled-down line to obtain a scaled-down line cross-correlation classification result based on a linear classifier as a logistic regression result of the multi-channel communication line to be verified.
[0039] Further, the step of obtaining a multi-channel communication line security verification result according to the logistic regression result of the multi-channel communication line to be verified includes:
[0040] S4-1, performing traceability verification processing using the line cross-correlation of the multi-channel communication line to be verified to obtain a traceability verification result of the multi-channel communication line to be verified;
[0041] S4-2. Obtain a multi-channel communication line security verification result by using the traceability verification result of the multi-channel communication line to be verified and the logistic regression result of the multi-channel communication line to be verified.
[0042] Further, the step of performing traceability verification processing using the line cross-correlation of the multi-channel communication line to be verified to obtain a traceability verification result of the multi-channel communication line to be verified includes:
[0043] S4-1-1. When the logistic regression result exists, determine whether the line cross-correlation of the multi-channel communication line to be verified corresponding to the logistic regression result is completely consistent with the topology of the multi-channel communication line to be verified. If so, execute S4-1-2. Otherwise, the traceability verification result of the multi-channel communication line to be verified is abnormal.
[0044] S4-1-2. Determine whether the real-time communication volume when the logistic regression result exists corresponds to the real-time communication volume at the standard time t of the multi-channel communication line to be verified. If so, the tracing verification result of the multi-channel communication line to be verified is normal; otherwise, the tracing verification result of the multi-channel communication line to be verified is abnormal.
[0045] Further, the step of obtaining a multi-channel communication line security verification result by using the traceability verification result of the multi-channel communication line to be verified and the logistic regression result of the multi-channel communication line to be verified includes:
[0046] S4-2-1, judging whether the traceability verification result of the multi-channel communication line to be verified is normal, if so, executing S4-2-2, otherwise, the multi-channel communication line security verification result is abnormal, and outputting the traceability verification result of the multi-channel communication line to be verified;
[0047] S4-2-2, judging whether the logistic regression result of the multi-channel communication line to be verified corresponds to the homogeneity, if so, the multi-channel communication line security verification result is normal, otherwise, the multi-channel communication line security verification result is abnormal, and outputting the logistic regression result of the multi-channel communication line to be verified;
[0048] The homogeneity means that the logistic regression results of the same multi-channel communication line to be verified are all of the same type.
[0049] Compared with the closest prior art, this application has the following beneficial effects:
[0050] The multi-channel communication line verification method based on logistic regression in the urban smart system of the present application is applied in the urban smart system. For the intricate multi-channel communication lines, there is no need to analyze the lines one by one. It quickly determines the line cross-correlation that can reflect the change relationship between the input data and output data of different lines in the multi-channel communication lines based on the real-time status of the multi-channel communication lines to be verified, and then performs binary classification of logistic regression on the line cross-correlation to obtain the line verification result. The verification process does not need to consider issues such as the number of cross lines, which effectively reduces the time required for the verification process and improves the verification accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 This is a flowchart of a multi-channel communication line verification method based on logistic regression in a city intelligence system provided by this application. DETAILED DESCRIPTION
[0052] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings.
[0053] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] like Figure 1 As shown, the embodiment of the present application provides a multi-channel communication line verification method based on logistic regression in a city smart system, such as Figure 1 As shown, including:
[0055] S1. Obtain the real-time status of the multi-channel communication line to be verified;
[0056] S2, using the real-time status of the multi-channel communication line to be verified to obtain the line cross-correlation of the multi-channel communication line to be verified;
[0057] S3, obtaining a logistic regression result of the multi-channel communication line to be verified based on logistic regression according to the line cross-correlation;
[0058] S4. Obtain a multi-channel communication line security verification result according to a logistic regression result of the multi-channel communication line to be verified.
[0059] Specifically, a multi-channel communication line is a line with multiple connections, generally showing a topological relationship.
[0060] More specifically, the real-time status of the multi-channel communication line to be verified refers to the communication status of the multi-channel communication line to be verified at a specific moment (generally the current moment) or multiple moments or consecutive moments of its different lines, which can be measured based on one or more indicators such as communication quality, communication volume, communication frequency, etc., and can characterize the operation status of the corresponding multi-channel communication line at the corresponding moment; in an embodiment of the present application, the real-time status of the multi-channel communication line to be verified includes at least status data representing the line starting end and line ending end of different lines.
[0061] It should be noted that the line start end and the line end end refer to the ports opposite to each other on the multi-channel communication line to be verified, and the data transmission direction is not limited to transmission from the line start end to the line end end.
[0062] More specifically, cross-correlation is a method for analyzing the degree of mutual correlation between two or more sequences (such as time series, signals, etc.) at different time points or states. In the embodiment of the present application, line cross-correlation is data association information about the line start end and the line end end, such as the mapping relationship of communication volume, which can characterize the similarity or dependency relationship of the line start end and the line end end data of different lines of a multi-channel communication line at different time points or states, so it can reflect the change relationship between the input data and output data of different lines in the multi-channel communication line, and can be used as an indicator for line security verification.
[0063] More specifically, the process of obtaining the real-time status of the multi-channel communication lines to be verified in step S1 is actually a continuous acquisition process, so that step S2 can continuously and in real time obtain multiple line cross-correlations at different times; logistic regression, also known as logistic regression analysis, is a generalized linear regression analysis model, which is mainly used to solve binary classification problems; steps S3 and S4 analyze the line cross-correlations obtained in real time based on logistic regression to classify and verify the communication status of the lines.
[0064] The multi-channel communication line verification method based on logistic regression in the urban smart system of the embodiment of the present application is applied in the urban smart system. For the intricate multi-channel communication lines, there is no need to analyze the lines one by one. It quickly determines the line cross-correlation that can reflect the change relationship between the input data and output data of different lines in the multi-channel communication lines based on the real-time status of the multi-channel communication lines to be verified, and then performs binary classification of logistic regression on the line cross-correlation to obtain the line verification result. The verification process does not need to consider issues such as the number of cross lines, which effectively reduces the time required for the verification process and improves the verification accuracy.
[0065] It should be noted that different lines have different real-time states of multi-channel communication lines to be verified, and correspondingly have different line cross-connectivity.
[0066] In some preferred embodiments, step S1 specifically includes:
[0067] S1-1, using the current time as the standard time t;
[0068] S1-2, respectively obtaining the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the multi-channel communication line to be verified at the standard time t;
[0069] S1-3, determine whether the real-time communication volume of the starting end of the multi-channel communication line to be verified corresponds to the real-time communication volume of the terminating end. If so, use the real-time communication volume of the starting end of the multi-channel communication line to be verified and the real-time communication volume of the terminating end as the real-time state of the multi-channel communication line to be verified. Otherwise, execute S1-4;
[0070] S1-4. Determine whether there is a transfer node in the multi-channel communication line to be verified. If so, use the real-time communication volume of the starting end, the real-time communication volume of the terminating end, the working frequency and the communication volume exchanged with the transfer node of the multi-channel communication line to be verified as the real-time status of the multi-channel communication line to be verified. Otherwise, give up the processing.
[0071] Specifically, the transit node generally has data processing or data buffering functions, and its operating frequency will affect its functional processing efficiency, which will lead to certain differences in the numerical values and evaluation methods of the corresponding line cross-correlations. Therefore, the multi-channel communication line verification method based on logistic regression in the urban smart system of the embodiment of the present application distinguishes the composition of the multi-channel communication line to be verified based on steps S1-3 and S1-4 to distinguish the composition of the real-time state of the multi-channel communication line to be verified, so as to serve as the basis for generating subsequent line cross-correlations.
[0072] More specifically, the real-time communication volume of the starting end of the multi-channel communication line to be verified may be the total communication volume of all starting ends at the corresponding time, and the real-time communication volume of the terminating end of the multi-channel communication line to be verified may be the total communication volume of all terminating ends at the corresponding time.
[0073] More specifically, when the multi-channel communication line to be verified does not have a transit node, its real-time communication volume at the starting end and the real-time communication volume at the terminating end should satisfy a specific corresponding relationship, such as a proportional relationship or an equal relationship. When the multi-channel communication line to be verified does not have a transit node, its corresponding real-time communication volume at the starting end and the real-time communication volume at the terminating end do not correspond, which indicates that there is a problem with the multi-channel communication line to be verified. Therefore, there is no need to perform subsequent verification, and the abandonment process can be directly executed.
[0074] In some preferred embodiments, step S2 specifically includes:
[0075] S2-1, determine whether the multi-channel communication line to be verified is a one-way communication, if so, execute S2-2, otherwise, execute S2-3;
[0076] S2-2, determine whether there is a transit node in the multi-channel communication line to be verified, if so, use the working frequency of the real-time state of the multi-channel communication line to be verified and the real-time communication volume of the starting end and the real-time communication volume of the terminating end to establish a first line state mapping and a second line state mapping as the line cross-correlation of the multi-channel communication line to be verified, otherwise, use the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the real-time state of the multi-channel communication line to be verified to establish a third line state mapping as the line cross-correlation of the multi-channel communication line to be verified;
[0077] S2-3. Determine whether there is a transit node in the multi-channel communication line to be verified. If so, establish independent mapping of line segments according to the transit nodes, the exchanged communication volume of the transit nodes, the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the multi-channel communication line to be verified as the line cross-correlation of the multi-channel communication line to be verified. Otherwise, establish independent mapping according to the transmission direction of the multi-channel communication line to be verified, the real-time communication volume of the starting end and the real-time communication volume of the terminating end as the line cross-correlation of the multi-channel communication line to be verified.
[0078] Specifically, the above steps are equivalent to classifying the multi-channel communication lines to be verified, determining their initial judgment conditions, and establishing appropriate line cross-correlations to match subsequent appropriate logistic regression analysis for verification, thereby improving verification accuracy.
[0079] More specifically, the first line state mapping, the second line state mapping, the third line state mapping, the line segment independent mapping, and the independent mapping are all the traffic mapping relationships of the corresponding lines, wherein, considering that the working frequency of the line with transit in one-way communication has a greater impact on the corresponding traffic, the communication impact of the transit node can be ignored, and the first line state mapping is defined as the mapping relationship between the corresponding working frequency and the real-time traffic of the starting end, and the second line state mapping is defined as the mapping relationship between the corresponding working frequency and the real-time traffic of the terminating end, and then the changes of the first line state mapping and the second line state mapping are combined as the cross-correlation of the corresponding line; for the line with no transit in one-way communication, the third line state mapping is defined as the mapping relationship between the real-time traffic of the starting end and the real-time traffic of the terminating end; in addition, the line segment independent mapping is the mapping relationship between the traffic of the data input end and the traffic of the data output end based on the data transmission direction in different segments of the line, and the independent mapping is the mapping relationship between the traffic of the data input end and the traffic of the data output end based on the data transmission direction in the line.
[0080] More specifically, based on the classification of the above steps, the multi-channel communication lines to be verified are divided into four categories: one-way with transit, one-way without transit, non-one-way with transit, and non-one-way without transit; after completing the classification of the multi-channel communication lines to be verified, the above steps establish line cross-correlations with different benchmarks for different types of multi-channel communication lines to be verified, wherein the line cross-correlations of the one-way with transit type include: a first line state mapping established based on the working frequency and the real-time communication volume of the starting end, and a second line state mapping established based on the working frequency and the real-time communication volume of the terminating end; the line cross-correlations of the one-way without transit type include: a third line state mapping established based on the real-time communication volume of the starting end and the real-time communication volume of the terminating end; the line cross-correlations of the non-one-way with transit type include: an independent mapping of line segments established based on multiple line segments divided by transit nodes; the line cross-correlations of the non-one-way without transit type include: an independent mapping established based on the real-time communication volume of the starting end and the real-time communication volume of the terminating end based on the transmission direction.
[0081] In some preferred implementations, the starting end real-time communication volume includes the starting forward communication volume and the starting reverse communication volume, the terminating end real-time communication volume includes the terminating forward communication volume and the terminating reverse communication volume, the transit node exchange communication volume includes the transit forward communication volume and the transit reverse communication volume, the line segment independent mapping includes the forward line segment independent mapping and the reverse line segment independent mapping, and the steps of establishing the line segment independent mapping as the line cross-correlation of the multi-channel communication line to be verified according to the transit node, the transit node exchange communication volume, the starting end real-time communication volume and the terminating end real-time communication volume of the multi-channel communication line to be verified specifically include:
[0082] S2-3-1, using the segment line from the starting end of the multi-channel communication line to be verified to the transfer node as the first forward segment line;
[0083] S2-3-2, using the section line from the transfer node to the termination end of the multi-channel communication line to be verified as the second forward section line;
[0084] S2-3-3, using the segment line from the termination end of the multi-channel communication line to be verified to the transfer node as the first reverse segment line;
[0085] S2-3-4, using the section line from the transfer node to the starting end of the multi-channel communication line to be verified as the second reverse section line;
[0086] S2-3-5, based on the starting forward communication volume, the transit forward communication volume and the terminating forward communication volume, using the first forward segment line and the second forward segment line to establish a forward line segment independent mapping;
[0087] S2-3-6, based on the starting reverse communication volume, the transit reverse communication volume and the terminating reverse communication volume, using the first reverse segment line and the second reverse segment line to establish reverse line segment independent mapping;
[0088] S2-3-7. Use the forward line segment independent mapping and the reverse line segment independent mapping as the line cross-correlation of the multi-channel communication line to be verified.
[0089] Specifically, forward and reverse belong to opposite directions of data transmission in the line, that is, in the embodiment of the present application, a certain transmission direction of the topological structure data of the multi-channel communication line to be verified is defined as the forward direction, and the direction opposite to the direction is the reverse direction; wherein, the starting forward communication volume is the real-time communication volume of data transmitted in the forward direction in the starting end, the starting reverse communication volume is the real-time communication volume of data transmitted in the reverse direction in the starting end, the terminating forward communication volume is the real-time communication volume of data transmitted in the forward direction in the terminating end, the terminating reverse communication volume is the real-time communication volume of data transmitted in the reverse direction in the terminating end, the transit forward communication volume is the real-time communication volume of data transmitted in the forward direction in the transit end, and the transit reverse communication volume is the real-time communication volume of data transmitted in the reverse direction in the transit end.
[0090] More specifically, for the non-unidirectional multi-channel communication lines to be verified with transit, the multi-channel communication line verification method based on logistic regression in the urban smart system of the embodiment of the present application divides the multi-channel communication lines into four types of segment lines based on transit nodes, and determines the independent mapping of the forward line segments and the independent mapping of the reverse line segments based on the four types of segment lines, and then sequentially constructs the line cross-correlation that can accurately reflect the communication status of the non-unidirectional multi-channel communication lines to be verified with transit.
[0091] Among them, the specific execution process of step S2-3-5 is: determine the first forward segment mapping of the first forward section based on the starting forward communication volume and the transit forward communication volume, determine the second forward segment mapping of the second forward section based on the transit forward communication volume and the termination forward communication volume, and determine the forward line segment independent mapping in combination with the first forward segment mapping and the second forward segment mapping; the specific execution process of step S2-3-6 is: determine the first reverse segment mapping of the first reverse section based on the termination reverse communication volume and the transit reverse communication volume, determine the second reverse segment mapping of the second reverse section based on the transit reverse communication volume and the starting reverse communication volume, and determine the reverse line segment independent mapping in combination with the first reverse segment mapping and the second reverse segment mapping.
[0092] In addition, the steps of establishing independent mapping according to the starting end real-time traffic and the terminating end real-time traffic based on the transmission direction include:
[0093] determining a forward independent mapping based on the starting forward communication volume and the ending forward communication volume;
[0094] determining a reverse independent mapping based on the starting reverse traffic and the ending reverse traffic;
[0095] The forward independent mapping and the reverse independent mapping are combined to obtain an independent mapping to serve as the line cross-correlation of the multi-channel communication line to be verified.
[0096] In some preferred implementations, step S2-3-5 specifically includes:
[0097] S2-3-5-1. Determine whether the lengths or real-time communication volumes of the first forward segment line and the second forward segment line correspond. If so, establish independent mapping of forward segment lines using the first forward segment line and the second forward segment line based on the starting forward communication volume, the transit forward communication volume, and the terminating forward communication volume. If not, return to step S2-3-1.
[0098] Specifically, there are one or more transfer nodes (generating a topological structure with different branches) in the multi-channel communication line to be verified. In order to ensure the smooth progress of the subsequent verification process, it is necessary to clarify the division basis of the first forward paragraph line and the second forward paragraph line. In the embodiment of the present application, it is preferred to select the transfer nodes for division based on the line length or the real-time communication volume. It should be understood that the transfer forward communication volume is the forward communication volume generated by the corresponding transfer node.
[0099] More specifically, the real-time communication volume here is the communication volume passing through the first forward segment line or the second forward segment line. The real-time communication volume of the first forward segment line can be determined based on the starting forward communication volume and the transit forward communication volume, and the real-time communication volume of the second forward segment line can be determined based on the transit forward communication volume and the termination forward communication volume.
[0100] It should be noted that if the independent mapping of the forward line segment cannot be determined after returning to step S2-3-1 multiple times (such as 3 times), it means that the multi-channel communication line to be verified cannot find a suitable transit node to determine the independent mapping of the forward line segment, indicating that the current multi-channel communication line to be verified has an abnormality and needs to be abandoned.
[0101] In some preferred implementations, step S2-3-6 specifically includes:
[0102] S2-3-6-1, determine whether the length or real-time communication volume of the first reverse section line corresponds to that of the second reverse section line, if so, execute S2-3-6-2, otherwise, return to S2-3-3;
[0103] S2-3-6-2, determine whether the length of the first reverse section line is completely consistent with the length of the second forward section line, if so, execute step S2-3-6-3, otherwise, return to S2-3-3;
[0104] S2-3-6-3. Determine whether the length of the second reverse segment line completely corresponds to the length of the first forward segment line. If so, based on the starting reverse communication volume, the transit reverse communication volume and the terminating reverse communication volume, use the first reverse segment line and the second reverse segment line to establish an independent mapping of reverse line segments. Otherwise, abandon the processing.
[0105] Specifically, the real-time communication volume here is the communication volume passing through the first reverse segment line or the second reverse segment line. The real-time communication volume of the first reverse segment line can be determined based on the terminated reverse communication volume and the transit reverse communication volume, and the real-time communication volume of the second reverse segment line can be determined based on the transit reverse communication volume and the starting reverse communication volume.
[0106] More specifically, the implementation method first screens the corresponding first reverse paragraph line and second reverse paragraph line, then determines whether the length of the first reverse paragraph line completely corresponds to the length of the second forward paragraph line, and then determines whether the length of the second reverse paragraph line completely corresponds to the length of the first forward paragraph line, and then establishes reverse line segment independent mapping in the case of complete matching; the above steps implement a cyclic matching process, if the length of the first reverse paragraph line corresponds to the length of the second forward paragraph line, and the length of the second reverse paragraph line does not correspond to the length of the first forward paragraph line, it indicates that there is an abnormality in the line of the multi-channel communication line to be verified, and the processing needs to be abandoned.
[0107] In some preferred embodiments, step S3 specifically includes:
[0108] S3-1, determining whether the line cross-correlation corresponding to the same multi-channel communication line is linear, if so, executing S3-2, otherwise, obtaining the linear line corresponding to the line cross-correlation as the scaled-down line, and executing S3-3;
[0109] S3-2, using the line cross-correlation to obtain a line cross-correlation classification result based on a linear classifier as a logistic regression result of the multi-channel communication line to be verified;
[0110] S3-3. Using the scaled-down line based on the linear classifier to obtain the scaled-down line cross-correlation classification result as the logistic regression result of the multi-channel communication line to be verified.
[0111] Specifically, based on the foregoing content, it can be known that the line cross-correlation is a mapping relationship about the standard time t. Therefore, the multi-channel communication line verification method based on logistic regression in the urban smart system of the embodiment of the present application can use step S3 to conveniently analyze the linear characteristics of the corresponding line cross-correlation to perform communication verification of the multi-channel communication line to be verified, so as to realize communication verification of different categories of multi-channel communication lines to be verified, which has the advantages of low analysis complexity and high analysis efficiency.
[0112] More specifically, step S1-step S2 can be used to determine the line cross-correlation of different lines in different multi-channel communication lines to be verified, and can determine the mapping relationship of the communication volume in the communication process of different multi-channel communication lines to be verified. Step S3-1 is used to determine the communication characteristics of different lines in the multi-channel communication lines to be verified.
[0113] More specifically, step S3-1 and step S3-2 analyze the characteristics of the line cross-correlations of different lines in the multi-channel communication lines. For the line cross-correlations that meet the linear characteristics, the corresponding logistic regression results are directly generated based on the linear classifier. For the line cross-correlations that do not meet the linear characteristics, the corresponding logistic regression results are generated based on the linear classifier after scaling processing, so that the logical classification results can reflect the logical relationship between the input and output of the corresponding lines.
[0114] In some preferred embodiments, step S4 specifically includes:
[0115] S4-1, using the line cross-correlation of the multi-channel communication line to be verified to perform traceability verification processing to obtain the traceability verification result of the multi-channel communication line to be verified;
[0116] S4-2. Obtain a multi-channel communication line security verification result by using the traceability verification result of the multi-channel communication line to be verified and the logistic regression result of the multi-channel communication line to be verified.
[0117] Specifically, the retrospective verification process of step S4-1 is actually to reversely infer the relationship between output and input based on the cross-correlation of the lines, and then combine the aforementioned logistic regression results determined based on linear classification to jointly verify the security of the multi-channel communication lines to obtain a security verification result that can characterize the accuracy of signal transmission.
[0118] In some preferred embodiments, step S4-1 specifically includes:
[0119] S4-1-1. When there is a logistic regression result, determine whether the line cross-correlation of the multi-channel communication line to be verified corresponding to the logistic regression result is completely consistent with the topology of the multi-channel communication line to be verified. If so, execute S4-1-2. Otherwise, the traceability verification result of the multi-channel communication line to be verified is abnormal.
[0120] S4-1-2. Determine whether the real-time communication volume when the logistic regression result exists corresponds to the real-time communication volume at the standard time t of the multi-channel communication line to be verified. If so, the tracing verification result of the multi-channel communication line to be verified is normal; otherwise, the tracing verification result of the multi-channel communication line to be verified is abnormal.
[0121] Specifically, in this implementation, in order to further improve the accuracy of verification, the multi-channel communication line verification method based on logistic regression in the urban smart system of the embodiment of the present application determines whether there is an abnormality in data transmission based on communication volume tracing to determine whether the current logistic regression result is valid.
[0122] In some preferred embodiments, step S4-2 specifically includes:
[0123] S4-2-1, determine whether the traceability verification result of the multi-channel communication line to be verified is normal, if so, execute S4-2-2, otherwise, the multi-channel communication line security verification result is abnormal, and output the traceability verification result of the multi-channel communication line to be verified;
[0124] S4-2-2, judging whether the logistic regression result of the multi-channel communication line to be verified corresponds to the homogeneity, if so, the multi-channel communication line security verification result is normal, otherwise, the multi-channel communication line security verification result is abnormal, and outputting the logistic regression result of the multi-channel communication line to be verified;
[0125] Among them, the homogeneity means that the logistic regression results of the same multi-channel communication line to be verified are all of the same type.
[0126] Specifically, in the above implementation, step S4-2 is equivalent to determining the accuracy of the line cross-correlation of the multi-channel communication line to be verified when normal transmission is satisfied (communication volume tracing is normal). When all the output results of the logistic regression are the same (have the same type), it indicates that the security verification of each branch line of the multi-channel communication line has passed and data transmission can be carried out normally.
[0127] The multi-channel communication line verification method based on logistic regression in the urban smart system of the embodiment of the present application involves logistic regression binary classification, in which the normal situation is classified as 0 and the abnormal situation is classified as 1. It can obtain the final binary classification result by performing likelihood estimation, loss function compensation, etc. according to the actual corresponding situation or operating status of the line.
[0128] In this embodiment, a multi-channel communication line verification method based on logistic regression in an urban smart system is provided. Since nonlinear logistic regression does not correspond to the application of this solution, a linear interception is performed on the nonlinear line to reduce the line result, and subsequent binary classification processing is performed to obtain the output with the same result as the linear processing.
[0129] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0130] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products of the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0131] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0133] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present application can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present application should be included in the protection scope of the present application.
Claims
1. A multi-channel communication line verification method based on logistic regression in a city intelligence system, characterized in that: include: S1. Obtain the real-time status of the multi-channel communication line to be verified; S2, using the real-time status of the multi-channel communication line to be verified to obtain the line cross-correlation of the multi-channel communication line to be verified; S3, obtaining a logistic regression result of the multi-channel communication line to be verified based on logistic regression according to the line cross-correlation; S4, obtaining a multi-channel communication line security verification result according to the logistic regression result of the multi-channel communication line to be verified; The step of obtaining the real-time status of the multi-channel communication line to be verified comprises: S1-1, using the current time as the standard time; S1-2, respectively obtaining the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the multi-channel communication line to be verified at the standard time; S1-3, determine whether the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the multi-channel communication line to be verified correspond to each other, if so, use the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the multi-channel communication line to be verified as the real-time state of the multi-channel communication line to be verified, otherwise, execute S1-4; S1-4, determine whether there is a transfer node in the multi-channel communication line to be verified, if so, use the real-time communication volume of the starting end, the real-time communication volume of the terminating end, the working frequency and the communication volume exchanged with the transfer node of the multi-channel communication line to be verified as the real-time state of the multi-channel communication line to be verified, otherwise, give up the processing; The step of obtaining the line cross-correlation of the multi-channel communication line to be verified by using the real-time status of the multi-channel communication line to be verified comprises: S2-1, determine whether the multi-channel communication line to be verified is a one-way communication, if so, execute S2-2, otherwise, execute S2-3; S2-2, determine whether there is a transit node in the multi-channel communication line to be verified, if so, use the working frequency of the real-time state of the multi-channel communication line to be verified and the real-time communication volume of the starting end and the real-time communication volume of the terminating end to establish a first line state mapping and a second line state mapping as the line cross-correlation of the multi-channel communication line to be verified, otherwise, use the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the real-time state of the multi-channel communication line to be verified to establish a third line state mapping as the line cross-correlation of the multi-channel communication line to be verified; S2-3, determine whether there is a transit node in the multi-channel communication line to be verified, if so, establish line segment independent mapping according to the transit node, the exchanged communication volume of the transit node, the real-time communication volume of the starting end and the real-time communication volume of the terminating end of the multi-channel communication line to be verified as the line cross-correlation of the multi-channel communication line to be verified, otherwise, establish independent mapping according to the transmission direction of the multi-channel communication line to be verified, the real-time communication volume of the starting end and the real-time communication volume of the terminating end as the line cross-correlation of the multi-channel communication line to be verified; The starting end real-time communication volume includes the starting forward communication volume and the starting reverse communication volume, the terminating end real-time communication volume includes the terminating forward communication volume and the terminating reverse communication volume, the transit node exchange communication volume includes the transit forward communication volume and the transit reverse communication volume, the line segment independent mapping includes the forward line segment independent mapping and the reverse line segment independent mapping, and the steps of establishing the line segment independent mapping as the line cross-correlation of the multi-channel communication line to be verified according to the transit node, the transit node exchange communication volume, the starting end real-time communication volume and the terminating end real-time communication volume of the multi-channel communication line to be verified include: S2-3-1, using the segment line from the starting end of the multi-channel communication line to be verified to the transfer node as the first forward segment line; S2-3-2, using the section line from the transfer node to the termination end of the multi-channel communication line to be verified as the second forward section line; S2-3-3, using the segment line from the termination end of the multi-channel communication line to be verified to the transfer node as the first reverse segment line; S2-3-4, using the section line from the transfer node to the starting end of the multi-channel communication line to be verified as the second reverse section line; S2-3-5, based on the starting forward communication volume, the transit forward communication volume and the terminating forward communication volume, using the first forward segment line and the second forward segment line to establish a forward line segment independent mapping; S2-3-6, based on the starting reverse communication volume, the transit reverse communication volume and the terminating reverse communication volume, using the first reverse segment line and the second reverse segment line to establish reverse line segment independent mapping; S2-3-7, using the forward line segment independent mapping and the reverse line segment independent mapping as the line cross-correlation of the multi-channel communication line to be verified; The step of establishing a forward line segment independent mapping using the first forward segment line and the second forward segment line based on the starting forward communication volume, the transit forward communication volume and the terminating forward communication volume comprises: S2-3-5-1, determine whether the length or real-time traffic of the first forward segment line corresponds to that of the second forward segment line, if so, then based on the starting forward traffic, the transit forward traffic and the terminating forward traffic, use the first forward segment line and the second forward segment line to establish a forward segment independent mapping, if not, return to step S2-3-1; The step of establishing reverse line segment independent mapping using the first reverse segment line and the second reverse segment line based on the starting reverse communication volume, the transit reverse communication volume and the terminating reverse communication volume comprises: S2-3-6-1, determine whether the length or real-time communication volume of the first reverse section line corresponds to that of the second reverse section line, if so, execute S2-3-6-2, otherwise, return to S2-3-3; S2-3-6-2, determine whether the length of the first reverse section line is completely consistent with the length of the second forward section line, if so, execute step S2-3-6-3, otherwise, return to S2-3-3; S2-3-6-3. Determine whether the length of the second reverse segment line completely corresponds to the length of the first forward segment line. If so, based on the starting reverse communication volume, the transit reverse communication volume and the terminating reverse communication volume, use the first reverse segment line and the second reverse segment line to establish an independent mapping of reverse line segments. Otherwise, abandon the processing.
2. The multi-channel communication line verification method based on logistic regression in a city intelligence system according to claim 1, characterized in that: The step of obtaining a logistic regression result of the multi-channel communication line to be verified based on logistic regression according to the line cross-correlation comprises: S3-1, determining whether the line cross-correlation corresponding to the same multi-channel communication line is linear, if so, executing S3-2, otherwise, obtaining the linear line corresponding to the line cross-correlation as the scaled-down line, and executing S3-3; S3-2, using the line cross-correlation to obtain a line cross-correlation classification result based on a linear classifier as a logistic regression result of the multi-channel communication line to be verified; S3-3. Using the scaled-down line to obtain a scaled-down line cross-correlation classification result based on a linear classifier as a logistic regression result of the multi-channel communication line to be verified.
3. A multi-channel communication line verification method based on logistic regression in a city intelligence system as claimed in claim 2, characterized in that: The step of obtaining a multi-channel communication line security verification result according to the logistic regression result of the multi-channel communication line to be verified comprises: S4-1, performing traceability verification processing using the line cross-correlation of the multi-channel communication line to be verified to obtain a traceability verification result of the multi-channel communication line to be verified; S4-2. Obtain a multi-channel communication line security verification result by using the traceability verification result of the multi-channel communication line to be verified and the logistic regression result of the multi-channel communication line to be verified.
4. The multi-channel communication line verification method based on logistic regression in a city intelligence system according to claim 3, characterized in that: The step of performing traceability verification processing using the line cross-correlation of the multi-channel communication line to be verified to obtain a traceability verification result of the multi-channel communication line to be verified comprises: S4-1-1. When the logistic regression result exists, determine whether the line cross-correlation of the multi-channel communication line to be verified corresponding to the logistic regression result is completely consistent with the topology of the multi-channel communication line to be verified. If so, execute S4-1-2. Otherwise, the traceability verification result of the multi-channel communication line to be verified is abnormal. S4-1-2. Determine whether the real-time communication volume when the logistic regression result exists corresponds to the real-time communication volume at the standard time t of the multi-channel communication line to be verified. If so, the tracing verification result of the multi-channel communication line to be verified is normal; otherwise, the tracing verification result of the multi-channel communication line to be verified is abnormal.
5. The multi-channel communication line verification method based on logistic regression in a city intelligence system according to claim 3, characterized in that: The step of obtaining the multi-channel communication line security verification result by using the traceability verification result of the multi-channel communication line to be verified and the logistic regression result of the multi-channel communication line to be verified comprises: S4-2-1, judging whether the traceability verification result of the multi-channel communication line to be verified is normal, if so, executing S4-2-2, otherwise, the multi-channel communication line security verification result is abnormal, and outputting the traceability verification result of the multi-channel communication line to be verified; S4-2-2, judging whether the logistic regression result of the multi-channel communication line to be verified corresponds to the homogeneity, if so, the multi-channel communication line security verification result is normal, otherwise, the multi-channel communication line security verification result is abnormal, and outputting the logistic regression result of the multi-channel communication line to be verified; The homogeneity means that the logistic regression results of the same multi-channel communication line to be verified are all of the same type.
Citation Information
Patent Citations
Multi-channel communication synchronization test method
CN116614430A
Multi-channel communication verification method based on http protocol
CN116723056A
AGV application deployment processing method based on improved edge architecture
CN118400290A
KR20210124690A
