[go: up one dir, main page]

CN116232451B - Line inspection method, device, equipment and storage medium - Google Patents

Line inspection method, device, equipment and storage medium Download PDF

Info

Publication number
CN116232451B
CN116232451B CN202310168010.5A CN202310168010A CN116232451B CN 116232451 B CN116232451 B CN 116232451B CN 202310168010 A CN202310168010 A CN 202310168010A CN 116232451 B CN116232451 B CN 116232451B
Authority
CN
China
Prior art keywords
attenuation value
light attenuation
information
value
threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310168010.5A
Other languages
Chinese (zh)
Other versions
CN116232451A (en
Inventor
王瑜
周莹
毕中玻
史正思
李坤树
蒋迅婕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202310168010.5A priority Critical patent/CN116232451B/en
Publication of CN116232451A publication Critical patent/CN116232451A/en
Application granted granted Critical
Publication of CN116232451B publication Critical patent/CN116232451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • H04B10/07955Monitoring or measuring power
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for checking a line, relates to the field of communication, and is used for solving the problem of predicting the state of the line between network element equipment. The method comprises the steps of obtaining first information and second information, wherein the first information comprises at least one first light attenuation value, the first light attenuation value is a light attenuation value of a first circuit in a first preset period, the second information comprises at least one second light attenuation value, the second light attenuation value is a light attenuation value of the first circuit in a second preset period, and the second preset period is earlier than the first preset period. And processing the at least one second light attenuation value to generate a first threshold value, wherein the first threshold value is the average number among the at least one second light attenuation value. If the light attenuation value larger than the first threshold value exists in the at least one first light attenuation value, generating first prediction information, wherein the first prediction information is used for indicating that the first line has a degradation trend in a third preset period, and the third preset period is later than the first preset period.

Description

Line inspection method, device, equipment and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a method, an apparatus, a device, and a storage medium for inspecting a line.
Background
In recent years, with the development of communication technology, more and more network element devices are in signal transmission networks (such as optical transport networks (Optical Transport Network, OTN)), and more emphasis is placed on managing lines between the network element devices. For example, the status of the line to which the network element device is connected is checked.
Currently, when checking the state of a line connected to a network element device, a management device (such as a server) needs to acquire alarm information from the network element device, and determine the line connected to the network element device in a signal transmission network according to the alarm information. Then, the management device checks the state of the line to which the network element device is connected. However, in the above technical solution, the management device can only check the status of the line connected to the network element device in the signal transmission network if the network element device in the signal transmission network has been affected. Therefore, how to predict the state of the line connected to the network element device is a technical problem to be solved.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for checking a line, which are used for solving the problem of predicting the state of the line between network element equipment.
In order to achieve the above purpose, the application adopts the following technical scheme:
In a first aspect, the present application provides a method for inspecting a circuit, where the method includes that an inspection device (may be simply referred to as an "inspection device") of the circuit obtains first information and second information, where the first information includes at least one first light attenuation value, where the first light attenuation value is a light attenuation value of the first circuit within a first preset period, and the second information includes at least one second light attenuation value, where the second light attenuation value is a light attenuation value of the first circuit within a second preset period, and the second preset period is earlier than the first preset period. The inspection device processes the at least one second light decay value to generate a first threshold value, the first threshold value being an average between the at least one second light decay value. If the light attenuation value larger than the first threshold value exists in the at least one first light attenuation value, the checking device generates first prediction information, and the first prediction information is used for indicating that the first line has a degradation trend in a third preset period, and the third preset period is later than the first preset period.
Optionally, the line inspection method further comprises the step that the inspection device acquires at least one third message, wherein the third message comprises at least one third light attenuation value, the third light attenuation value is a light attenuation value of a second line within a first preset period, and one third message corresponds to one second line. And for each piece of third information in the at least one piece of third information, the inspection device performs variable point detection on at least one piece of third light attenuation value in the third information, and determines the number of fourth light attenuation values in the at least one piece of third light attenuation value to acquire the number of fourth light attenuation values corresponding to each piece of third information, wherein the fourth light attenuation value is a light attenuation value corresponding to a mutation point in the at least one piece of third light attenuation value. The checking device determines a first line from at least one second line according to the number of fourth light attenuation values corresponding to each piece of third information, wherein the first line is the second line corresponding to the third information, and the number of the fourth light attenuation values is larger than a first preset number threshold. The method for acquiring the first information by the checking device comprises the step that the checking device takes the third information corresponding to the first line as the first information.
Optionally, the first preset time period includes at least one first preset time, and one first preset time corresponds to one first light attenuation value. The inspection device divides at least one first light attenuation value according to first preset time corresponding to each fourth light attenuation value to generate at least one first set, wherein the first set comprises first light attenuation values between two first preset time corresponding to two adjacent fourth light attenuation values. The method for generating the first prediction information by the inspection device if the light attenuation value larger than the first threshold exists in the at least one first light attenuation value comprises the step of generating the first prediction information by the inspection device if the second set exists in the at least one first set, wherein the second set is the first set with the light attenuation value larger than the first threshold.
Optionally, the line inspection method further comprises the step that the inspection device processes the first threshold value and the first preset threshold value to generate a second threshold value, wherein the second threshold value is the sum of the first threshold value and the first preset threshold value, and the second threshold value is larger than the first threshold value. The method for generating the first prediction information by the checking device comprises the step that if the light attenuation value which is larger than a first threshold value and smaller than a second threshold value exists in at least one first light attenuation value, the checking device generates the first prediction information.
Optionally, the inspection method of the circuit further comprises the step that if at least one first light attenuation value exists, the light attenuation value is larger than a second threshold value, the inspection device generates second prediction information, and the second prediction information is used for indicating that the first circuit has a degradation trend and potential safety hazards in a third preset period.
In a second aspect, the application provides a line inspection device, which comprises an acquisition module and a processing module.
The acquisition module is used for acquiring first information and second information, wherein the first information comprises at least one first light attenuation value, the first light attenuation value is a light attenuation value of a first circuit in a first preset period, and the second information comprises at least one second light attenuation value, the second light attenuation value is a light attenuation value of the first circuit in a second preset period, and the second preset period is earlier than the first preset period. And the processing module is used for processing the at least one second light attenuation value to generate a first threshold value, wherein the first threshold value is the average number among the at least one second light attenuation value. The processing module is further configured to generate first prediction information if at least one first light attenuation value has a light attenuation value greater than a first threshold value, where the first prediction information is used to indicate that the first line has a degradation trend within a third preset period, and the third preset period is later than the first preset period.
Optionally, the obtaining module is further configured to obtain at least one third information, where the third information includes at least one third light attenuation value, where the third light attenuation value is a light attenuation value of the second line in the first preset period, and one third information corresponds to one second line. The processing module is further configured to perform variable point detection on at least one third light attenuation value in the third information for each piece of the at least one piece of third information, determine the number of fourth light attenuation values in the at least one third light attenuation value, so as to obtain the number of fourth light attenuation values corresponding to each piece of third information, where the fourth light attenuation value is a light attenuation value corresponding to a mutation point in the at least one third light attenuation value. The processing module is further configured to determine, from at least one second line, a first line according to the number of fourth light attenuation values corresponding to each third information, where the first line is a second line corresponding to third information with the number of fourth light attenuation values being greater than a first preset number threshold. The acquiring module is specifically configured to use third information corresponding to the first line as the first information.
Optionally, the first preset time period includes at least one first preset time, and one first preset time corresponds to one first light attenuation value. The processing module is further configured to divide at least one first light attenuation value according to a first preset time corresponding to each fourth light attenuation value, and generate at least one first set, where the first set includes first light attenuation values between two first preset times corresponding to two adjacent fourth light attenuation values. The processing module is specifically configured to generate first prediction information if a second set exists in at least one first set, where the second set is a first set having a first light attenuation value greater than a first threshold.
Optionally, the processing module is further configured to process the first threshold and a first preset threshold, and generate a second threshold, where the second threshold is a sum of the first threshold and the first preset threshold, and the second threshold is greater than the first threshold. The processing module is specifically configured to generate first prediction information if at least one first light attenuation value has a light attenuation value that is greater than a first threshold value and less than a second threshold value.
Optionally, the processing module is further configured to generate second prediction information if the at least one first light attenuation value has a light attenuation value greater than the second threshold, where the second prediction information is used to indicate that the first line has a degradation trend and has a potential safety hazard in a third preset period.
In a third aspect, the application provides a line inspection apparatus comprising a processor and a memory coupled, the memory for storing one or more programs, the one or more programs comprising computer-executable instructions which, when the line inspection apparatus is operated, are executed by the processor to implement the line inspection method as described in any one of the possible implementations of the first aspect and the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of inspecting a line described in any one of the possible implementations of the first aspect and the first aspect described above.
In a fifth aspect, the present application provides a computer program product for application to a server, the computer program product comprising computer instructions which, when run on the server, implement a method of inspecting a line as described in any one of the possible implementations of the first aspect and the first aspect.
In the above solutions, the technical problems and the technical effects that can be solved by the inspection apparatus, the device, the computer storage medium or the computer program product of the line may be referred to the technical problems and the technical effects that can be solved by the above first aspect, and are not described herein again.
The technical scheme provided by the application has the advantages that the inspection device can acquire first information and second information, the first information comprises at least one first light attenuation value, the first light attenuation value is a light attenuation value of a first circuit in a first preset period, the second information comprises at least one second light attenuation value, the second light attenuation value is a light attenuation value of the first circuit in a second preset period, and the second preset period is earlier than the first preset period. The inspection device may then process the at least one second light decay value to generate a first threshold value, the first threshold value being an average between the at least one second light decay value. The inspection device may then determine whether there is a light decay value of the at least one first light decay value that is greater than a first threshold. If the inspection device determines that the light attenuation value larger than the first threshold exists in the at least one first light attenuation value, the inspection device generates first prediction information, and the first prediction information is used for indicating that the first line has a degradation trend within a third preset period, and the third preset period is later than the first preset period. That is, the inspection apparatus may predict whether the first line has a degradation tendency in a future period based on the historical light attenuation value of the first line. In this way, a prediction of the state of the line can be achieved.
Drawings
Fig. 1 is a schematic diagram of a communication system according to an embodiment of the present application;
fig. 2 is a flow chart of a method for inspecting a circuit according to an embodiment of the present application;
fig. 3 is a flow chart of another method for inspecting a circuit according to an embodiment of the present application;
Fig. 4 is an example schematic diagram of a correspondence between time and light attenuation values according to an embodiment of the present application;
Fig. 5 is an example schematic diagram of a correspondence between a light attenuation value and a first set according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a circuit inspection device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a circuit inspection device according to an embodiment of the present application;
Fig. 8 is a conceptual partial view of a computer program product according to an embodiment of the application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The character "/" herein generally indicates that the associated object is an "or" relationship. For example, A/B may be understood as A or B.
The terms "first" and "second" in the description and in the claims of the application are used for distinguishing between different objects and not for describing a particular sequential order of objects.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules but may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
In addition, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "e.g." should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present concepts in a concrete fashion.
Before describing the line inspection method provided by the embodiment of the present application in detail, the implementation environment and application field Jing Jinhang of the embodiment of the present application will be described.
First, an application scenario of the embodiment of the present application is described.
The line inspection method of the embodiment of the application is applied to the scene of inspecting the state of the line connected with the network element equipment. In the related art, when checking the state of a line connected to a network element device, a management device (such as a server) is required to acquire alarm information from the network element device, and determine the line connected to the network element device in a signal transmission network according to the alarm information. Then, the management device checks the state of the line to which the network element device is connected.
In summary, in the current technical solution, the management device can only check the status of the line connected to the network element device in the signal transmission network when the network element device in the signal transmission network is already affected. Therefore, how to predict the state of the line connected to the network element device is a technical problem to be solved.
In order to solve the above problems, an embodiment of the present application provides a method for inspecting a line, where an inspection device obtains a historical light attenuation value of a line to be inspected, and determines a light attenuation threshold according to the historical light attenuation value. And then, the checking device determines whether a light attenuation value larger than the light attenuation threshold exists in a section of historical light attenuation value of the line to be checked, which is adjacent to the current moment, according to the light attenuation threshold. If so, the inspection device determines that the line to be inspected has a degradation trend, and if not, the inspection device determines that the line to be inspected does not have a degradation trend. That is, the inspection apparatus may predict whether or not the line to be inspected has a degradation tendency in a future period based on the historical light attenuation value of the line to be inspected. In this way, a prediction of the state of the line can be achieved.
The following describes an implementation environment of an embodiment of the present application.
As shown in fig. 1, a communication system according to an embodiment of the present application includes a management device (e.g., a server 101) and at least one network element device (e.g., a network element device 102 and a network element device 103). Wherein the server 101 may perform wired/wireless communication with the network element device 102 (or the network element device 103), and the network element device 102 may be connected to the network element device 103 through an optical fiber line.
The network element device 102 may collect an optical power value of the connected optical fiber line, and send the collected optical power value to the server 101. Similarly, the network element device 103 may collect the optical power value of the connected optical fiber line, and send the collected optical power value to the server 101. After that, the server 101 may receive the optical power value from the network element device 102 and the optical power value from the network element device 103, calculate a difference between the two optical power values, and determine an optical attenuation value of the optical fiber line between the network element device 102 and the network element device 103. After that, the server 101 may predict the state of the optical fiber line between the network element device 102 and the network element device 103 according to the optical attenuation value of the optical fiber line between the network element device 102 and the network element device 103.
The server (e.g., server 101) may be a physical server or a cloud server.
It should be noted that, the type of the network element device (such as the network element device 102 and the network element device 103) in the embodiment of the present application is not limited. For example, the network element device may be a Unified data management (Unified DATA MANAGEMENT, UDM) network element device. As another example, the network element device may be a policy control function (Policy Control Function, PCF) network element device. As another example, the network element device may be a session management function (Session Management Function, SMF) network element device.
After the application scenario and the implementation environment of the embodiment of the present application are described, the method for checking the line provided by the embodiment of the present application is described in detail below with reference to the implementation environment.
The methods in the following embodiments may be implemented in the application scenario and implementation environment described above. Embodiments of the present application will be described in detail below with reference to the drawings attached to the specification.
Fig. 2 is a flow chart of a circuit inspection method according to an embodiment of the present application. As shown in FIG. 2, the method may include S201-S204.
S201, the server acquires the first information and the second information.
The first information comprises at least one first light attenuation value, wherein the first light attenuation value is a light attenuation value of a first circuit in a first preset period, and the second information comprises at least one second light attenuation value, the second light attenuation value is a light attenuation value of the first circuit in a second preset period, and the second preset period is earlier than the first preset period.
The first information comprises a first light attenuation value A, a first light attenuation value B and a first light attenuation value C, and the second information comprises a second light attenuation value A, a second light attenuation value B and a second light attenuation value C. The first light attenuation value A, the first light attenuation value B and the first light attenuation value C are all light attenuation values of an optical fiber line (namely a first line) between 8 am of 2022 12 month 26 am and 3 pm of 2022 12 month 26 am (namely a first preset period), the second light attenuation value A, the second light attenuation value B and the second light attenuation value C are all light attenuation values of the optical fiber line between 7 am of 2022 11 month 25 am and 25 pm of 2022 12 month 25 am (namely a second preset period), the first light attenuation value A is 12 dB/km, the first light attenuation value B is 20 dB/km, the first light attenuation value C is 25 dB/km, the second light attenuation value A is 22 dB/km, the second light attenuation value B is 26 dB/km, and the second light attenuation value C is 24 dB/km.
In one possible design, the first preset time period may include at least one first preset time, where one first preset time corresponds to one first light attenuation value. That is, the first light attenuation value is a light attenuation value of the first line at a first preset time corresponding to the first light attenuation value.
The first preset period of time includes a first preset time a and a first preset time B, where the first preset time a corresponds to a first light attenuation value a and the first preset time B corresponds to a first light attenuation value B. The first preset time period is 25 minutes at 7 am of 2022, 12 months, 26 days, and 25 minutes at 25 pm of 2022, 12 months, 26 days, and 4 minutes at afternoon, the first preset time period A is 39 minutes at 7 am of 2022, 12 months, 26 days, and 39 minutes at 3 pm of 2022, 12 months, 26 days, the first light attenuation value A is 24 dB/km, and the first light attenuation value B is 26 dB/km. It is indicated that the optical fiber line has a light attenuation value of 24 db/km at 39 a.m. of 26 a.m. of 12 months of 2022 and a light attenuation value of 26 db/km at 3 a.m. of 26 a.m. of 12 months of 2022.
Optionally, the second preset time period may include at least one second preset time, where one second preset time corresponds to one second light attenuation value.
In one possible implementation manner, the server may interact with the first network element device and the second network element device respectively, and obtain location information of the first network element device, location information of the second network element device, at least one first optical power value and at least one second optical power value. The first network element equipment is connected with the second network element equipment through a first line, the first network element equipment can send a message to the second network element equipment through the first line, the first optical power value is an optical power value output by the first network element equipment at a third preset time through an optical fiber line, the second optical power value is an optical power value input by the second network element equipment at the third preset time through the optical fiber line, one third preset time corresponds to one first optical power value and one second optical power value, and the third preset time is any one of at least one first preset time and at least one second preset time. Then, for each third preset time, the server may calculate a difference between the first optical power value and the second optical power value corresponding to the third preset time, calculate a difference between the position information of the first network element device and the position information of the second network element device, determine an optical attenuation value of the first line at the third preset time, and obtain the first information and the second information.
The server obtains location information a, a first optical power value a, and a first optical power value B from network element device a, and location information a, a second optical power value a, and a second optical power value B from network element device B. The network element equipment A is connected with the network element equipment B through the optical fiber line A, the network element equipment A can send a message to the network element equipment B through the optical fiber line A, the first optical power value A is an optical power value output by the network element equipment A at the 9 am point 57 of the 26 th month of 2022, the first optical power value B is an optical power value output by the network element equipment A at the 4 am point 49 of the 26 th month of 2022, the second optical power value A is an optical power value input by the network element equipment B at the 9 am point 57 of the 26 th month of 2022 through the optical fiber line A, and the second optical power value B is an optical power value input by the network element equipment B at the 4 am point 49 of the 26 th month of 2022 through the optical fiber line A. If the position information A is latitude 45.189 degrees and longitude 135.567 degrees, the position information B is latitude 45.19799364 and longitude 135.567101, the first optical power value A is-5 dB-mW, the first optical power value B is-7 dB-mW, the second optical power value A is-20 dB-mW, the second optical power value B is-29 dB-mW, 9 A.m. at 2022 12 month 26 is divided into second preset time, 4 A.m. at 2022 12 month 26 is divided into first preset time, the server determines that the light attenuation value of the optical fiber line A at 9 A.m. at 2022 12 month 26 is 15 dB/km, the light attenuation value of the optical fiber line A at 49 A.m. at 4 A.m. at 2022 month 12 month 26 is 22 dB/km, and the first information comprises 22 dB/km, and the second information comprises 15 dB/km.
In one possible design, the light attenuation value of the first line at the third preset time may be represented by formula one.
Wherein D i is used for indicating an optical attenuation value of the first line at the ith third preset time, P 1i is used for indicating a first optical power value corresponding to the ith third preset time, P 2i is used for indicating a second optical power value corresponding to the ith third preset time, V is used for indicating an adjustable optical attenuation value of the first line, S is used for indicating an insertion loss value of the first line, W 1 is used for indicating position information of the first network element device, and W 2 is used for indicating position information of the second network element device.
S202, the server processes at least one second light attenuation value to generate a first threshold value.
Wherein the first threshold is an average between the at least one second light decay values.
Illustratively, the at least one second light attenuation value comprises 12 db/km, 23 db/km, and 19 db/km, and the first threshold value generated by the server is 18 db/km.
S203, the server determines whether a light attenuation value larger than a first threshold exists in at least one first light attenuation value.
In some embodiments, if the server determines that there is a light decay value greater than the first threshold among the at least one first light decay value, the server performs S204.
S204, the server generates first prediction information.
The first prediction information is used for indicating that the first line has a degradation trend in a third preset period, and the third preset period is later than the first preset period.
In one possible design, the first prediction information may include an identification of the first line, a third preset period of time, and a first identification indicating that there is a degradation trend.
Illustratively, the first predictive information includes 20Y3v94, 2022, 12, 27, 11 am, 57 minutes and 101. Wherein 20Y3v94 is an identification of the first line, 101 is used to indicate that there is a degradation trend.
The technical scheme provided by the embodiment at least has the advantages that the server can acquire first information and second information, the first information comprises at least one first light attenuation value, the first light attenuation value is a light attenuation value of a first circuit in a first preset period, the second information comprises at least one second light attenuation value, the second light attenuation value is a light attenuation value of the first circuit in a second preset period, and the second preset period is earlier than the first preset period. The server may then process the at least one second light decay value to generate a first threshold, the first threshold being an average between the at least one second light decay value. The server may then determine whether there is a light decay value of the at least one first light decay value that is greater than a first threshold. If the server determines that the light attenuation value larger than the first threshold exists in the at least one first light attenuation value, the server generates first prediction information, wherein the first prediction information is used for indicating that the first line has a degradation trend in a third preset period, and the third preset period is later than the first preset period. That is, the server may predict whether the first line has a degradation tendency in a future period based on the historical light degradation value of the first line. In this way, a prediction of the state of the line can be achieved.
In some embodiments, if the server determines that there is no light attenuation value greater than the first threshold value in the at least one first light attenuation value, the server generates third prediction information, where the third prediction information is used to indicate that the first line has no degradation tendency within a third preset period.
In some embodiments, the server may process the at least one first light decay value to generate a fifth light decay value, the fifth light decay value being an average between the at least one first light decay value. And then, the server can determine a sixth light attenuation value in the first information according to the second preset threshold, wherein the sixth light attenuation value is at least one light attenuation value smaller than the second preset threshold in the first light attenuation value. And then, the server modifies the sixth light attenuation value in the first information into a fifth light attenuation value to generate fourth information, wherein the light attenuation values in the fourth information are all larger than or equal to a second preset threshold value. Then, the server determines whether there is a light decay value greater than the first threshold in the fourth information.
In the embodiment of the application, if the server determines that the fourth information has the light attenuation value greater than the first threshold value, the server generates the first prediction information.
Optionally, if the server determines that the fourth information does not have a light attenuation value greater than the first threshold, the server generates third prediction information.
In one possible implementation, when the server processes the at least one first light attenuation value, the server may arrange the at least one first light attenuation value in order from the top to the bottom to generate the target sequence. Then, the server may delete the first light attenuation values of the first preset number and the second light attenuation values of the second preset number in the first preset number in the target sequence, and generate at least one sixth light attenuation value. The server may then process the at least one sixth light decay value to generate a fifth light decay value, the fifth light decay value being an average between the at least one sixth light decay value.
Illustratively, the at least one first light attenuation value comprises 12 db/km, 23 db/km, 19 db/km and 20 db/km, and the server generates the target sequence of 12 db/km, 19 db/km, 20 db/km, 23 db/km after arranging the at least one first light attenuation value in order from the top. If the first preset number is 1 and the second preset number is 1, the at least one sixth light attenuation value generated by the server comprises 19 dB/km and 20 dB/km, and the generated fifth light attenuation value is 19 dB/km.
In one possible implementation manner, after the server determines the seventh light attenuation value in the first information, the server may sort the light attenuation values in the first information according to a first preset time corresponding to each light attenuation value in the first information, so as to generate fifth information. Then, the server may determine a third set according to the first preset time and the second preset number threshold corresponding to the seventh light attenuation value in the fifth information, where the third set includes consecutive seventh light attenuation values in the fifth information, and the number of the seventh light attenuation values in the third set is greater than the second preset number threshold. And then, the server modifies the seventh light attenuation value in the third set in the fifth information into a fifth light attenuation value to generate fourth information, wherein the light attenuation values in the fourth information are all larger than or equal to a second preset threshold value.
The first information includes, by way of example, 10 db/km, 33 db/km, 31 db/km, 7 db/km, 9 db/km, and 6 db/km, with a fifth light attenuation value of 16 db/km. The first preset time corresponding to 10 dB/kilometers is 8 am, the first preset time corresponding to 33 dB/kilometers is 9 am, the first preset time corresponding to 31 dB/kilometers is 10 am, the first preset time corresponding to 7 dB/kilometers is 11 am, the first preset time corresponding to 9 dB/kilometers is 1 pm, and the first preset time corresponding to 6 dB/kilometers is 12 am. The server arranges the light attenuation values in the first information to generate fifth information, wherein the fifth information is 10 db/km, 33 db/km, 31 db/km, 7 db/km, 6 db/km, 9 db/km. If the second preset threshold is 11 db/km and the second preset number threshold is 2, the server determines that the third set includes 7 db/km, 6 db/km, 9 db/km and generates fourth information of 10 db/km, 33 db/km, 31 db/km, 16 db/km.
It can be understood that the server can modify the abnormal light attenuation value in the first information by modifying the sixth light attenuation value in the first information into the fifth light attenuation value, so that the influence of the abnormal light attenuation value in the first information on the prediction result is avoided, and the accuracy of the prediction result is improved.
In some embodiments, as shown in FIG. 3, the inspection method of the line may further include, prior to S201, S301-S303
S301, the server acquires at least one piece of third information.
The third information may include at least one third light attenuation value, where the third light attenuation value is a light attenuation value of the second line within the first preset period, one third information corresponds to one second line, and one first preset time corresponds to one third light attenuation value.
S302, for each piece of third information in the at least one piece of third information, the server performs variable point detection on at least one piece of third light attenuation value in the third information, and determines the number of fourth light attenuation values in the at least one piece of third light attenuation value.
The fourth light attenuation value is a light attenuation value corresponding to the mutation point in the at least one third light attenuation value.
Illustratively, as shown in fig. 4, the correspondence between time of day and the light decay value is shown. Wherein, the light attenuation value corresponding to 8:30 and the light attenuation value corresponding to 9:10 are mutation points.
In one possible implementation manner, the server may perform variable point detection on at least one third light attenuation value in the third information through the loss function, and determine a mutation point in the at least one third light attenuation value.
It should be noted that, the loss function in the embodiment of the present application may be a loss function based on a rate of change of the loss function.
In one possible design, the server may determine a predicted light attenuation value corresponding to each first preset time in the first preset period based on the loss function, and calculate a difference between a third light attenuation value corresponding to each first preset time and the predicted light attenuation value, to generate at least one first difference value, where one first preset time corresponds to one first difference value. Then, the server may determine a second difference value of the target period based on each first difference value in the at least one first difference value, and determine a third difference value corresponding to each moment in the target period by a sliding window moving method, where the target period is a sum of the first difference values corresponding to the first preset moments in the target period and the second difference value of any one of the target periods in the first preset period.
It should be noted that, for the process of determining the third difference value corresponding to each time in the target period by the server through the method of moving the sliding window, reference may be made to the description of determining the difference value by moving the sliding window in the conventional technology, which is not repeated herein.
In one possible design, the third difference value corresponding to each time in the target period may be represented by equation two, equation three, equation four, and equation five.
D v=c1(yt)-c2(yt)-c3(yt) equation five.
Wherein c 1(yt) is used for indicating the second difference value of the period (u, w), y ' t is used for indicating the third light attenuation value corresponding to the first preset time t, β 1 is used for indicating the variance coefficient of the period (u, w), ε 1 is used for indicating the regression coefficient of the period (u, w), y ' t-t*β11 is used for indicating the first difference value corresponding to the first preset time in the period (u, w), c 2(yt) is used for indicating the second difference value of the period (u, v), time v is any one of the first preset times in the period (u, w), β 2 is used for indicating the variance coefficient of the period (u, v), ε 2 is used for indicating the regression coefficient of the period (u, v), y ' t-t*β22 is used for indicating the first difference value corresponding to the first preset time t in the period (u, v), ε 3(yt is used for indicating the second difference value corresponding to the first preset time in the period (u, w), β 3 is used for indicating the variance coefficient of the period (v, 3) in the period (u, w), and ε 2 is used for indicating the variance coefficient of the first preset time t in the period (u, v) corresponding to the first difference value in the period (u, w).
In one possible design, the server may use a time when the corresponding third difference value in the target period is smaller than the preset difference threshold as the mutation point. And then, the server can take the third light attenuation value corresponding to the abrupt point as a fourth light attenuation value.
In one possible implementation manner, the server may determine the number of fourth light attenuation values in at least one third light attenuation value in each third information, so as to obtain the number of fourth light attenuation values corresponding to each third information.
S303, the server determines a first line from at least one second line according to the number of fourth light attenuation values corresponding to each piece of third information.
The first circuit is a second circuit corresponding to third information with the number of the fourth light attenuation values being larger than a first preset number threshold.
It can be understood that the server may determine the number of abrupt change points in the historical light attenuation value of each line, and screen out lines with the number of abrupt change points greater than the first preset number threshold according to the number of abrupt change points in the historical light attenuation value of each line. Therefore, the number of lines checked by the server can be reduced, and the efficiency of checking the lines by the server is improved.
In some embodiments, when the server acquires the first information, the server may use the third information corresponding to the first line as the first information.
In some embodiments, after the server obtains the first information, the server may divide at least one first light attenuation value according to a first preset time corresponding to each fourth light attenuation value, and generate at least one first set, where the first set may include first light attenuation values between two first preset times corresponding to two adjacent fourth light attenuation values.
Illustratively, the at least one first light decay value comprises a light decay value A, a light decay value B, a light decay value C, a light decay value D, a light decay value E, and a light decay value F. The first preset time corresponding to the light attenuation value A is 8 am, the first preset time corresponding to the light attenuation value B is 9 am, the first preset time corresponding to the light attenuation value C is 10 am, the first preset time corresponding to the light attenuation value D is 11 am, the first preset time corresponding to the light attenuation value E is 12 am, and the first preset time corresponding to the light attenuation value F is 1 pm. If the light attenuation value B, the light attenuation value D and the light attenuation value F are all fourth light attenuation values, the server generates a first set A and a first set B, wherein the first set A comprises a light attenuation value C, and the first set B comprises a light attenuation value E.
In a possible implementation manner, the server may further divide at least one first light attenuation value according to a first preset time corresponding to each fourth light attenuation value, an initial time of the first preset time period, and an end time of the first preset time period, so as to generate at least one first set, where the first set may further include a first light attenuation value between the initial time of the first preset time period and a first preset time corresponding to an adjacent fourth light attenuation value, and a first light attenuation value between the end time of the first preset time period and a first preset time corresponding to an adjacent fourth light attenuation value.
Illustratively, the at least one first light decay value comprises a light decay value A, a light decay value B, a light decay value C, a light decay value D, a light decay value E, and a light decay value F. The first preset time corresponding to the light attenuation value A is 8 am, the first preset time corresponding to the light attenuation value B is 9 am, the first preset time corresponding to the light attenuation value C is 10 am, the first preset time corresponding to the light attenuation value D is 11 am, the first preset time corresponding to the light attenuation value E is 12 am, and the first preset time corresponding to the light attenuation value F is 1 pm. If the light attenuation value B, the light attenuation value D and the light attenuation value F are all fourth light attenuation values, the server generates a first set A, a first set B, a first set C and a first set D, wherein the first set A comprises the light attenuation value A, the first set B comprises the light attenuation value B and the light attenuation value C, the first set C comprises the light attenuation value D and the light attenuation value E, and the first set D comprises the light attenuation value F.
Alternatively, the server may display at least one first set of at least one first light decay value in the form of an image.
Illustratively, in connection with the correspondence between the moments and the light decay values shown in fig. 4, a correspondence between the light decay values and the first set is shown in fig. 5. The set A, the set B and the set C are all first sets, the set A comprises a light attenuation value corresponding to 8:00, a light attenuation value corresponding to 8:10 and a light attenuation value corresponding to 8:20, the set B comprises a light attenuation value corresponding to 8:30, a light attenuation value corresponding to 8:40, a light attenuation value corresponding to 8:50 and a light attenuation value corresponding to 9:00, and the set C comprises a light attenuation value corresponding to 9:10, a light attenuation value corresponding to 9:20, a light attenuation value corresponding to 9:30, a light attenuation value corresponding to 9:40 and a light attenuation value corresponding to 9:50.
In an embodiment of the present application, in S203, the server may determine whether the second set exists in the at least one first set. Wherein the second set is a first set having a first light decay value greater than a first threshold.
It can be understood that the server may divide the historical light attenuation values of the line according to the abrupt points in the historical light attenuation values of the line, and check the divided light attenuation values. Therefore, the number of the light attenuation values checked by the server can be reduced, and the efficiency of checking the light attenuation values by the server is improved.
In some embodiments, if the server determines that there is a second set in the at least one first set, the server performs S204.
In some embodiments, after the server generates the at least one first set, the server may determine at least one fourth set from the at least one first set, the fourth set being a set of the at least one first set that includes a first preset time instant later than a fourth preset time instant. The server may then determine whether the second set is present in the at least one fourth set. If the server determines that the second set exists in the at least one fourth set, the server performs S204.
In one possible implementation manner, if the number of fourth sets in the at least one first set is smaller than the third preset number, the server may add a fifth set to the at least one fourth set to generate a sixth set of the third preset number, where the sixth set of the third preset number includes the fourth set and the fifth set. The server may then determine whether the second set is present in the third predetermined number of sixth sets. If the server determines that the second set exists in the third preset number of sixth sets, the server executes S204.
It can be understood that after the server divides the historical light attenuation values of the line, the server can screen the divided light attenuation values and check the divided and screened light attenuation values. Therefore, the number of the light attenuation values checked by the server can be reduced, and the efficiency of checking the light attenuation values by the server is improved.
In some embodiments, after S202, the server may process the first threshold value and the first preset threshold value to generate the second threshold value. The second threshold is the sum of the first threshold and a first preset threshold, and the second threshold is larger than the first threshold. The server may then determine whether there is a light decay value of the at least one first light decay value that is greater than a first threshold and less than a second threshold.
It is understood that the server may generate the second threshold according to the first threshold and the first preset threshold. The server may then determine whether there is a light decay value of the at least one first light decay value that is greater than a first threshold and less than a second threshold. Therefore, valuable references can be provided for the server to predict the state of the line, the reference quantity of the server to the state prediction of the line is increased, and the accuracy of the prediction result is improved.
In some embodiments, if the server determines that there is a light decay value greater than the first threshold and less than the second threshold in the at least one first light decay value, the server performs S204.
In other embodiments, the server generates the second predictive information if the server determines that there is a light decay value greater than a second threshold in the at least one first light decay value. The second prediction information is used for indicating that the first line has a degradation trend within a third preset period and has potential safety hazards.
In some embodiments, the number of first lines may be a plurality. The server may obtain first information and second information corresponding to each of the plurality of first lines. And then, the server can determine whether the light attenuation value which is larger than a first threshold value and smaller than a second threshold value exists in at least one first light attenuation value corresponding to each first line, classify the first lines and determine a first line, a second line and a third line. The first type of lines are first lines with first light attenuation values larger than a first threshold value and smaller than a second threshold value, the second type of lines are first lines with first light attenuation values larger than the second threshold value, and the third type of lines are first lines with first light attenuation values smaller than the first threshold value. Then, the server may generate first prediction information for the first type of line, second prediction information for the second type of line, and third prediction information for the third type of line.
It should be noted that, in the process of classifying the plurality of first lines by the server, the server may classify the plurality of first lines by using the multi-classifier with the extreme gradient lifting (eXtreme Gradient Boosting, XGBoost).
The foregoing description of the solution provided by the embodiments of the present application has been presented primarily in terms of a computer device. It will be appreciated that the computer device, in order to carry out the functions described above, comprises corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative method steps of a circuit inspection described in connection with the disclosed embodiments of the application may be implemented as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application also provides a device for checking the circuit. The line inspection device may be a computer device, a CPU in the computer device, a processing module for inspecting a line in the computer device, or a client for inspecting a line in the computer device.
The embodiment of the application can divide the functional modules or functional units of the line inspection device according to the method example, for example, each functional module or functional unit can be divided corresponding to each function, and two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware, or in software functional modules or functional units. The division of the modules or units in the embodiment of the present application is schematic, which is merely a logic function division, and other division manners may be implemented in practice.
Fig. 6 is a schematic structural diagram of a circuit inspection device according to an embodiment of the present application. The inspection apparatus of the line is used to perform the inspection method of the line shown in fig. 2 or 3. The inspection apparatus 600 of a line may include an acquisition module 601 and a processing module 602.
The obtaining module 601 is configured to obtain first information and second information, where the first information includes at least one first light attenuation value, the first light attenuation value is a light attenuation value of the first line within a first preset period, and the second information includes at least one second light attenuation value, the second light attenuation value is a light attenuation value of the first line within a second preset period, and the second preset period is earlier than the first preset period. The processing module 602 is configured to process the at least one second light attenuation value, and generate a first threshold, where the first threshold is an average between the at least one second light attenuation value. The processing module 602 is further configured to generate first prediction information if there is a light attenuation value greater than a first threshold in the at least one first light attenuation value, where the first prediction information is used to indicate that the first line has a degradation trend within a third preset period, and the third preset period is later than the first preset period.
Optionally, the obtaining module 601 is further configured to obtain at least one third information, where the third information includes at least one third light attenuation value, the third light attenuation value is a light attenuation value of the second line within the first preset period, and one third information corresponds to one second line. The processing module 602 is further configured to perform variable point detection on at least one third light attenuation value in the third information for each third information in the at least one third information, determine the number of fourth light attenuation values in the at least one third light attenuation value, so as to obtain the number of fourth light attenuation values corresponding to each third information, where the fourth light attenuation value is a light attenuation value corresponding to a mutation point in the at least one third light attenuation value. The processing module 602 is further configured to determine, from at least one second line, a first line according to the number of fourth light attenuation values corresponding to each third information, where the first line is a second line corresponding to third information with the number of fourth light attenuation values being greater than a first preset number threshold. The obtaining module 601 is specifically configured to take the third information corresponding to the first line as the first information.
Optionally, the first preset time period includes at least one first preset time, and one first preset time corresponds to one first light attenuation value. The processing module 602 is further configured to divide at least one first light attenuation value according to a first preset time corresponding to each fourth light attenuation value, and generate at least one first set, where the first set includes first light attenuation values between two first preset times corresponding to two adjacent fourth light attenuation values. The processing module 602 is specifically configured to generate the first prediction information if there is a second set in the at least one first set, where the second set is a first set having a first light attenuation value greater than a first threshold.
Optionally, the processing module 602 is further configured to process the first threshold and a first preset threshold, and generate a second threshold, where the second threshold is a sum of the first threshold and the first preset threshold, and the second threshold is greater than the first threshold. The processing module 602 is specifically configured to generate the first prediction information if there is a light attenuation value that is greater than the first threshold and less than the second threshold in the at least one first light attenuation value.
Optionally, the processing module 602 is further configured to generate second prediction information if the at least one first light attenuation value has a light attenuation value greater than the second threshold, where the second prediction information is used to indicate that the first line has a degradation trend and has a potential safety hazard in a third preset period.
Fig. 7 is a schematic diagram showing a hardware configuration of an inspection apparatus of a line according to an exemplary embodiment. The line inspection apparatus may include a processor 702, the processor 702 being configured to execute application code to implement the line inspection method of the present application.
The processor 702 may be a central processing unit (central processing unit, CPU), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the programs of the present application.
As shown in fig. 7, the inspection apparatus of the line may further include a memory 703. The memory 703 is used for storing application program codes for executing the present application, and is controlled by the processor 702.
The memory 703 may be, but is not limited to, read-only memory (ROM) or other type of static storage device that can store static information and instructions, random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, as well as electrically erasable programmable read-only memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ-only memory, EEPROM), compact disc read-only memory (compact disc read-only memory) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 703 may be separate and coupled to the processor 702 via a bus 704. Memory 703 may also be integrated with processor 702.
As shown in fig. 7, the inspection device of the line may further comprise a communication interface 701, wherein the communication interface 701, the processor 702, the memory 703 may be coupled to each other, e.g. via a bus 704. The communication interface 701 is used for information interaction with other devices, such as a line-supporting inspection device.
It should be noted that the apparatus structure shown in fig. 7 does not constitute a limitation of the inspection apparatus of the line, and the inspection apparatus of the line may include more or less components than those shown in fig. 7, or may combine some components, or may be arranged with different components.
In actual implementation, the functions implemented by the processing module 602 may be implemented by the processor 702 shown in fig. 7 invoking program code in the memory 703.
The present application also provides a computer-readable storage medium having instructions stored thereon that, when executed by a processor of a computer device, enable the computer to perform the method of inspecting a line provided by the above-described illustrated embodiment. For example, the computer readable storage medium may be a memory 703 comprising instructions executable by a processor 702 of a computer device to perform the methods described above. Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
FIG. 8 schematically illustrates a conceptual partial view of a computer program product provided by an embodiment of the application, the computer program product comprising a computer program for executing a computer process on a computing device.
In one embodiment, a computer program product is provided using signal bearing medium 800. Signal bearing medium 800 may include one or more program instructions that when executed by one or more processors may provide the functionality or portions of the functionality described above with respect to fig. 2 or 3. Thus, for example, referring to the embodiment shown in FIG. 2, one or more features of S201-S204 may be borne by one or more instructions associated with the signal bearing medium 800. Further, the program instructions in fig. 8 also describe example instructions.
In some examples, signal bearing medium 800 may comprise a computer readable medium 801 such as, but not limited to, a hard disk drive, compact Disk (CD), digital Video Disk (DVD), digital tape, memory, read-only memory (ROM), or random access memory (random access memory, RAM), among others.
In some implementations, the signal bearing medium 800 may comprise a computer recordable medium 802 such as, but not limited to, memory, read/write (R/W) CD, R/W DVD, and the like.
In some implementations, the signal bearing medium 800 may include a communication medium 803 such as, but not limited to, a digital and/or analog communication medium (e.g., fiber optic cable, waveguide, wired communications link, wireless communications link, etc.).
The signal bearing medium 800 may be conveyed by a communication medium 803 in wireless form. The one or more program instructions may be, for example, computer-executable instructions or logic-implemented instructions.
In some examples, an inspection device such as the circuitry described with respect to fig. 6 may be configured to provide various operations, functions, or actions in response to program instructions through one or more of computer readable medium 801, computer recordable medium 802, and/or communication medium 803.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules, so as to perform all the above-described classification or part of the functions.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be in one place, or may be distributed in a plurality of different places. The purpose of the embodiment scheme can be achieved by selecting part or all of the classification part units according to actual needs.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application, or the portion contributing to the prior art or the whole classification portion or portion of the technical solution, may be embodied in the form of a software product stored in a storage medium, where the software product includes several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to execute the whole classification portion or part of the steps of the method of the embodiments of the present application. The storage medium includes a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc. which can store the program codes.
The present application is not limited to the above embodiments, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1.一种线路的检查方法,其特征在于,所述方法包括:1. A line inspection method, characterized in that the method comprises: 获取第一信息和第二信息,所述第一信息包括:至少一个第一光衰值,所述第一光衰值为第一预设时段内第一线路的光衰值,所述第二信息包括:至少一个第二光衰值,所述第二光衰值为第二预设时段内所述第一线路的光衰值,所述第二预设时段早于所述第一预设时段;Acquire first information and second information, the first information comprising: at least one first optical attenuation value, the first optical attenuation value being an optical attenuation value of a first line within a first preset time period, the second information comprising: at least one second optical attenuation value, the second optical attenuation value being an optical attenuation value of the first line within a second preset time period, the second preset time period being earlier than the first preset time period; 对所述至少一个第二光衰值进行处理,生成第一阈值,所述第一阈值为所述至少一个第二光衰值之间的平均数;Processing the at least one second light attenuation value to generate a first threshold value, where the first threshold value is an average of the at least one second light attenuation value; 若所述至少一个第一光衰值中存在大于所述第一阈值的光衰值,则生成第一预测信息,所述第一预测信息用于指示所述第一线路在第三预设时段内存在劣化趋势,所述第三预设时段晚于所述第一预设时段;If there is an optical attenuation value greater than the first threshold value among the at least one first optical attenuation value, generating first prediction information, wherein the first prediction information is used to indicate that the first line has a degradation trend within a third preset time period, and the third preset time period is later than the first preset time period; 其中,在获取所述第一信息之前,所述方法还包括:Before obtaining the first information, the method further includes: 获取至少一个第三信息,所述第三信息包括:至少一个第三光衰值,所述第三光衰值为所述第一预设时段内第二线路的光衰值,一个所述第三信息对应一个所述第二线路;Acquire at least one third information, the third information comprising: at least one third optical attenuation value, the third optical attenuation value being an optical attenuation value of the second line within the first preset time period, one third information corresponding to one second line; 对于所述至少一个所述第三信息中每个所述第三信息,对所述第三信息中的所述至少一个第三光衰值进行变点检测,确定所述至少一个第三光衰值中第四光衰值的数量,以获取每个所述第三信息对应的所述第四光衰值的数量,所述第四光衰值为所述至少一个第三光衰值中突变点对应的光衰值;For each of the at least one third information, performing change point detection on the at least one third light attenuation value in the third information, determining the number of fourth light attenuation values in the at least one third light attenuation value, so as to obtain the number of fourth light attenuation values corresponding to each of the third information, where the fourth light attenuation value is a light attenuation value corresponding to a mutation point in the at least one third light attenuation value; 根据每个所述第三信息对应的所述第四光衰值的数量,从至少一个所述第二线路中确定第一线路,所述第一线路为所述第四光衰值的数量大于第一预设数量阈值的所述第三信息对应的所述第二线路;Determine a first line from at least one of the second lines according to the number of the fourth optical attenuation values corresponding to each of the third information, the first line being the second line corresponding to the third information whose number of the fourth optical attenuation values is greater than a first preset number threshold; 获取所述第一信息,包括:Acquiring the first information includes: 将所述第一线路对应的所述第三信息作为所述第一信息。The third information corresponding to the first line is used as the first information. 2.根据权利要求1所述的方法,其特征在于,所述第一预设时段包括:至少一个第一预设时刻,一个第一预设时刻对应一个第一光衰值;在获取第一信息之后,所述方法还包括:2. The method according to claim 1, characterized in that the first preset time period includes: at least one first preset moment, and one first preset moment corresponds to one first light attenuation value; after obtaining the first information, the method further includes: 根据每个所述第四光衰值对应的所述第一预设时刻,对所述至少一个第一光衰值进行划分,生成至少一个第一集合,所述第一集合包括:相邻的两个所述第四光衰值对应的两个所述第一预设时刻之间的所述第一光衰值;According to the first preset moment corresponding to each of the fourth light attenuation values, the at least one first light attenuation value is divided to generate at least one first set, wherein the first set includes: the first light attenuation value between two first preset moments corresponding to two adjacent fourth light attenuation values; 所述若所述至少一个第一光衰值中存在大于第一阈值的光衰值,则生成第一预测信息,包括:If there is a light attenuation value greater than a first threshold value among the at least one first light attenuation value, generating first prediction information includes: 若所述至少一个第一集合中存在第二集合,则生成所述第一预测信息,所述第二集合为存在大于所述第一阈值的第一光衰值的所述第一集合。If a second set exists in the at least one first set, the first prediction information is generated, and the second set is the first set having a first light attenuation value greater than the first threshold. 3.根据权利要求1或2所述的方法,其特征在于,在所述对所述至少一个第二光衰值进行处理,生成第一阈值之后,所述方法还包括:3. The method according to claim 1 or 2, characterized in that after processing the at least one second optical attenuation value to generate the first threshold, the method further comprises: 对所述第一阈值与第一预设阈值进行处理,生成第二阈值,所述第二阈值为所述第一阈值与所述第一预设阈值之和,所述第二阈值大于所述第一阈值;Processing the first threshold and a first preset threshold to generate a second threshold, where the second threshold is the sum of the first threshold and the first preset threshold, and the second threshold is greater than the first threshold; 生成所述第一预测信息,包括:Generating the first prediction information includes: 若所述至少一个第一光衰值中存在大于所述第一阈值、且小于所述第二阈值的光衰值,则生成所述第一预测信息。If there is a light attenuation value greater than the first threshold and less than the second threshold among the at least one first light attenuation value, the first prediction information is generated. 4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. The method according to claim 3, characterized in that the method further comprises: 若所述至少一个第一光衰值中存在大于所述第二阈值的光衰值,则生成第二预测信息,所述第二预测信息用于指示所述第一线路在所述第三预设时段内存在劣化趋势、且存在安全隐患。If there is an optical attenuation value greater than the second threshold value among the at least one first optical attenuation value, second prediction information is generated, where the second prediction information is used to indicate that the first line has a degradation trend within the third preset time period and there is a safety hazard. 5.一种线路的检查装置,其特征在于,所述装置包括:5. A line inspection device, characterized in that the device comprises: 获取模块,用于获取第一信息和第二信息,所述第一信息包括:至少一个第一光衰值,所述第一光衰值为第一预设时段内第一线路的光衰值,所述第二信息包括:至少一个第二光衰值,所述第二光衰值为第二预设时段内所述第一线路的光衰值,所述第二预设时段早于所述第一预设时段;an acquisition module, configured to acquire first information and second information, wherein the first information includes: at least one first optical attenuation value, the first optical attenuation value being an optical attenuation value of a first line within a first preset time period, and the second information includes: at least one second optical attenuation value, the second optical attenuation value being an optical attenuation value of the first line within a second preset time period, the second preset time period being earlier than the first preset time period; 处理模块,用于对所述至少一个第二光衰值进行处理,生成第一阈值,所述第一阈值为所述至少一个第二光衰值之间的平均数;A processing module, configured to process the at least one second light attenuation value to generate a first threshold value, wherein the first threshold value is an average value between the at least one second light attenuation value; 所述处理模块,还用于若所述至少一个第一光衰值中存在大于所述第一阈值的光衰值,则生成第一预测信息,所述第一预测信息用于指示所述第一线路在第三预设时段内存在劣化趋势,所述第三预设时段晚于所述第一预设时段;The processing module is further configured to generate first prediction information if there is a light attenuation value greater than the first threshold value among the at least one first light attenuation value, wherein the first prediction information is used to indicate that the first line has a degradation trend within a third preset time period, and the third preset time period is later than the first preset time period; 其中,所述获取模块,还用于获取至少一个第三信息,所述第三信息包括:至少一个第三光衰值,所述第三光衰值为所述第一预设时段内第二线路的光衰值,一个所述第三信息对应一个所述第二线路;The acquisition module is further used to acquire at least one third information, wherein the third information includes: at least one third optical attenuation value, the third optical attenuation value is the optical attenuation value of the second line within the first preset time period, and one third information corresponds to one second line; 所述处理模块,还用于对于所述至少一个所述第三信息中每个所述第三信息,对所述第三信息中的所述至少一个第三光衰值进行变点检测,确定所述至少一个第三光衰值中第四光衰值的数量,以获取每个所述第三信息对应的所述第四光衰值的数量,所述第四光衰值为所述至少一个第三光衰值中突变点对应的光衰值;The processing module is further configured to perform change point detection on the at least one third light attenuation value in the at least one third information for each of the at least one third information, determine the number of fourth light attenuation values in the at least one third light attenuation value, and obtain the number of fourth light attenuation values corresponding to each of the third information, where the fourth light attenuation value is a light attenuation value corresponding to a mutation point in the at least one third light attenuation value; 所述处理模块,还用于根据每个所述第三信息对应的所述第四光衰值的数量,从至少一个所述第二线路中确定第一线路,所述第一线路为所述第四光衰值的数量大于第一预设数量阈值的所述第三信息对应的所述第二线路;The processing module is further used to determine a first line from at least one of the second lines according to the number of the fourth optical attenuation values corresponding to each of the third information, the first line being the second line corresponding to the third information whose number of the fourth optical attenuation values is greater than a first preset number threshold; 所述获取模块,具体用于将所述第一线路对应的所述第三信息作为所述第一信息。The acquisition module is specifically configured to use the third information corresponding to the first line as the first information. 6.根据权利要求5所述的装置,其特征在于,所述第一预设时段包括:至少一个第一预设时刻,一个第一预设时刻对应一个第一光衰值;6. The device according to claim 5, characterized in that the first preset period includes: at least one first preset moment, and one first preset moment corresponds to one first light attenuation value; 所述处理模块,还用于根据每个所述第四光衰值对应的所述第一预设时刻,对所述至少一个第一光衰值进行划分,生成至少一个第一集合,所述第一集合包括:相邻的两个所述第四光衰值对应的两个所述第一预设时刻之间的所述第一光衰值;The processing module is further used to divide the at least one first light attenuation value according to the first preset moment corresponding to each of the fourth light attenuation values to generate at least one first set, wherein the first set includes: the first light attenuation value between two first preset moments corresponding to two adjacent fourth light attenuation values; 所述处理模块,具体用于若所述至少一个第一集合中存在第二集合,则生成所述第一预测信息,所述第二集合为存在大于所述第一阈值的第一光衰值的所述第一集合。The processing module is specifically configured to generate the first prediction information if a second set exists in the at least one first set, where the second set is the first set having a first light attenuation value greater than the first threshold. 7.根据权利要求5或6所述的装置,其特征在于,7. The device according to claim 5 or 6, characterized in that 所述处理模块,还用于对所述第一阈值与第一预设阈值进行处理,生成第二阈值,所述第二阈值为所述第一阈值与所述第一预设阈值之和,所述第二阈值大于所述第一阈值;The processing module is further used to process the first threshold and a first preset threshold to generate a second threshold, where the second threshold is the sum of the first threshold and the first preset threshold, and the second threshold is greater than the first threshold; 所述处理模块,具体用于若所述至少一个第一光衰值中存在大于所述第一阈值、且小于所述第二阈值的光衰值,则生成所述第一预测信息。The processing module is specifically configured to generate the first prediction information if there is a light attenuation value greater than the first threshold and less than the second threshold among the at least one first light attenuation value. 8.根据权利要求7所述的装置,其特征在于,8. The device according to claim 7, characterized in that 所述处理模块,还用于若所述至少一个第一光衰值中存在大于所述第二阈值的光衰值,则生成第二预测信息,所述第二预测信息用于指示所述第一线路在所述第三预设时段内存在劣化趋势、且存在安全隐患。The processing module is further configured to generate second prediction information if a light attenuation value greater than the second threshold value exists among the at least one first light attenuation value, wherein the second prediction information is configured to indicate that the first line has a degradation trend within the third preset time period and has a safety hazard. 9.一种线路的检查设备,其特征在于,包括:处理器和存储器;所述处理器和所述存储器耦合;所述存储器用于存储一个或多个程序,所述一个或多个程序包括计算机执行指令,当所述线路的检查设备运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述线路的检查设备执行如权利要求1-4中任一项所述的线路的检查方法。9. A line inspection device, characterized in that it comprises: a processor and a memory; the processor and the memory are coupled; the memory is used to store one or more programs, the one or more programs include computer execution instructions, and when the line inspection device is running, the processor executes the computer execution instructions stored in the memory, so that the line inspection device performs the line inspection method as described in any one of claims 1-4. 10.一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当计算机执行所述指令时,所述计算机执行如权利要求1-4中任一项所述的线路的检查方法。10. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, wherein when a computer executes the instructions, the computer executes the line inspection method according to any one of claims 1 to 4.
CN202310168010.5A 2023-02-13 2023-02-13 Line inspection method, device, equipment and storage medium Active CN116232451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310168010.5A CN116232451B (en) 2023-02-13 2023-02-13 Line inspection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310168010.5A CN116232451B (en) 2023-02-13 2023-02-13 Line inspection method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116232451A CN116232451A (en) 2023-06-06
CN116232451B true CN116232451B (en) 2024-11-29

Family

ID=86569148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310168010.5A Active CN116232451B (en) 2023-02-13 2023-02-13 Line inspection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116232451B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108988938A (en) * 2018-07-22 2018-12-11 国网山东省电力公司信息通信公司 Electric power communication network optical cable risk early warning and disposal method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080292312A1 (en) * 2007-05-21 2008-11-27 Tellabs Petaluma, Inc. Method and apparatus for determining optical path attenuation between passive optical network nodes
US11342989B2 (en) * 2018-05-29 2022-05-24 Sumitomo Electric Industries, Ltd. Method for measuring transmission loss of optical fiber and OTDR measurement device
CN112787716B (en) * 2019-11-08 2024-10-25 南京中兴新软件有限责任公司 Fault detection method and device, electronic equipment and computer readable medium
CN115001581B (en) * 2022-06-16 2023-05-16 中国联合网络通信集团有限公司 Optical attenuation processing method, equipment and storage medium of optical network unit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108988938A (en) * 2018-07-22 2018-12-11 国网山东省电力公司信息通信公司 Electric power communication network optical cable risk early warning and disposal method

Also Published As

Publication number Publication date
CN116232451A (en) 2023-06-06

Similar Documents

Publication Publication Date Title
CN109359793B (en) Prediction model training method and device for new scene
CN112561077B (en) Training method and device of multi-task model and electronic equipment
US10956001B2 (en) Progress bar updated based on crowd sourced statistics
US20130205027A1 (en) Automatic Cloud Provisioning Based on Related Internet News and Social Network Trends
US11514507B2 (en) Virtual image prediction and generation
CN114003473A (en) Page operation behavior backtracking method and device and electronic equipment
CN112416700B (en) Analyzing startup predictive failure and SMART logs
US11556650B2 (en) Methods and systems for preventing utilization of problematic software
US20190297473A1 (en) Data usage recommendation generator
US9569614B2 (en) Capturing correlations between activity and non-activity attributes using N-grams
US10535011B2 (en) Predicting capacity based upon database elements
CN116232451B (en) Line inspection method, device, equipment and storage medium
CN111414921B (en) Sample image processing method, device, electronic equipment and computer storage medium
CN116319386A (en) Availability and fault prediction method and device, electronic equipment and medium
US20220215556A1 (en) System and method for instance segmentation in pathological images using object-guided framework
CN113361677B (en) Quantification method and device for neural network model
CN115187364A (en) Method and device for monitoring deposit risk under bank distributed scene
US9733931B2 (en) Configuration management of engineering artifacts with automatic identification of related change sets based on type system
CN114138199A (en) Data brushing path management method and device, electronic equipment and storage medium
CN118096192B (en) Information pushing method, device, equipment and medium based on graph neural network
US10541887B2 (en) Characterization and assessment of information technology service events
US10229169B2 (en) Eliminating false predictors in data-mining
CN111310901B (en) Method and device for acquiring samples
CN118314401B (en) Method, device, computer equipment and storage medium for determining target labeling type
CN119313133A (en) Risk control analysis method and device

Legal Events

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