A positioning system and method for measuring oil leakage using optical fiber
Through multi-dimensional data analysis and real-time monitoring, the problem of poor adaptability of fiber oil leakage positioning method in complex scenarios is solved, accurate oil leakage positioning and rapid response are achieved, and fiber protection efficiency is improved.
Patent Information
- Application Number
- CN202411225598.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-09-03
AI Technical Summary
The existing fiber oil leakage positioning method has poor adaptability and low detection accuracy in complex application scenarios, and has failed to comprehensively consider the impact of multiple factors on signal transmission.
Through multi-dimensional data analysis and real-time monitoring, fiber length, power and resource occupancy data are obtained, the number of unidirectional transmission codes is calculated, the bidirectional transmission code information is obtained in real time, the received code meets the preset requirements, and the oil leakage position is located.
It improves the accuracy and adaptability of positioning, can quickly deal with oil leakage events, improve fiber protection efficiency, and reduce losses and harms caused by oil leakage.
Smart Images

Figure CN118729169B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of optical fiber oil leakage positioning, and in particular relates to a positioning system and method applied to optical fiber oil leakage measurement. Background Art
[0002] With the development of the petroleum industry, the transportation safety of oil and gas pipelines has become the focus of attention within and outside the industry. Although traditional oil leak detection methods, such as manual inspections and ground sensor monitoring, can detect oil leaks to a certain extent, they have limitations such as low detection efficiency, poor positioning accuracy, and susceptibility to environmental interference. In recent years, with the continuous development of fiber optic sensing technology, fiber optic measurement of oil leak positioning methods has gradually become a research hotspot.
[0003] Existing fiber optic measurement and oil leak location methods usually only consider a single factor and fail to comprehensively consider the impact of multiple factors on signal transmission, resulting in poor adaptability of fiber optic oil leak detection in complex application scenarios, the inability to adjust fiber optic detection adaptively, and low accuracy of oil leak detection. Summary of the invention
[0004] The purpose of the present invention is to provide a positioning method for optical fiber oil leakage measurement, which can achieve accurate detection and positioning of optical fiber oil leakage through multi-dimensional data analysis and real-time monitoring, and enhance adaptability.
[0005] The technical solution adopted by the present invention is as follows:
[0006] A positioning method for measuring oil leakage using optical fiber, comprising:
[0007] Obtain optical fiber length data, and obtain a length weight coefficient according to the optical fiber length data;
[0008] Establish a detection cycle, obtain the power data of optical fiber transmission during the detection period, and obtain the power weight coefficient based on the power data;
[0009] Obtaining fiber transmission resource occupancy data and resource idle data during the detection period, and obtaining a fiber transmission resource weight coefficient according to the fiber transmission resource occupancy data and resource idle data;
[0010] Calculate the number of optical fiber unidirectional transmission codes according to the length weight coefficient, the power weight coefficient and the optical fiber transmission resource weight coefficient;
[0011] Obtain optical fiber bidirectional transmission coding data synchronously transmitted at both ends of the optical fiber according to the optical fiber unidirectional transmission coding quantity, and obtain optical fiber reception coding information received at both ends of the optical fiber in real time according to the optical fiber bidirectional transmission coding data;
[0012] Determine whether the optical fiber receiving coding information received at both ends of the optical fiber meets the preset requirements. If not, mark it as interrupting the optical fiber receiving coding group;
[0013] The oil leak position is located according to the interrupted optical fiber receiving code group.
[0014] In a preferred embodiment, the step of obtaining optical fiber length data and obtaining a length weight coefficient according to the optical fiber length data comprises:
[0015] Obtain optical fiber length data;
[0016] Obtaining a corresponding optical fiber length value according to the optical fiber length data;
[0017] Get the standard length value of optical fiber;
[0018] Get the length weight function;
[0019] The fiber length value and the fiber standard length value are input into the length weight function, and the output result is labeled as the length weight coefficient.
[0020] In a preferred embodiment, the steps of constructing a detection cycle, obtaining power data of optical fiber transmission during the detection period, and calculating a power weight coefficient according to the power data include:
[0021] Building a testing cycle;
[0022] Obtaining power data of optical fiber transmission during a detection period, wherein the power data includes multiple historical signal powers and current signal powers;
[0023] Get the power weight function;
[0024] A plurality of historical signal powers and a current signal power are input into a power weight function, and an output result is marked as a power weight coefficient.
[0025] In a preferred solution, the step of obtaining the optical fiber transmission resource occupancy data and resource idle data within the detection period, and obtaining the optical fiber transmission resource weight coefficient according to the optical fiber transmission resource occupancy data and resource idle data, comprises:
[0026] Obtain fiber transmission resource occupancy data and resource idle data during the detection period;
[0027] Obtaining corresponding occupancy rates of multiple optical fiber transmission resources according to the optical fiber transmission resource occupancy data;
[0028] Obtain corresponding multiple resource idle rates according to resource idle data;
[0029] Obtaining optical fiber transmission resource weight function;
[0030] A plurality of optical fiber transmission resource occupancy rates and a plurality of resource idle rates are input into an optical fiber transmission resource weight function, and an output result is marked as an optical fiber transmission resource weight coefficient.
[0031] In a preferred embodiment, the step of calculating the number of optical fiber unidirectional transmission codes according to the length weight coefficient, the power weight coefficient and the optical fiber transmission resource weight coefficient comprises:
[0032] Obtain optical fiber unidirectional transmission coding function;
[0033] Get the standard encoding value of optical fiber unidirectional transmission;
[0034] The length weight coefficient, the power weight coefficient, the optical fiber transmission resource weight coefficient and the optical fiber unidirectional transmission standard coding value are input into the optical fiber unidirectional transmission coding function, and the output result is marked as the optical fiber unidirectional transmission coding quantity.
[0035] In a preferred embodiment, the step of obtaining optical fiber bidirectional transmission coding data synchronously transmitted at both ends of the optical fiber according to the optical fiber unidirectional transmission coding quantity, and obtaining optical fiber reception coding information received at both ends of the optical fiber in real time according to the optical fiber bidirectional transmission coding data, comprises:
[0036] Constructing a plurality of corresponding optical fiber unidirectional transmission coding values according to the number of optical fiber unidirectional transmission codes, and summarizing them into optical fiber unidirectional transmission coding data, wherein when the first optical fiber unidirectional transmission coding value in the optical fiber unidirectional transmission coding data reaches the receiving end from the transmission end of the optical fiber, the last optical fiber unidirectional transmission coding value in the optical fiber unidirectional transmission coding data starts to be transmitted from the transmission end of the optical fiber;
[0037] Establishing optical fiber bidirectional transmission coded data for synchronous transmission at both ends of the optical fiber according to the optical fiber unidirectional transmission coded data;
[0038] According to the optical fiber bidirectional transmission coding data, the optical fiber bidirectional transmission coding values received at both ends of the optical fiber are collected in real time, and the two optical fiber bidirectional transmission coding values collected in real time are formed into an optical fiber bidirectional transmission coding group, and summarized as optical fiber reception coding information.
[0039] In a preferred embodiment, the step of determining whether the optical fiber receiving coding information received at both ends of the optical fiber meets the preset requirements, and if not, marking the interruption of the optical fiber receiving coding group includes:
[0040] Determine whether the optical fiber receiving coding information received at both ends of the optical fiber is interrupted;
[0041] If the optical fiber receiving coding information received at both ends of the optical fiber is interrupted, it is determined that an oil leak occurs in the oil pipeline, and the two optical fiber receiving coding values received at both ends of the optical fiber during the interruption are marked as an interrupted optical fiber receiving coding group;
[0042] If the optical fiber receiving coding information received at both ends of the optical fiber is not interrupted, it is determined that the oil pipeline is normal.
[0043] In a preferred embodiment, the step of locating the oil leak position according to the interrupted optical fiber receiving code group includes:
[0044] Obtaining a coded oil leakage table, wherein the coded oil leakage table includes a plurality of optical fiber receiving code groups and an oil pipeline leakage position corresponding to each optical fiber receiving code group;
[0045] Obtaining the corresponding target optical fiber receiving code group according to the interrupted optical fiber receiving code group;
[0046] The corresponding oil pipeline oil leakage position is obtained from the coded oil leakage table according to the target optical fiber receiving code group.
[0047] The present invention also provides a positioning system for optical fiber oil leakage measurement, which is used in the above-mentioned positioning method for optical fiber oil leakage measurement, comprising:
[0048] The optical fiber length module is used to obtain the optical fiber length data and obtain the length weight coefficient according to the optical fiber length data;
[0049] The power module is used to construct a detection cycle, obtain the power data of the optical fiber transmission during the detection period, and obtain the power weight coefficient according to the power data;
[0050] The system resource module is used to obtain the fiber transmission resource occupancy data and resource idle data during the detection period, and obtain the fiber transmission resource weight coefficient according to the fiber transmission resource occupancy data and resource idle data;
[0051] A coding quantity module is used to calculate the number of optical fiber unidirectional transmission codes according to the length weight coefficient, the power weight coefficient and the optical fiber transmission resource weight coefficient;
[0052] The cyclic coding module is used to obtain the optical fiber bidirectional transmission coding data synchronously transmitted at both ends of the optical fiber according to the optical fiber unidirectional transmission coding quantity, and to obtain the optical fiber reception coding information received at both ends of the optical fiber in real time according to the optical fiber bidirectional transmission coding data;
[0053] The oil leakage judgment module is used to judge whether the optical fiber receiving coding information received at both ends of the optical fiber meets the preset requirements. If not, it is marked as interrupting the optical fiber receiving coding group;
[0054] The oil leakage locating module is used to locate the oil leakage position according to the interrupted optical fiber receiving code group.
[0055] And, a positioning terminal for optical fiber oil leakage measurement, comprising:
[0056] one or more processors;
[0057] a storage device having one or more programs stored thereon;
[0058] When the one or more programs are executed by the one or more processors, the one or more processors implement the positioning method applied to optical fiber measurement of oil leakage.
[0059] The technical effects achieved by the present invention are:
[0060] The present invention improves the accuracy of positioning through comprehensive analysis of multiple data, can accurately locate the location of the oil leak, and obtain the transmission coding information of the optical fiber in real time, so that the detection and positioning process can respond quickly, which is suitable for quickly responding to oil leaks. By analyzing multiple weight coefficients such as length, power and resource occupancy, the transmission performance of the optical fiber can be comprehensively evaluated, and optical fiber two-way transmission coding data suitable for the current detection cycle can be established. It can adapt to the optical fiber transmission environment under different conditions, has strong adaptability, and is suitable for various complex application scenarios. The precise positioning and rapid response capabilities can greatly improve the efficiency of optical fiber maintenance and reduce the losses and hazards caused by oil leaks. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 is a flow chart of the method provided by the present invention;
[0062] Figure 2 It is a system module diagram provided by the present invention;
[0063] Figure 3 It is a single-fiber bidirectional transmission coding positioning diagram provided by the present invention;
[0064] Figure 4 It is a schematic diagram of coded oil leakage provided by the present invention. DETAILED DESCRIPTION
[0065] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0066] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0067] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present invention. The phrase "in a preferred embodiment" that appears in different places in this specification does not refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.
[0068] Secondly, the present invention is described in detail in conjunction with schematic diagrams. When describing the embodiments of the present invention in detail, for the convenience of explanation, the schematic diagrams are only examples and should not limit the scope of protection of the present invention.
[0069] Please refer to the attached Figure 1 As shown, a positioning method for optical fiber oil leakage measurement is provided, comprising:
[0070] S1. Obtain optical fiber length data, and obtain a length weight coefficient according to the optical fiber length data;
[0071] S2. Establish a detection cycle, obtain the power data of the optical fiber transmission during the detection period, and obtain the power weight coefficient according to the power data;
[0072] S3, obtaining the fiber transmission resource occupancy data and resource idle data during the detection period, and obtaining the fiber transmission resource weight coefficient according to the fiber transmission resource occupancy data and resource idle data;
[0073] S4, calculating the number of optical fiber unidirectional transmission codes according to the length weight coefficient, the power weight coefficient and the optical fiber transmission resource weight coefficient;
[0074] S5, obtaining optical fiber bidirectional transmission coding data synchronously transmitted at both ends of the optical fiber according to the optical fiber unidirectional transmission coding quantity, and obtaining optical fiber reception coding information received at both ends of the optical fiber in real time according to the optical fiber bidirectional transmission coding data;
[0075] S6, judging whether the optical fiber receiving coding information received at both ends of the optical fiber meets the preset requirements, if not, marking as interrupting the optical fiber receiving coding group;
[0076] S7. Locate the oil leak location based on the interrupted optical fiber receiving coding group.
[0077] As in the above steps S1 to S7, by measuring the length of the optical fiber, the corresponding length data is obtained, and the length weight coefficient is calculated based on the length data. Because the length of the optical fiber will affect the transmission performance and attenuation of the signal, a detection period is set. During this period, the power data of the optical fiber transmission is collected, and the power weight coefficient is calculated based on these power data. The power data can reflect the power loss or other abnormalities that the optical fiber may encounter during the transmission process. The occupancy and idle conditions of the optical fiber transmission resources during the detection period are collected, and the optical fiber transmission resource weight coefficient is calculated based on these data. The resource occupancy and idle data can help understand the usage status and load conditions of the optical fiber. The length weight coefficient, power weight coefficient and optical fiber transmission resource weight coefficient are combined to calculate the number of unidirectional transmission codes of the optical fiber. Based on the number of unidirectional transmission codes of the optical fiber, the bidirectional transmission code data of the synchronous transmission at both ends of the optical fiber is obtained. , obtain the coding information received at both ends of the optical fiber in real time, compare the coding information received at both ends of the optical fiber, and determine whether it meets the preset requirements. If not, mark the coding group as an interrupted optical fiber receiving coding group, and determine the location of the oil leak based on the marked interrupted optical fiber receiving coding group. Through the comprehensive analysis of multiple data, the accuracy of positioning is improved, and the location of the oil leak can be accurately located. The transmission coding information of the optical fiber is obtained in real time, so that the detection and positioning process can respond quickly, which is suitable for rapid response to oil leaks. By analyzing multiple weight coefficients such as length, power and resource occupancy, the transmission performance of the optical fiber can be comprehensively evaluated, and optical fiber bidirectional transmission coding data suitable for the current detection cycle can be established. It can adapt to the optical fiber transmission environment under different conditions, has strong adaptability, and is suitable for various complex application scenarios. Accurate positioning and rapid response capabilities can greatly improve the efficiency of optical fiber maintenance and reduce losses and hazards caused by oil leaks.
[0078] In a preferred embodiment, the step of obtaining the optical fiber length data and obtaining the length weight coefficient according to the optical fiber length data includes:
[0079] S101, obtaining optical fiber length data;
[0080] S102, obtaining a corresponding optical fiber length value according to the optical fiber length data;
[0081] S103, obtaining the standard length value of the optical fiber;
[0082] S104, obtaining a length weight function;
[0083] S105, inputting the optical fiber length value and the optical fiber standard length value into the length weight function, and marking the output result as the length weight coefficient.
[0084] As in the above steps S101 to S105, the actual length data of the optical fiber is read from the optical fiber transmission system, which can be obtained by optical fiber measurement equipment or system records, such as using an optical fiber distance meter (OTDR) for measurement, or using a built-in monitoring device in the optical fiber system, and converting the read optical fiber length data into a specific length value, usually in meters or kilometers, to obtain the standard length value of the optical fiber, which is usually a reference length value set when designing and installing the optical fiber, and is used as a reference in subsequent calculations. The mathematical function used to calculate the length weight coefficient is determined. The length weight function is , where L x Expressed as the length weight coefficient, L d Expressed as the fiber length value, L b It is expressed as the standard length value of the optical fiber. The actual length value and the standard length value of the optical fiber are input into the length weight function to calculate the length weight coefficient. This coefficient reflects the impact of the optical fiber length on the transmission performance. By accurately obtaining the actual length data of the optical fiber and comparing it with the standard length, the impact of the optical fiber length on signal transmission can be more accurately evaluated, thereby improving the accuracy of the number of optical fiber unidirectional transmission codes. The use of the length weight function can systematically analyze the impact of the optical fiber length on the transmission performance, making the entire calculation process more standardized and scientific. Since the length weight coefficient is calculated based on the actual length data and the standard length value, the weight coefficient can be dynamically adjusted according to the real-time acquired length data to adapt to different transmission environments and conditions.
[0085] In a preferred embodiment, the steps of constructing a detection cycle, obtaining power data of optical fiber transmission during the detection period, and calculating a power weight coefficient according to the power data include:
[0086] S201, constructing a detection cycle;
[0087] S202, obtaining power data of optical fiber transmission during a detection period, wherein the power data includes a plurality of historical signal powers and a current signal power;
[0088] S203, obtaining a power weight function;
[0089] S204: Input multiple historical signal powers and current signal power into a power weight function, and mark the output result as a power weight coefficient.
[0090] As in the above steps S201 to S204, a reasonable detection cycle is set according to the actual needs of the optical fiber transmission system. This can be a fixed time interval (such as every hour, every day or every week) set according to experience or system characteristics, or it can be dynamically adjusted according to the needs of real-time monitoring. Within the set detection cycle, the power data of the optical fiber transmission is collected. These data include multiple historical signal powers (power values in the past period of time) and current signal powers (power values at the current time point). The mathematical function used to calculate the power weight coefficient is determined. The power weight function is , where W x It is represented as the power weight coefficient, i represents the number of historical signal powers, n represents the total number of historical signal powers, W i Expressed as the i-th historical signal power, W d Represented as the current signal power, where W d When W is 0, x The value is 1. The function should be able to comprehensively analyze the historical signal power and the current signal power to obtain a weight coefficient that reflects the power change. Multiple historical signal power and current signal power data are input into the power weight function to calculate the power weight coefficient. This coefficient reflects the power transmission performance and changes of the optical fiber during the detection period. The calculation of the power weight coefficient takes into account the change trend of historical data and current data, which can more accurately reflect the actual situation of the optical fiber transmission power and improve the detection accuracy and reliability. Through real-time monitoring and analysis of power changes, possible abnormal situations such as power attenuation and power mutation can be warned in advance, and timely measures can be taken to prevent accidents. By combining multiple historical signal powers and current signal powers, the power weight function can comprehensively evaluate the power change, avoid the misjudgment that may be caused by single-point data, and improve the accuracy of the optical fiber unidirectional transmission code number to meet the transmission requirements of the optical fiber. According to the real-time changes in power data, the detection strategy and parameters can be dynamically adjusted to optimize the detection effect and adapt to the determination of the optical fiber unidirectional transmission code number under different transmission environments and conditions.
[0091] In a preferred embodiment, the step of obtaining the fiber transmission resource occupancy data and the resource idle data during the detection period, and obtaining the fiber transmission resource weight coefficient according to the fiber transmission resource occupancy data and the resource idle data, comprises:
[0092] S301, obtaining optical fiber transmission resource occupancy data and resource idle data during a detection period;
[0093] S302, acquiring corresponding occupancy rates of multiple optical fiber transmission resources according to the optical fiber transmission resource occupancy data;
[0094] S303, acquiring corresponding multiple resource idle rates according to the resource idle data;
[0095] S304, obtaining a fiber transmission resource weight function;
[0096] S305: Input multiple optical fiber transmission resource occupancy rates and multiple resource idle rates into an optical fiber transmission resource weight function, and mark the output result as an optical fiber transmission resource weight coefficient.
[0097] As in the above steps S301 to S305, within the set detection period, the occupancy data and idle data of the resources in the optical fiber transmission system are collected. These data reflect the usage and remaining status of the optical fiber transmission resources in the time period. The collected resource occupancy data is converted into the occupancy rate. The occupancy rate refers to the proportion of system resources (CPU, memory, storage, etc.) used during optical fiber transmission in a certain period of time. The collected resource idle data is converted into the idle rate. The idle rate refers to the proportion of system resources (CPU, memory, storage, etc.) that are not used in a certain period of time. A mathematical function for calculating the weight coefficient of the optical fiber transmission resource is determined. The function can combine the resource occupancy rate and the resource idle rate to obtain a weight coefficient that reflects the resource utilization. The optical fiber transmission resource weight function is , where Y represents the fiber transmission resource weight coefficient, h represents the fiber transmission resource occupancy rate number and resource idle rate number, where h = 1, 2, 3…m, Z h Expressed as the h-th optical fiber transmission resource occupancy rate, K h It is expressed as the hth resource idle rate. Multiple fiber transmission resource occupancy rates and multiple resource idle rates are input into the fiber transmission resource weight function to calculate the fiber transmission resource weight coefficient. This coefficient reflects the resource utilization and is used for the subsequent calculation of the number of fiber unidirectional transmission codes, avoiding the one-sided analysis that may be caused by a single data. According to the resource utilization, the resource allocation can be dynamically adjusted and optimized to improve the efficiency and performance of fiber transmission. Taking into account the resource occupancy rate and idle rate, the calculated resource weight coefficient is more accurate and reliable, and can better reflect the determination of the number of fiber unidirectional transmission codes.
[0098] In a preferred embodiment, the step of calculating the number of optical fiber unidirectional transmission codes according to the length weight coefficient, the power weight coefficient and the optical fiber transmission resource weight coefficient comprises:
[0099] S401, obtaining an optical fiber unidirectional transmission coding function;
[0100] S402, obtaining the optical fiber unidirectional transmission standard code value S b ;
[0101] S403, input the length weight coefficient, the power weight coefficient, the optical fiber transmission resource weight coefficient and the optical fiber unidirectional transmission standard coding value into the optical fiber unidirectional transmission coding function, and mark the output result as the optical fiber unidirectional transmission coding quantity.
[0102] As in the above steps S401 to S403, a mathematical function for calculating the number of optical fiber unidirectional transmission codes is determined, and the optical fiber unidirectional transmission code function is S d =S b ×L x ×W x ×Y, where S d It is expressed as the number of optical fiber unidirectional transmission codes, and the standard code value of optical fiber unidirectional transmission is obtained. This is a benchmark value, which is usually set when the optical fiber transmission system is designed. It is used to measure the basic coding capability of optical fiber unidirectional transmission. The length weight coefficient, power weight coefficient, optical fiber transmission resource weight coefficient and optical fiber unidirectional transmission standard code value are input into the optical fiber unidirectional transmission coding function for calculation. The output result is marked as the number of optical fiber unidirectional transmission codes. This number reflects the actual unidirectional transmission capability of the optical fiber under the current conditions. By comprehensively considering the length, power and resource utilization, the calculated number of optical fiber unidirectional transmission codes is more accurate and can truly reflect the capability of the optical fiber in actual transmission. According to the calculation results, the optical fiber transmission system can be optimized and adjusted to improve the efficiency and performance of unidirectional transmission. By real-time calculation and updating of the number of unidirectional transmission codes, it can dynamically adapt to changes in optical fiber transmission conditions and maintain stable and efficient transmission performance.
[0103] In a preferred embodiment, the step of obtaining optical fiber bidirectional transmission coding data synchronously transmitted at both ends of the optical fiber according to the optical fiber unidirectional transmission coding quantity, and obtaining optical fiber reception coding information received at both ends of the optical fiber in real time according to the optical fiber bidirectional transmission coding data, includes:
[0104] S601, constructing a corresponding plurality of optical fiber unidirectional transmission coding values according to the number of optical fiber unidirectional transmission codes, and summarizing them into optical fiber unidirectional transmission coding data, wherein when the first optical fiber unidirectional transmission coding value in the optical fiber unidirectional transmission coding data reaches the receiving end from the transmission end of the optical fiber, the last optical fiber unidirectional transmission coding value in the optical fiber unidirectional transmission coding data starts to be transmitted from the transmission end of the optical fiber;
[0105] S602, establishing optical fiber bidirectional transmission coded data for synchronous transmission at both ends of the optical fiber according to the optical fiber unidirectional transmission coded data;
[0106] S603, collecting the optical fiber bidirectional transmission coding values received at both ends of the optical fiber in real time according to the optical fiber bidirectional transmission coding data, and forming an optical fiber bidirectional transmission coding group with the two optical fiber bidirectional transmission coding values collected in real time, and summarizing them into optical fiber reception coding information.
[0107] As in the above steps S601 to S603, multiple code values are generated according to the number of unidirectional transmission codes of the optical fiber. These code values are transmitted and received in sequence to ensure the continuity of data during the transmission process. When the first code value reaches the receiving end, the last code value starts to be transmitted, which ensures the synchronization of the code data during transmission. The unidirectional transmission code data is used to construct the bidirectional transmission code data at both ends of the optical fiber. The bidirectional transmission code data contains the code information in two directions to ensure that the transmission process at both ends is synchronized. The bidirectional transmission code values received at both ends of the optical fiber are collected in real time, and they are composed into code groups, which are summarized as optical fiber receiving code information. Through real-time collection and summary, the actual situation of optical fiber transmission can be obtained in time for monitoring and analysis. By constructing and synchronizing the unidirectional transmission and bidirectional transmission code data of the optical fiber, the synchronization of data transmission at both ends of the optical fiber is ensured, and the accuracy and reliability of data transmission are improved. By collecting and summarizing the optical fiber receiving code information in real time, the optical fiber transmission status can be monitored in time, and abnormal situations in transmission can be quickly discovered and handled. Through synchronous transmission and real-time collection, optical fiber data transmission can be more efficiently managed and optimized, and the overall transmission efficiency can be improved. The real-time monitoring and synchronous transmission mechanism can effectively improve the reliability and stability of the optical fiber transmission system and reduce data loss and errors during transmission.
[0108] In a preferred embodiment, the step of judging whether the optical fiber receiving coding information received at both ends of the optical fiber meets the preset requirements, and if not, marking as interrupting the optical fiber receiving coding group, comprises:
[0109] S701, determining whether the optical fiber receiving coding information received at both ends of the optical fiber is interrupted;
[0110] If the optical fiber receiving coding information received at both ends of the optical fiber is interrupted, it is determined that an oil leak occurs in the oil pipeline, and the two optical fiber receiving coding values received at both ends of the optical fiber during the interruption are marked as an interrupted optical fiber receiving coding group;
[0111] If the optical fiber receiving coding information received at both ends of the optical fiber is not interrupted, it is determined that the oil pipeline is normal.
[0112] As in the above step S701, the coded information received at both ends of the optical fiber is continuously monitored to determine whether the information is interrupted. The judgment standard is: if the coded information received at both ends of the optical fiber is interrupted at the same time point, it is determined that an oil leak occurs in the oil pipeline; if it is not interrupted, it is determined to be normal. Once it is detected that the coded information received by the optical fiber is interrupted, the coded values received at both ends of the optical fiber at the time of the interruption will be immediately marked as an interrupted optical fiber receiving coding group. These marked data will be used for subsequent oil leak point positioning and fault handling. By judging the interruption of the coded information received by the optical fiber, the oil leak in the oil pipeline can be quickly determined, which improves the speed and efficiency of fault handling. Only when the coded information received at both ends of the optical fiber is interrupted, it is determined to be an oil leak, which reduces the misjudgment caused by single-end signal fluctuations and improves the accuracy of detection. Real-time monitoring of the coded information received by the optical fiber can timely detect abnormal conditions in the oil pipeline, provide rapid early warning and response, and timely detect and mark oil leaks, which helps to quickly take emergency measures, reduce environmental pollution and economic losses, and improve the operating safety of the oil pipeline.
[0113] In a preferred embodiment, the step of locating the oil leak position according to the interrupted optical fiber receiving code group includes:
[0114] S801, obtaining a coded oil leakage table, wherein the coded oil leakage table includes a plurality of optical fiber receiving code groups and an oil pipeline leakage position corresponding to each optical fiber receiving code group;
[0115] S802, acquiring a corresponding target optical fiber receiving code group according to the interrupted optical fiber receiving code group;
[0116] S803, obtaining the corresponding oil pipeline oil leakage position from the coded oil leakage table according to the target optical fiber receiving code group.
[0117] As in the above steps S801 to S803, a coded oil leakage table including a plurality of optical fiber receiving code groups and the oil pipeline leakage position corresponding to each optical fiber receiving code group is obtained. The coded oil leakage table is a pre-established database, which records the mapping relationship between different code groups and corresponding oil leakage positions. According to the detected interrupted optical fiber receiving code group, a target optical fiber receiving code group matching the interrupted code group is searched from the coded oil leakage table. The target optical fiber receiving code group is a code group corresponding to the interrupted optical fiber receiving code group, which is used to further locate the oil leakage position. According to the target optical fiber receiving code group, the corresponding oil pipeline is obtained from the coded oil leakage table. The oil leak location is recorded in the coded oil leak table. It is the specific oil leak point location that matches the target coding group. By matching it with the data in the coded oil leak table, the oil leak location in the oil pipeline can be accurately determined, providing accurate fault location information. After accurately determining the oil leak location, repair and maintenance measures can be taken quickly to reduce downtime and losses and improve processing efficiency. The automated code matching and positioning process reduces the need for manual intervention, improves the level of automation and response speed, and accurate oil leak positioning can improve the safety and reliability of the entire oil pipeline system and avoid environmental pollution and economic losses caused by oil leaks.
[0118] In order to further illustrate the location of the oil leak, the following example is given.
[0119] When a leak occurs, the left and right ends of the optical fiber will receive the last code. The leak location can be determined by these two codes. Due to the different transmission directions, the codes in the upper and lower directions will form a pair of codes at a certain moment in a certain position of the optical fiber. As time goes by, this position will correspond to many code groups, and each group of codes is unique. Therefore, as long as the combination of the last codes received in the two transmission directions is determined, the leak location can be determined.
[0120] Assume that a 9-meter optical fiber has two sets of codes A1-A10 and B1-B10. When A1 reaches the end of the optical fiber, A10 is just emitted. That is, there are only 10 codes in the optical fiber, and the interval between the two codes is 1 meter. Figure 3 shown.
[0121] like Figure 4 As shown, the encoding corresponding to each optical fiber position is demonstrated. Two sets of encodings can form a cycle, and the position corresponding to each encoding is unique.
[0122] Figure 4←1 and →2 indicate different directions of code propagation. Each solid line box indicates the coding situation in the optical fiber at different times. The first row in the table above indicates the position from the optical fiber head end. It can be found that each position has 20 sets of codes, and they are unique, that is, each set of codes corresponds to a position information. For example, when the last code group received is B7-A10, it can be seen from the table above that the leakage position is 8 meters away from the optical fiber head end. The above is a simplified model to illustrate the single-fiber bidirectional transmission code oil leakage positioning.
[0123] Please refer to the attached Figure 2 As shown, the present invention also provides a positioning system for optical fiber oil leakage measurement, which is used for the above-mentioned positioning method for optical fiber oil leakage measurement, comprising:
[0124] The optical fiber length module is used to obtain the optical fiber length data and obtain the length weight coefficient according to the optical fiber length data;
[0125] The power module is used to construct a detection cycle, obtain the power data of the optical fiber transmission during the detection period, and obtain the power weight coefficient according to the power data;
[0126] The system resource module is used to obtain the fiber transmission resource occupancy data and resource idle data during the detection period, and obtain the fiber transmission resource weight coefficient according to the fiber transmission resource occupancy data and resource idle data;
[0127] A coding quantity module is used to calculate the number of optical fiber unidirectional transmission codes according to the length weight coefficient, the power weight coefficient and the optical fiber transmission resource weight coefficient;
[0128] The cyclic coding module is used to obtain the optical fiber bidirectional transmission coding data synchronously transmitted at both ends of the optical fiber according to the optical fiber unidirectional transmission coding quantity, and to obtain the optical fiber reception coding information received at both ends of the optical fiber in real time according to the optical fiber bidirectional transmission coding data;
[0129] The oil leakage judgment module is used to judge whether the optical fiber receiving coding information received at both ends of the optical fiber meets the preset requirements. If not, it is marked as interrupting the optical fiber receiving coding group;
[0130] The oil leakage locating module is used to locate the oil leakage position according to the interrupted optical fiber receiving code group.
[0131] As mentioned above, the optical fiber length module first measures the actual length data of the optical fiber, and calculates the corresponding length weight coefficient based on the measured data using the preset length weight function. These coefficients are used for subsequent coding calculations to ensure that the influence of the optical fiber length on the measurement accuracy is considered. The power module sets a detection cycle to determine when to collect data. During the detection period, the system collects the power data of the optical fiber transmission, including the historical signal power and the current signal power, and calculates the power weight coefficient through the power weight function to reflect the influence of the optical fiber transmission power on the measurement results. The system resource module collects the occupancy data and idle data of the optical fiber transmission resources during the detection period, calculates the occupancy rate and idle rate of the optical fiber transmission resources, and calculates the optical fiber transmission resource weight coefficient through the resource weight function to reflect the influence of resource usage on the measurement results. The coding quantity module uses the optical fiber unidirectional transmission coding function, inputs the length weight coefficient, the power weight coefficient and the resource weight coefficient, and combines the optical fiber unidirectional transmission standard coding value to calculate the optical fiber unidirectional transmission coding quantity. The cyclic coding module generates the corresponding bidirectional transmission coding data according to the unidirectional transmission coding quantity to ensure The oil leakage judgment module detects the coded information received at both ends of the optical fiber. If it is detected that the coded information received at both ends is interrupted, it is determined to be an oil leakage phenomenon and marked as an interrupted optical fiber receiving coding group. The oil leakage positioning module obtains the coded oil leakage table, which records multiple optical fiber receiving coding groups and their corresponding oil pipeline leakage positions. According to the interrupted optical fiber receiving coding group, the target optical fiber receiving coding group is determined, and the oil leakage position corresponding to the target coding group is found from the coded oil leakage table to accurately locate the oil leakage point. After accurately locating the oil leakage point, repair measures can be taken quickly to reduce maintenance costs and downtime, and improve economic benefits. Through accurate oil leakage detection and positioning, the reliability of the oil pipeline system is improved, environmental pollution and economic losses are avoided, and optical fiber transmission data is collected and analyzed in real time, so that the system can respond to abnormal situations quickly and improve the safety of the oil pipeline system. Through the comprehensive calculation and real-time monitoring of multiple parameters, the number of optical fiber unidirectional transmission codes is determined. The system can accurately locate the oil leakage point in the oil pipeline and improve the detection accuracy.
[0132] It should be further explained that the general working process of encoding and transmitting in optical fiber is to modulate the code and convert it into an optical signal for transmission in the optical fiber, and convert the optical signal into an electrical signal at the receiving end of the optical fiber and demodulate and send it to the system. The specific implementation method is to encode the input original data according to a specific encoding scheme. This encoding scheme may include binary coding, pulse code modulation, etc. The encoded data exists in the form of a digital signal. The encoded digital signal needs to be converted into a signal suitable for optical transmission through a modulation process. The modulation methods include but are not limited to the following: amplitude modulation: representing data by adjusting the change in light intensity, frequency modulation: representing data by changing the frequency of light, phase modulation: representing data by adjusting the phase change of light, and the selection of modulation method is based on the system The requirements and characteristics of the modulated signal are called carrier signals, which are used to carry data. The modulated electrical signal is input into a photoelectric conversion device, such as a laser diode or a light-emitting diode. These photoelectric conversion devices convert the electrical signal into a corresponding optical signal. The converted optical signal is transmitted through the optical fiber. The receiving end converts the optical signal into an electrical signal through a photoelectric detection device, such as a photodiode or a avalanche photodiode. The output current or voltage of the photoelectric detection device is proportional to the intensity of the incident light. The converted electrical signal is amplified by an amplifier to ensure the clarity of the signal in subsequent processing. The amplified electrical signal enters the demodulator for demodulation and is restored to the original digital signal. Finally, the original signal is sent to the system, and the code received by the optical fiber receiving end is determined based on the system's recognition.
[0133] And, a positioning terminal for optical fiber oil leakage measurement, comprising:
[0134] one or more processors;
[0135] a storage device having one or more programs stored thereon;
[0136] When the one or more programs are executed by the one or more processors, the one or more processors implement the positioning method applied to optical fiber measurement of oil leakage.
[0137] The above is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention shall be implemented according to the conventional means in the art unless otherwise specified and limited.
Claims
1. A positioning method for measuring oil leakage using optical fiber, characterized in that: include: Obtain optical fiber length data, and obtain a length weight coefficient according to the optical fiber length data; Establish a detection cycle, obtain the power data of optical fiber transmission during the detection period, and obtain the power weight coefficient based on the power data; Obtaining fiber transmission resource occupancy data and resource idle data during the detection period, and obtaining a fiber transmission resource weight coefficient according to the fiber transmission resource occupancy data and resource idle data; Calculate the number of optical fiber unidirectional transmission codes according to the length weight coefficient, the power weight coefficient and the optical fiber transmission resource weight coefficient; Obtain optical fiber bidirectional transmission coding data synchronously transmitted at both ends of the optical fiber according to the optical fiber unidirectional transmission coding quantity, and obtain optical fiber reception coding information received at both ends of the optical fiber in real time according to the optical fiber bidirectional transmission coding data; Determine whether the optical fiber receiving coding information received at both ends of the optical fiber meets the preset requirements. If not, mark it as interrupting the optical fiber receiving coding group; Locate the oil leak location based on the interrupted optical fiber receiving code group; The steps of constructing a detection cycle, obtaining power data of optical fiber transmission during the detection period, and calculating a power weight coefficient according to the power data include: Building a testing cycle; Obtaining power data of optical fiber transmission during a detection period, wherein the power data includes multiple historical signal powers and current signal powers; Get the power weight function, which is , where W x It is represented as the power weight coefficient, i represents the number of historical signal powers, n represents the total number of historical signal powers, W i Expressed as the i-th historical signal power, W d Represents the current signal power; Inputting a plurality of historical signal powers and a current signal power into a power weight function, and marking an output result as a power weight coefficient; The step of obtaining the optical fiber transmission resource occupancy data and resource idle data within the detection period, and obtaining the optical fiber transmission resource weight coefficient according to the optical fiber transmission resource occupancy data and resource idle data, comprises: Obtain fiber transmission resource occupancy data and resource idle data during the detection period; Obtaining corresponding occupancy rates of multiple optical fiber transmission resources according to the optical fiber transmission resource occupancy data; Obtain corresponding multiple resource idle rates according to resource idle data; Get the fiber transmission resource weight function, the fiber transmission resource weight function is , where Y represents the fiber transmission resource weight coefficient, h represents the fiber transmission resource occupancy rate number and resource idle rate number, where h = 1, 2, 3…m, Z h Expressed as the h-th optical fiber transmission resource occupancy rate, K h It is expressed as the idle rate of the hth resource; Inputting a plurality of fiber transmission resource occupancy rates and a plurality of resource idle rates into a fiber transmission resource weight function, and marking the output result as a fiber transmission resource weight coefficient; The step of calculating the number of optical fiber unidirectional transmission codes according to the length weight coefficient, the power weight coefficient and the optical fiber transmission resource weight coefficient comprises: Get the optical fiber unidirectional transmission coding function, the optical fiber unidirectional transmission coding function is S d =S b ×L x ×W x ×Y, where S d Expressed as the number of optical fiber unidirectional transmission codes, L x Expressed as a length weight coefficient; Get the standard code value S of optical fiber unidirectional transmission b ; The length weight coefficient, the power weight coefficient, the optical fiber transmission resource weight coefficient and the optical fiber unidirectional transmission standard coding value are input into the optical fiber unidirectional transmission coding function, and the output result is marked as the optical fiber unidirectional transmission coding quantity.
2. The positioning method for measuring oil leakage using optical fiber according to claim 1, characterized in that: The step of obtaining the optical fiber length data and obtaining the length weight coefficient according to the optical fiber length data comprises: Obtain optical fiber length data; Obtaining a corresponding optical fiber length value according to the optical fiber length data; Get the standard length value of optical fiber; Get the length weight function; The fiber length value and the fiber standard length value are input into the length weight function, and the output result is labeled as the length weight coefficient.
3. The positioning method for measuring oil leakage using optical fiber according to claim 1, characterized in that: The step of obtaining optical fiber bidirectional transmission coding data synchronously transmitted at both ends of the optical fiber according to the optical fiber unidirectional transmission coding quantity, and obtaining optical fiber reception coding information received at both ends of the optical fiber in real time according to the optical fiber bidirectional transmission coding data, comprises: Constructing a plurality of corresponding optical fiber unidirectional transmission coding values according to the number of optical fiber unidirectional transmission codes, and summarizing them into optical fiber unidirectional transmission coding data, wherein when the first optical fiber unidirectional transmission coding value in the optical fiber unidirectional transmission coding data reaches the receiving end from the transmission end of the optical fiber, the last optical fiber unidirectional transmission coding value in the optical fiber unidirectional transmission coding data starts to be transmitted from the transmission end of the optical fiber; Establishing optical fiber bidirectional transmission coded data for synchronous transmission at both ends of the optical fiber according to the optical fiber unidirectional transmission coded data; According to the optical fiber bidirectional transmission coding data, the optical fiber bidirectional transmission coding values received at both ends of the optical fiber are collected in real time, and the two optical fiber bidirectional transmission coding values collected in real time are formed into an optical fiber bidirectional transmission coding group, and summarized as optical fiber reception coding information.
4. The positioning method for measuring oil leakage using optical fiber according to claim 1, characterized in that: The step of judging whether the optical fiber receiving coding information received at both ends of the optical fiber meets the preset requirements, and if not, marking as interrupting the optical fiber receiving coding group, comprises: Determine whether the optical fiber receiving coding information received at both ends of the optical fiber is interrupted; If the optical fiber receiving coding information received at both ends of the optical fiber is interrupted, it is determined that an oil leak occurs in the oil pipeline, and the two optical fiber receiving coding values received at both ends of the optical fiber during the interruption are marked as an interrupted optical fiber receiving coding group; If the optical fiber receiving coding information received at both ends of the optical fiber is not interrupted, it is determined that the oil pipeline is normal.
5. The positioning method for measuring oil leakage using optical fiber according to claim 1, characterized in that: The step of locating the oil leakage position according to the interrupted optical fiber receiving code group comprises: Obtaining a coded oil leakage table, wherein the coded oil leakage table includes a plurality of optical fiber receiving code groups and an oil pipeline leakage position corresponding to each optical fiber receiving code group; Obtaining the corresponding target optical fiber receiving code group according to the interrupted optical fiber receiving code group; The corresponding oil pipeline oil leakage position is obtained from the coded oil leakage table according to the target optical fiber receiving code group.
6. A positioning system for optical fiber oil leakage measurement, applied to the positioning method for optical fiber oil leakage measurement according to any one of claims 1 to 5, characterized in that: include: The optical fiber length module is used to obtain the optical fiber length data and obtain the length weight coefficient according to the optical fiber length data; The power module is used to construct a detection cycle, obtain the power data of the optical fiber transmission during the detection period, and obtain the power weight coefficient according to the power data; The system resource module is used to obtain the fiber transmission resource occupancy data and resource idle data during the detection period, and obtain the fiber transmission resource weight coefficient according to the fiber transmission resource occupancy data and resource idle data; A coding quantity module is used to calculate the number of optical fiber unidirectional transmission codes according to the length weight coefficient, the power weight coefficient and the optical fiber transmission resource weight coefficient; The cyclic coding module is used to obtain the optical fiber bidirectional transmission coding data synchronously transmitted at both ends of the optical fiber according to the optical fiber unidirectional transmission coding quantity, and to obtain the optical fiber reception coding information received at both ends of the optical fiber in real time according to the optical fiber bidirectional transmission coding data; The oil leakage judgment module is used to judge whether the optical fiber receiving coding information received at both ends of the optical fiber meets the preset requirements. If not, it is marked as interrupting the optical fiber receiving coding group; The oil leakage locating module is used to locate the oil leakage position according to the interrupted optical fiber receiving code group.
7. A positioning terminal used for optical fiber oil leakage measurement, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the positioning method for measuring oil leaks using optical fiber as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method for improving oil gas pipe leakage and performance of instruction testing distributed optical fibre sensor
CN101255951A
On-line monitoring method of submarine communication optical fiber and monitoring apparatus thereof
CN102523040A
Fiber duct leakage monitoring device and control method thereof
CN102720949A
Urban oil and gas pipeline major accident risk early warning and assessment method
CN108224096A
Optical fiber operation monitoring method and system under extremely cold weather conditions
CN108282222A
