A method for determining stable refueling flow based on clustering algorithm
Through a method based on a clustering algorithm, the stable value and time of the refueling flow are automatically recorded, which solves the problems of low automation and high error rate in the assessment of refueling flow stability in the existing technology, and achieves fast and accurate evaluation support.
Patent Information
- Application Number
- CN202211045321.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When evaluating the performance of aircraft refueling devices, it is difficult to automatically record the stable value and time of refueling flow using existing technology, resulting in low informatization and automation, high error rates, and possible omission of important instantaneous information.
A method based on a clustering algorithm is used to obtain the real-time pressure and flow data of the refueling outlet, perform normalization processing and determine the cluster center. It is divided into starting, stable and ending stages, and the stable value and time of the refueling flow are automatically recorded.
It achieves fast, accurate and automated recording of the stable value and time of the refueling flow, improves the support for evaluating the performance of the integrated refueling device, and reduces the error rate.
Smart Images

Figure CN115452084B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method for determining a stable refueling flow rate based on a clustering algorithm. Background Art
[0002] When the aircraft is pressure refueled, the refueling flow data changes in real time. Through the control of the integrated refueling device, the refueling flow can be roughly stabilized within the set range. The typical refueling flow change curve is as follows: Figure 1 During the refueling process, recording the time required for the refueling flow to stabilize and the stable value of the refueling flow is of great significance for evaluating the performance of the instant refueling device.
[0003] The most common method to judge the stable trend of a set of data is to use the data difference method, that is, the data is judged to be stable when the first-order difference tends to zero or the continuous k numerical differences are less than the set threshold x. However, since the flow data changes irregularly, the data will tend to zero at the beginning and end of refueling. At the same time, the stable value lasts for a very short time under some special working conditions, so the error rate of this method is relatively high. At present, the stable value of refueling flow is generally recorded by manual observation, with a low degree of informatization and automation. At the same time, manual recording may miss some important instantaneous information, which may cause the loss of key data.
[0004] There is an urgent need for a solution that can automatically record the value and time of the stable refueling flow rate to provide support for evaluating the performance of integrated refueling devices. Summary of the invention
[0005] In order to quickly, accurately and automatically record the value and time of the stable refueling flow and provide important support for evaluating the performance of the integrated refueling device, the present invention proposes a method for determining the stable refueling flow based on a clustering algorithm.
[0006] The embodiment of the present application provides a method for determining a stable refueling flow rate based on a clustering algorithm, comprising:
[0007] Step s1, obtaining the real-time measured pressure and flow data of the refueling outlet;
[0008] Step s2, recording the outlet pressure and flow data of the refueling process according to the preset data collection frequency, and obtaining the data set A = {a1, a2, ..., a i ,…a n}, where 1≤i≤n, n is a positive integer, a i is a point in the three-dimensional coordinate system, a i The coordinates of (t i , p i , f i ), t is the time, p is the pressure, and the flow rate is f;
[0009] Step s3, normalizing the coordinate values of each point in the data set A;
[0010] Step s4, select three points in the data set A as initial cluster centers, namely a1, a n and a n / 2 ;
[0011] Step s5, for each point in the data set A, determine its distance to the three cluster centers and classify it into the class corresponding to the cluster center with the smallest distance, to obtain three cluster sets;
[0012] Step s6, for each cluster set in the three cluster sets, re-determine its cluster center;
[0013] Step s7, repeating steps s5 and s6 until the cluster center of each cluster set remains unchanged;
[0014] Step s8, obtain three cluster sets c1, c2 and c3, the center points of c1, c2 and c3 are a c1 、a c2 and a c3 , where t c1 <t c2 <t c3 ;
[0015] Step s9, determine the stable flow rate F and t c2 The value of is denormalized, where k is the number of points contained in c2, t c2 for a c2 The corresponding moment.
[0016] In some optional implementations, for each point in the data set A, the distance from the point to the three cluster centers is determined and the point is divided into the class corresponding to the cluster center with the smallest distance, so as to obtain three cluster sets, including:
[0017] For a in the data set A i and a j The distance between two points s i,j , according to the formula
[0018]
[0019] Determine, where 1≤j≤n, w1, w2 and w3 are the weights corresponding to t, p and f, w1=1, w2=0.5, w3=0.5.
[0020] In some optional implementations, for each cluster set in the three cluster sets, re-determining its cluster center includes:
[0021] For a cluster set c containing m points, c={a1,a2,…,a i ,…a k}, the cluster center a of c c According to the formula Sure.
[0022] In some optional embodiments, the preset data acquisition frequency is 1 Hz.
[0023] The beneficial effects brought about by the technical solution of this application are as follows:
[0024] The technical solution of the embodiment of the present application is to form three cluster sets c1, c2 and c3 through clustering, which correspond to dividing the refueling process into the starting stage, the stable stage and the ending stage. The stable stage corresponds to the flow of cluster set c2. That is, the value of the stable refueling flow during the refueling process, and the corresponding time t of the center point of the corresponding cluster set c2 in the stable stage is determined c2 That is the moment when the refueling flow stabilizes; it can quickly, accurately and automatically record the value and time of the stable refueling flow, providing important support for evaluating the performance of the integrated refueling device. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings illustrate generally, by way of example and not limitation, various embodiments discussed herein.
[0026] Figure 1 It is the refueling flow rate variation curve;
[0027] Figure 2 A schematic flow chart of a method for determining a stable refueling flow rate based on a clustering algorithm according to an embodiment of the application;
[0028] Figure 3 This is a refueling outlet pressure change curve of some embodiments of the present application;
[0029] Figure 4 This is a schematic diagram of clustering effects of some embodiments of the present application;
[0030] Figure 5 The present invention is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0032] In the embodiments of the present application, it should be noted that, unless otherwise specified and limited, the term "connection" should be understood in a broad sense. For example, it can be an electrical connection or a connection between two components. It can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to the specific circumstances.
[0033] Figure 2 This is a flow chart of a method for determining a stable refueling flow rate based on a clustering algorithm according to an embodiment of the present application. Figure 2 As shown, the method for determining the stable refueling flow rate based on the clustering algorithm in the embodiment of the present application includes the following steps s1 to s9. Among them:
[0034] Step s1, obtaining the real-time measured pressure and flow data of the refueling outlet.
[0035] Here, the pressure and flow data measured in real time by the sensor can be obtained by installing a pressure and flow sensor at the refueling outlet. Here, the real-time measured pressure and flow data can be actively sent by the sensor, for example, the sensor sends the real-time measured pressure and flow data to the centralized control device in the form of a network message; the sensor can also be used to collect data to obtain the real-time measured pressure and flow data.
[0036] Step s2, recording the outlet pressure and flow data of the refueling process according to the preset data collection frequency, and obtaining the data set A = {a1, a2, ..., a i ,…a n}, where 1≤i≤n, n is a positive integer, a i is a point in the three-dimensional coordinate system, a i The coordinates of (t i , p i , f i ), t is the time, p is the pressure, and the flow rate is f.
[0037] Here, the preset data acquisition frequency may include, for example, 1 Hz. t may be determined by the corresponding timestamp when recording the pressure and flow data.
[0038] Figure 3 This is a refueling outlet pressure change curve of some embodiments of the present application. Figure 3 As shown, the numerical variation trend of the refueling outlet pressure has an obvious correlation with the refueling flow rate. Therefore, the embodiment of the present application uses the refueling outlet pressure data to determine the parameters of the stable refueling flow rate to improve the accuracy of the calculation of the stable refueling flow rate.
[0039] Step s3, normalizing the coordinate values of each point in the data set A.
[0040] Here, the normalization process can avoid the influence of different value ranges of t, p and f on the subsequent calculation results.
[0041] Step s4: Select three points in the data set A as the initial cluster centers, namely a1, a n and a n / 2 .
[0042] Step s5: for each point in the data set A, determine its distance to the three cluster centers and divide it into the class corresponding to the cluster center with the smallest distance, so as to obtain three cluster sets.
[0043] In some optional implementations, for each point in the data set A, the distance from the point to the three cluster centers is determined and the point is divided into the class corresponding to the cluster center with the smallest distance, to obtain three cluster sets, including:
[0044] For a in data set A i and a j The distance between two points s i,j , according to the formula
[0045]
[0046] Determine, where 1≤j≤n, w1, w2 and w3 are the weights corresponding to t, p and f, w1=1, w2=0.5, w3=0.5.
[0047] Step s6: for each cluster set in the three cluster sets, re-determine its cluster center.
[0048] In some optional implementations, for each cluster set in the three cluster sets, re-determining its cluster center includes:
[0049] For a cluster set c containing m points, c={a1,a2,…,a i ,…a k}, the cluster center a of c c According to the formula Sure.
[0050] Step s7, repeating steps s5 and s6 until the cluster center of each cluster set remains unchanged.
[0051] Step s8, obtain three cluster sets c1, c2 and c3, the center points of c1, c2 and c3 are a c1 、a c2 and a c3 , where t c1 <t c2 <t c3 .
[0052] The effect of clustering collection is as follows Figure 4 It can be understood that cluster sets c1, c2 and c3 correspond to the starting stage, stable stage and ending stage of the refueling process respectively.
[0053] Step s9, determine the stable flow rate F and t c2 The value of is denormalized, where k is the number of points contained in c2, t c2 for a c2 The corresponding moment.
[0054] Here, the denormalization corresponds to the normalization process in step s3, which converts F and t c2 The values are denormalized to obtain the corresponding pressure and time values.
[0055] In some specific implementations, the steps described in the above method may be implemented using a programming language, for example, using C++ language based on QT programming.
[0056] For example, QUdpScocket is used to receive the pressure and flow message data sent by the refueling outlet pressure and flow sensor, and the pressure and flow data are obtained after parsing, stored in the database, and the current time is recorded.
[0057] In the above embodiment of the present application, the three cluster sets c1, c2 and c3 formed by clustering correspond to dividing the refueling process into the starting stage, the stable stage and the ending stage. The stable stage corresponds to the flow of the cluster set c2. That is, the value of the stable refueling flow during the refueling process, and the corresponding time t of the center point of the corresponding cluster set c2 in the stable stage is determined c2 That is the moment when the refueling flow stabilizes; it can quickly, accurately and automatically record the value and time of the stable refueling flow, providing important support for evaluating the performance of the integrated refueling device.
[0058] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device or server suitable for implementing an embodiment of the present application. Figure 5 The computer system 500 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0059] like Figure 5As shown, the computer system 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 to a random access memory (RAM) 503. Various programs and data required for the operation of the computer system 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0060] Typically, the following devices may be connected to the I / O interface 505: input devices 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, etc.; output devices 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 508 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 509. The communication devices 509 may allow the computer system 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The computer system 500 is shown with various devices, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have instead.
[0061] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0062] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0063] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0064] The computer readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device implements the following Figure 2 The illustrated embodiment and its alternative implementations illustrate an information processing method.
[0065] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0066] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0067] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are formed by replacing each other with the technical features disclosed in the present disclosure (but not limited to) with similar functions.
Claims
1. A method for determining a stable refueling flow rate based on a clustering algorithm, characterized in that: The method comprises: Step s1, obtaining the real-time measured pressure and flow data of the refueling outlet; Step s2, recording the outlet pressure and flow data of the refueling process according to the preset data collection frequency, and obtaining the data set A = {a1, a2, ..., a i ,…a n }, where 1≤i≤n, n is a positive integer, a i is a point in the three-dimensional coordinate system, a i The coordinates of (t i , p i , f i ), t is the time, p is the pressure, and the flow rate is f; Step s3, normalizing the coordinate values of each point in the data set A; Step s4, select three points in the data set A as initial cluster centers, namely a1, a n and a n / 2 ; Step s5, for each point in the data set A, determine its distance to the three cluster centers and classify it into the class corresponding to the cluster center with the smallest distance, to obtain three cluster sets; Step s6, for each cluster set in the three cluster sets, re-determine its cluster center; Step s7, repeating steps s5 and s6 until the cluster center of each cluster set remains unchanged; Step s8, obtain three cluster sets c1, c2 and c3, the center points of c1, c2 and c3 are a c1 、a c2 and a c3 , where t c1 <t c2 <t c3 ; Step s9, determine the stable flow rate F and t c2 The value of is denormalized, where k is the number of points contained in c2, t c2 for a c2 The corresponding moment.
2. The method according to claim 1, wherein: For each point in the data set A, the distance from the point to the three cluster centers is determined and the point is divided into the class corresponding to the cluster center with the smallest distance, and three cluster sets are obtained, including: For a in the data set A i and a j The distance between two points s i,j , according to the formula Determine, where 1≤j≤n, w1, w2 and w3 are the weights corresponding to t, p and f, w1=1, w2=0.5, w3=0.
5.
3. The method according to claim 1, wherein: For each cluster set in the three cluster sets, re-determining its cluster center includes: For a cluster set c containing m points, c={a1,a2,…,a i ,…a k }, the cluster center a of c c According to the formula Sure.
4. The method according to claim 1, wherein: The preset data acquisition frequency is 1 Hz.
