Method for monitoring a full vanadium redox flow battery based on image acquisition
By constructing the cyclic connection path and state correspondence of the all-vanadium redox flow battery, the problem of accurate location of the monitoring position in image monitoring was solved, achieving higher positioning accuracy and monitoring reliability.
Patent Information
- Application Number
- CN202611684487.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-29
- Publication Date
- 2026-11-27
AI Technical Summary
In the process of image monitoring of vanadium redox flow batteries, it is difficult to accurately determine the monitoring location corresponding to changes in operating status, especially since there is a lack of continuous positioning processing for the connection relationship between different equipment areas.
By acquiring operational images, the cyclic connection paths of the positive and negative electrode loops are constructed, the state propagation location and the actual response location are determined, the state correspondence between the paths is established, the response deviation section is identified, and the monitoring location is determined by combining local images.
This improved the accuracy of locating changes in the operating status of vanadium redox flow batteries, reduced the amount of data processed in image processing, and enhanced the specificity of anomaly identification and the reliability of monitoring results.
Smart Images

Figure CN123183433A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vanadium redox flow battery monitoring technology, and in particular to a method for monitoring the use of vanadium redox flow batteries based on image acquisition. Background Technology
[0002] During the operation of a vanadium redox flow battery, the positive and negative electrolytes circulate between their respective electrolyte storage tanks, circulation pipelines, circulation pumps, and the battery stack. To monitor the battery's operating status, operating parameters are typically collected using sensors such as liquid level, flow rate, pressure, and temperature. Additionally, images of the battery equipment can be captured using video cameras for auxiliary monitoring of the storage tanks, pipelines, battery stack, and connection points.
[0003] When using images for monitoring, image processing is typically performed separately for different equipment areas. Based on changes in color, grayscale, outline, or area in the images at different times, changes in liquid level and the appearance of the equipment are determined. Because this type of processing mainly identifies each equipment area separately, it usually lacks a process for continuous positioning based on the connection relationships between different equipment areas when continuous state changes occur between storage tanks, circulation pipelines, circulation pumps, and fuel cell stacks.
[0004] Therefore, accurately determining the monitoring location corresponding to changes in operating status during the image monitoring process of vanadium redox flow batteries has become a technical problem that needs to be solved. Summary of the Invention
[0005] This application provides a monitoring method for vanadium redox flow batteries based on image acquisition, in order to solve the problem that it is difficult to accurately determine the monitoring location corresponding to changes in operating status based on images during the operation of vanadium redox flow batteries.
[0006] A first aspect of this application provides a method for monitoring the use of vanadium redox flow batteries based on image acquisition, comprising:
[0007] Acquire the running image, determine the structural image region, and construct the first and second loop connection paths corresponding to the positive and negative loop circuits, respectively.
[0008] Based on the changes in the liquid levels in the positive and negative electrode storage tanks, determine the state propagation position of the first cyclic connection path and the actual response position of the second cyclic connection path;
[0009] Establish a state correspondence between the first cyclic connection path and the second cyclic connection path, determine the predicted response interval based on the state propagation position, and determine the response deviation segment when the actual response position is outside the predicted response interval;
[0010] The system obtains the current operating conditions and corresponding state constraints. If the actual response position is outside the predicted response range, it determines the target connection interface and monitoring position based on the response deviation segment. It also determines the actual usage status and monitoring results by combining the local image with the state constraints. If the actual response position is within the predicted response range, it determines the actual usage status and monitoring results according to the state constraints.
[0011] Optionally, in one possible implementation of the first aspect, the step of acquiring the running image, determining the structural image region, and constructing the first and second cyclic connection paths corresponding to the positive and negative electrode loops respectively includes:
[0012] Extract the structural outlines of each battery structure from the running image, and form a structural image region based on each structural outline;
[0013] Determine the structural connection sections between adjacent structural image regions;
[0014] According to the connection sections of each structure, the corresponding battery structures in the positive electrode circulation loop are connected in sequence to form a first circulation connection path, and the corresponding battery structures in the negative electrode circulation loop are connected in sequence to form a second circulation connection path.
[0015] Optionally, in one possible implementation of the first aspect, determining the structural connection section between adjacent structural image regions includes:
[0016] Match the boundary pixels of the structural contours on both sides along the interval direction between adjacent structural image regions to form multiple pairs of opposing boundary pixels;
[0017] A spacing change trajectory is formed based on the pixel spacing of each pair of opposing boundary pixels;
[0018] The narrowing segment in the spacing change trajectory where the pixel spacing continuously decreases and then continuously increases is determined, and the position with the smallest pixel spacing in the narrowing segment is determined as the structural connection section.
[0019] Optionally, in one possible implementation of the first aspect, determining the state propagation position of the first cyclic connection path and the actual response position of the second cyclic connection path based on the changes in the liquid levels of the positive and negative electrode storage tanks includes:
[0020] Establish longitudinal center axes along the height direction of the positive electrode electrolyte storage tank and the negative electrode electrolyte storage tank respectively, and set detection sections according to the lateral width of the storage tank at each height position;
[0021] Liquid surface candidate boundaries are formed based on the continuous occupancy boundaries of electrolyte pixels in each detection segment, and liquid surface change states are formed based on the position migration of the liquid surface candidate boundaries in adjacent images.
[0022] Based on the liquid level change state, continuously changing pixel regions are extracted along the first and second cyclic connection paths, and the corresponding advancement boundaries are determined as the state propagation position and the actual response position.
[0023] Optionally, in one possible implementation of the first aspect, establishing the state correspondence between the first cyclic connection path and the second cyclic connection path, determining the predicted response interval based on the state propagation position, and determining the response deviation segment when the actual response position is outside the predicted response interval, includes:
[0024] The connection point between the electrolyte storage tank and the circulation pipeline is determined as the starting point of the path, and the connection point corresponding to the fuel cell stack is determined as the ending point of the path.
[0025] A bidirectional position representation is formed based on the first path distance from each structural connection section to the starting position of the path and the second path distance to the ending position of the path, and a state correspondence is established based on each bidirectional position representation;
[0026] The predicted response interval is determined based on the state propagation location and the state correspondence.
[0027] In response to the actual response location being outside the predicted response range, a response deviation segment is determined.
[0028] Optionally, in one possible implementation of the first aspect, determining the predicted response interval based on the state propagation position and the state correspondence includes:
[0029] Determine the first structural connection section and the second structural connection section located on both sides of the state propagation position in the first cyclic connection path;
[0030] Based on the state correspondence, a third structural connection section and a fourth structural connection section corresponding to the first structural connection section and the second structural connection section are determined in the second cyclic connection path, respectively.
[0031] The path segment between the third structural connection section and the fourth structural connection section is determined as the predicted response interval.
[0032] Optionally, in one possible implementation of the first aspect, determining the response deviation segment when the actual response position is outside the predicted response interval includes:
[0033] The deviation direction is determined based on the position of the actual response location relative to the predicted response interval, and the target interval boundary of the predicted response interval is determined along the deviation direction;
[0034] The path segment between the target interval boundary and the actual response location is defined as the response deviation segment;
[0035] The bridging state of continuously changing pixels on both sides of each structural connection section is determined along the response deviation section, and the first candidate connection interface and the second candidate connection interface are determined according to the position where the bridging state changes.
[0036] Optionally, in one possible implementation of the first aspect, the response occurs when the actual response location is outside the predicted response interval. The target connection interface and monitoring location are determined based on the response deviation segment, and the actual usage state and monitoring results are determined by combining the local image with the state constraints, including:
[0037] The first candidate connection interface and the second candidate connection interface are determined based on the response deviation segment;
[0038] The target connection interface and monitoring location are determined based on the expansion difference of neighboring changing pixels of the first candidate connection interface and the second candidate connection interface;
[0039] The local monitoring area is determined based on the monitoring location and a local image is acquired. The actual usage status and monitoring results are determined based on the local image and the state constraints.
[0040] Optionally, in one possible implementation of the first aspect, determining the target connection interface and monitoring location based on the extended difference of neighboring changed pixels of the first candidate connection interface and the second candidate connection interface includes:
[0041] Determine the first interface extension length and the second interface extension length along the deviation direction for the first candidate connection interface and the second candidate connection interface, respectively.
[0042] A positioning line segment is formed by connecting the center of the first candidate connection interface and the second candidate connection interface, and the midpoint of the positioning line segment is determined as the initial monitoring point;
[0043] In response to the difference between the first interface extension length and the second interface extension length, the response offset direction is determined according to the direction of the difference between the first interface extension length and the second interface extension length, the response offset ratio is determined according to the absolute value of the difference and the sum of the two interface extension lengths, and the monitoring point offset distance is determined according to the response offset ratio and the half-segment length of the positioning line segment.
[0044] In response to the difference between the first interface extension length and the second interface extension length, the monitoring point is moved from the initial monitoring point along the response offset direction by an offset distance to obtain the monitoring position, and the candidate connection interface corresponding to the response offset direction is determined as the target connection interface; in response to the same length as the first interface extension length and the second interface extension length, the initial monitoring point is determined as the monitoring position, and the candidate connection interface closer to the actual response position is determined as the target connection interface.
[0045] Optionally, in one possible implementation of the first aspect, determining a local monitoring area and acquiring a local image based on the monitoring location, and determining the actual usage state and monitoring results based on the local image and the state constraints, includes:
[0046] A first monitoring scale along the deviation direction is determined based on the path length of the deviation segment in the response.
[0047] Determine the interface expansion width of the adjacent changing pixels of the target connection interface in the direction perpendicular to the deviation, and determine the second monitoring scale based on the interface expansion width;
[0048] A local monitoring area is formed around the monitoring location according to the first monitoring scale and the second monitoring scale, and a local image is obtained from the running image;
[0049] A deviation verification state is formed based on the correspondence between the main expansion direction of the changing pixels in the local image and the deviation direction. The actual usage state and monitoring results are determined based on the deviation verification state and the state constraints.
[0050] The image acquisition-based monitoring method for vanadium redox flow batteries provided in this application has the following advantages:
[0051] 1. This application establishes a state correspondence between the first and second cyclic connection paths, determines the predicted response range of the second cyclic connection path based on the state propagation position of the first cyclic connection path, and compares the actual response position of the second cyclic connection path with the predicted response range to form a response deviation segment. This allows for correlation analysis of the operational changes of the positive and negative electrode circulation loops. This avoids the need for separate image judgments for individual device areas, significantly improving the accuracy of locating changes in the operating state of the vanadium redox flow battery.
[0052] 2. After determining the response deviation segment, this application further dynamically determines the target connection interface and monitoring position based on the expansion differences of neighboring changed pixels of the candidate connection interface. A local monitoring area is formed based on the path length of the response deviation segment and the interface expansion width of neighboring changed pixels of the target connection interface. The local image is then used to verify the response deviation state. This eliminates the need to continuously perform detailed image analysis of the same range across the entire loop, gradually narrowing the monitoring range to the corresponding connection interface. This significantly reduces the amount of image processing data and improves the specificity of anomaly location identification and the reliability of monitoring results. Attached Figure Description
[0053] Figure 1 This is a flowchart illustrating the image acquisition-based monitoring method for vanadium redox flow batteries provided in this application embodiment;
[0054] Figure 2 This is an application environment diagram of the image acquisition-based monitoring method for vanadium redox flow batteries provided in the embodiments of this application;
[0055] Figure 3 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0056] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0057] The technical solutions of this application will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0058] See Figure 1 This is a flowchart of the image acquisition-based monitoring method for vanadium redox flow batteries provided in this application embodiment. Figure 1The execution entity of the method shown can be a software and / or hardware device. The execution entity of this application can include, but is not limited to, at least one of the following: user equipment, network equipment, etc. User equipment can include, but is not limited to, computers, smartphones, personal digital assistants (PDAs), and the aforementioned electronic devices. Network equipment can include, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of computers or network servers. Cloud computing is a type of distributed computing, consisting of a super virtual computer composed of a group of loosely coupled computers. This embodiment does not impose any limitations on this.
[0059] This embodiment provides a method for monitoring the use of a vanadium redox flow battery based on image acquisition. The vanadium redox flow battery includes a positive electrode electrolyte storage tank, a negative electrode electrolyte storage tank, a positive electrode circulation pipeline, a negative electrode circulation pipeline, a positive electrode circulation pump, a negative electrode circulation pump, and a fuel cell stack. The positive electrode electrolyte storage tank, positive electrode circulation pipeline, positive electrode circulation pump, and fuel cell stack form a positive electrode circulation loop, and the negative electrode electrolyte storage tank, negative electrode circulation pipeline, negative electrode circulation pump, and fuel cell stack form a negative electrode circulation loop.
[0060] This embodiment includes an image acquisition device, a monitoring and processing device, and a battery operation control device. The image acquisition device acquires operational images of the vanadium redox flow battery during operation. The monitoring and processing device performs structural image region recognition, loop connection path construction, liquid level change analysis, state propagation analysis, predicted response range determination, response deviation analysis, monitoring location determination, local image analysis, and actual usage status determination. The battery operation control device provides the monitoring and processing device with the current operating conditions. In this embodiment, the positive electrode loop corresponds to the first loop connection path, and the negative electrode loop corresponds to the second loop connection path. The first loop connection path provides a state prediction benchmark, and the second loop connection path provides actual response verification results.
[0061] In one example, the image acquisition device uses an industrial camera with a resolution of 1920×1080 pixels and an original acquisition frequency of 25 frames / second. The monitoring and processing device selects analysis images from continuous images according to the monitoring time interval Δt. For example, Δt is set to 0.5s, so that the liquid surface migration and the change of the circulation path state in adjacent analysis images can form identifiable positional differences, while reducing the probability that the advancement boundary continuously crosses multiple structural connection sections within one analysis cycle.
[0062] When using multiple image acquisition devices, before the battery is put into monitoring, a calibration mark that can appear in the field of view of adjacent image acquisition devices at the same time is set. The pixel coordinates of each calibration mark in different images are recorded. A perspective transformation relationship is established based on the corresponding calibration mark to transform different images into a unified image coordinate system. When a single image acquisition device can cover the target monitoring area, the image coordinate system corresponding to the image acquisition device is directly used.
[0063] This embodiment adopts a deterministic image processing approach. Edge extraction, HSV color space conversion, image difference, Otsu binary segmentation, and eight-neighbor connectivity determination can all be completed using existing digital image processing methods.
[0064] The image acquisition-based method for monitoring the use of vanadium redox flow batteries provided in this application includes steps S1 to S4, as detailed below:
[0065] Step S1: Obtain the running image, determine the structural image region, and construct the first and second loop connection paths corresponding to the positive and negative loop circuits, respectively.
[0066] It should be noted that step S1 is used to convert the operating images collected during the operation of the vanadium redox flow battery into structural image regions, and to form a first loop connection path and a second loop connection path according to the connection relationship between the battery structures, so that the subsequent liquid level change state, state propagation position, actual response position, predicted response range and response deviation section can all be determined along a clear battery structure path.
[0067] In some embodiments, step S1 includes steps S11 to S14:
[0068] Step S11: Extract the structural outline of each battery structure from the running image, and form a structural image region based on each structural outline.
[0069] Specifically, before the vanadium redox flow battery is put into monitoring, a baseline structural image is acquired to calibrate the structure of the positive electrolyte tank, negative electrolyte tank, positive circulation pipeline, negative circulation pipeline, positive circulation pump, negative circulation pump, and stack. For locations with a significant grayscale gradient between the outer edge of the equipment and the background, structural boundaries are extracted based on continuous gradient edges. For locations where the outer wall of the tank or pipeline has a similar grayscale to the background, visual markers can be set on the equipment surface. The structural outline is closed by combining the visual markers with the identified structural edges. After the structural outline is closed, the pixels inside the structural outline are grouped to form corresponding structural image regions. For example, the structural image region R11 corresponds to the positive electrolyte tank, R12 to the positive circulation pipeline, R13 to the positive circulation pump, R14 to the stack, R21 to the negative electrolyte tank, R22 to the negative circulation pipeline, and R23 to the negative circulation pump.
[0070] It should be noted that step S11 clarifies the spatial boundaries of each battery structure in the image, so that subsequent changes in pixels, structural connection sections, and state propagation positions can all be mapped to specific battery structures, thereby reducing the probability of background brightness changes outside the device entering the operational state analysis.
[0071] Step S12: Determine the structural connection section between adjacent structural image regions.
[0072] It should be noted that the structural connection section is used to represent the connection position of two adjacent battery structures in the image space, such as the connection position between the electrolyte tank and the circulation pipeline, the connection position between the circulation pipeline and the circulation pump, and the connection position between the circulation pipeline and the stack. The determination of the structural connection section further utilizes the geometric changes of the adjacent structural contours to form local narrowing at the connection position.
[0073] In some embodiments, step S12 includes steps S121 to S123:
[0074] Step S121: Match the boundary pixels of the structural contours on both sides along the interval direction between adjacent structural image regions to form multiple pairs of opposing boundary pixels.
[0075] Specifically, candidate connection regions are determined between two adjacent structural image regions. Starting from one boundary pixel of the first structural contour, the search continues along the local normal direction pointing to the second structural contour, searching for boundary pixels of the second structural contour. Two boundary pixels whose angle between the search direction and the local normal direction is within the allowed range and can form an opposing boundary pixel pair are formed. In one example, the allowed angle between the search direction and the local normal direction is no greater than 10°. After continuously moving the search position along the candidate connection region, opposing boundary pixel pairs P1, P2...Pn are formed. 10° is only an example value; in actual use, it can be determined based on the maximum local directional fluctuation of the interface edge in the reference structural image.
[0076] It should be noted that step S121 converts the continuous structural contour into multiple pairs of opposing boundary pixels that can reflect the width of the local structure, providing a discrete geometric basis for the analysis of the narrowing degree of the connected region.
[0077] Step S122: Form a spacing change trajectory based on the pixel spacing of each pair of opposing boundary pixels.
[0078] For any pair of opposing boundary pixels, the Euclidean pixel distance is calculated based on the image coordinates of the two boundary pixels, and the pixel distances are arranged in the order of distribution along the connection direction of each pair of opposing boundary pixels. For example, if the pixel spacing of eight consecutive pairs of opposing boundary pixels is 42px, 37px, 31px, 25px, 21px, 24px, 30px, and 36px respectively, then the spacing variation trajectory is formed after arranging them according to the corresponding search positions. When considering local contour noise, a five-point median filter can be used to smooth the distance sequence. The five-point median filter is only used to eliminate isolated abrupt changes in distance and does not change the overall contraction and expansion trend of the spacing trajectory.
[0079] It should be noted that step S122 describes the geometric change of adjacent structures at the connection position from wide to narrow and then from narrow to wide by the change in pixel spacing corresponding to continuous positions.
[0080] Step S123: Determine the narrowing segment in the spacing change trajectory where the pixel spacing continuously decreases and then continuously increases, and determine the position with the smallest pixel spacing in the narrowing segment as the structural connection section.
[0081] Taking the aforementioned 42px, 37px, 31px, 25px, 21px, 24px, 30px, and 36px as examples, the pixel spacing from 42px to 21px represents a continuous decreasing process, while the pixel spacing from 21px to 36px represents a continuous increasing process. Therefore, the position corresponding to 21px is located at the narrowest point of the narrowing segment. The cross-sectional position between the corresponding opposing boundary pixel pairs is determined as the structural connection section. For flange structures that result in multiple consecutive positions having the same minimum pixel spacing, the average coordinate value of multiple minimum spacing positions can be calculated, and the center position of the structural connection section can be determined based on the average coordinate value.
[0082] It should be noted that step S123 uses the local narrowing geometric relationship of the connection position itself to determine the structural connection section, which can reduce the positional offset caused by flange edge or local contour protrusion compared to relying solely on the shortest Euclidean distance between two structural contours.
[0083] It should be noted that the structural connection section output in step S12 is subsequently used for cyclic connection path construction, path location characterization, prediction response interval determination, and candidate connection interface location.
[0084] Step S13: Connect the corresponding battery structures in the positive electrode loop sequentially according to the connection sections of each structure to form the first loop connection path, and connect the corresponding battery structures in the negative electrode loop sequentially to form the second loop connection path.
[0085] Specifically, the monitoring and processing device establishes structural connection relationships based on the battery structures on both sides of each structural connection section, and arranges the structural connection relationships from the electrolyte storage tank toward the stack.
[0086] For example, it can form a structure as shown in Table 1:
[0087] Table 1 Battery Structure Connection Relationships
[0088]
[0089] According to the order in the table, the corresponding structural image regions and structural connection sections are connected sequentially to form the first and second loop connection paths. The first and second loop connection paths are image analysis paths used for state propagation analysis. They are not required to cover the complete electrolyte reflux closed loop; they only need to cover the path range for state propagation monitoring from the electrolyte tank side to the stack side in this embodiment.
[0090] It should be noted that step S13 converts each discrete structure image region into a continuous analysis object with a fixed path order, so that subsequent state change pixels can be propagated and analyzed according to the device topology.
[0091] Step S14, wherein the first loop connection path corresponds to the positive loop circuit and the second loop connection path corresponds to the negative loop circuit.
[0092] This embodiment maintains the correspondence between the first cyclic connection path and the positive electrode cyclic loop, and the correspondence between the second cyclic connection path and the negative electrode cyclic loop throughout the entire process. The roles of the two cyclic connection paths are not swapped in subsequent processing. The first cyclic connection path is used to provide a state prediction benchmark, and the second cyclic connection path is used to provide the actual response location.
[0093] It should be noted that step S14 keeps the technical roles of the two cyclic connection paths fixed, so that the subsequent state propagation position, predicted response interval and actual response position have stable subject attribution.
[0094] Preferably, step S1 converts the physical structure of the vanadium redox flow battery into an image analysis path with a clear topological relationship by using the structural outline, structural connection cross-section, and battery structural connection relationship, so that subsequent image change analysis can be constrained by the real battery connection structure.
[0095] Step S2: Based on the liquid level changes in the positive and negative electrolyte storage tanks, determine the state propagation position of the first cycle connection path and the actual response position of the second cycle connection path.
[0096] It should be noted that step S2 uses the change in the liquid level of the storage tank to constrain the search direction of the changing pixels in the corresponding cyclic connection path. The state change advancement boundary in the first cyclic connection path forms the state propagation position, which is used to predict the response range of the second cyclic connection path. The state change advancement boundary in the second cyclic connection path forms the actual response position, which is used to compare with the predicted response range.
[0097] In some embodiments, step S2 includes steps S21 to S23:
[0098] Step S21: Establish longitudinal center axes along the height direction of the positive electrode electrolyte storage tank and the negative electrode electrolyte storage tank respectively, and set detection sections according to the lateral width of the storage tank at each height position.
[0099] Specifically, for the structural image regions of the positive and negative electrolyte storage tanks, the bottom center position and top center position of the tank are determined respectively. Connecting the bottom and top center positions forms a longitudinal central axis. Multiple height positions are selected along the longitudinal central axis at fixed pixel intervals, for example, selecting a height position every 4 pixels. The left and right structural boundaries of the tank are searched at the corresponding height positions, and the lateral width of the tank is determined based on the distance between the left and right structural boundaries. The detection segment is located inside the corresponding tank structural image region. For example, 80% of the tank's lateral width can be determined as the length of the detection segment, with the midpoint of the detection segment located on the longitudinal central axis. 80% is an example value and can be determined based on the lateral width occupied by the reflective area on the outer wall of the tank in the reference image, ensuring that the detection segment avoids the reflective area on the outer edge of the tank.
[0100] It should be noted that step S21 dynamically sets the detection section according to the actual lateral width of the storage tank at different heights, which can reduce the problem of the detection area extending beyond the storage tank boundary when using a fixed-length detection line.
[0101] Step S22: Form liquid surface candidate boundaries based on the continuous occupation of electrolyte pixels in each detection segment, and form liquid surface change state based on the position migration of liquid surface candidate boundaries in adjacent images.
[0102] Specifically, before the equipment is put into monitoring, at least 30 images of the storage tank in normal condition are collected, and the image areas of the storage tank structure are converted to the HSV color space. The value ranges of the hue component H and saturation component S are statistically analyzed for the manually confirmed normal electrolyte areas. The value ranges of H and S corresponding to the normal electrolyte samples form the electrolyte pixel recognition range corresponding to the current equipment. Pixels in subsequent images that fall within both the corresponding H and S value ranges are identified as electrolyte candidate pixels. For any detection segment, adjacent electrolyte candidate pixels are connected according to the eight-neighbor connectivity relationship. The continuous electrolyte pixel segment with the largest span is identified as the continuous electrolyte occupied segment. The continuous occupancy of electrolyte in detection segments of different heights is compared along the longitudinal central axis. Liquid surface candidate boundaries are formed at the positions where multiple adjacent detection segments change from continuous occupancy to discontinuous occupancy.
[0103] For example, if the longitudinal coordinate of the candidate boundary of the positive electrolyte tank is 428px at time t1 and 414px at time t2, then the direction of liquid surface migration can be determined by combining the increasing direction of the longitudinal coordinate in the unified image coordinate system. The liquid surface migration amount is then calculated based on the 14px distance between the two coordinates. The direction and amount of liquid surface migration together form the corresponding liquid surface change state. The negative electrolyte tank is processed in the same way to form the corresponding liquid surface change state.
[0104] It should be noted that the range of electrolyte pixel values in step S22 is derived from the current normal operating reference image of the equipment, rather than a fixed threshold without a source; by using multiple detection segments to form liquid surface candidate boundaries, the single-point liquid surface recognition error caused by local foam, liquid adhering to the tank wall, and local reflection can be reduced.
[0105] Step S23: Extract continuously changing pixel regions along the first and second loop connection paths according to the liquid level change state, and determine the corresponding propagation boundary as the state propagation position and the actual response position.
[0106] Specifically, the monitoring and processing device performs image registration on two analysis images corresponding to the time interval Δt. After aligning the positions of the same battery structures, it calculates the grayscale difference of the corresponding pixels and forms a differential grayscale image. Then, the Otsu method is used to automatically determine the differential segmentation value based on the grayscale histogram of the current differential grayscale image. Pixels whose difference reaches the differential segmentation value are determined as changed pixels, and pixels whose difference does not reach the differential segmentation value are determined as non-changed pixels. Adjacent changed pixels are connected according to the eight-neighbor connectivity relationship to form a changed pixel region.
[0107] Based on the liquid level change state of the positive electrode electrolyte tank, a continuously changing pixel region is searched from the tank side to the stack side along the first loop connection path, and the farthest boundary of the continuously changing pixel region advancing along the first loop connection path is determined as the state propagation position; based on the liquid level change state of the negative electrode electrolyte tank, a continuously changing pixel region is searched along the second loop connection path in the same way, and the corresponding advancement boundary is determined as the actual response position.
[0108] It should be noted that step S23 determines the effective propagation direction of the changing pixels by the liquid surface change state, and then forms the state propagation position and the actual response position based on the continuously changing pixel region, so that random brightness changes that are unrelated to the current electrolyte circulation state are not directly used as the circulation path propagation result.
[0109] Preferably, step S2 establishes a connection between the change in the liquid level of the storage tank and the relationship between the change pixels in the cyclic connection path, so that the state propagation position of the first cyclic connection path and the actual response position of the second cyclic connection path have a common source of state change.
[0110] Step S3: Establish the state correspondence between the first cyclic connection path and the second cyclic connection path, determine the predicted response interval based on the state propagation position, and determine the response deviation segment when the actual response position is outside the predicted response interval.
[0111] It should be noted that the actual lengths of the first and second loop connection paths, the size of the circulation pump, and the installation distances between the devices usually differ. Therefore, instead of directly using the same image coordinates to establish the state position correspondence, the interface role and relative path position of the structural connection section are used to establish the state correspondence. Then, based on the state correspondence, the state propagation position of the first loop connection path is converted into the predicted response interval in the second loop connection path.
[0112] In some embodiments, step S3 includes steps S31 to S34:
[0113] Step S31: Determine the connection position between the electrolyte storage tank and the circulation pipeline as the starting position of the path, and determine the connection position corresponding to the fuel cell stack as the ending position of the path.
[0114] Specifically, in the first circulation connection path, the connection section J11 between the positive electrode electrolyte storage tank and the first positive electrode circulation pipeline is determined as the path start position, and the connection section J14 between the second positive electrode circulation pipeline and the fuel cell stack is determined as the path end position; in the second circulation connection path, the connection section J21 between the negative electrode electrolyte storage tank and the first negative electrode circulation pipeline is determined as the path start position, and the connection section J24 between the second negative electrode circulation pipeline and the fuel cell stack is determined as the path end position. The path start and end positions are the path analysis benchmarks and do not indicate that the physical cycle has natural start and end points.
[0115] It should be noted that step S31 clarifies the path distance calculation benchmark in the two cyclic connection paths, enabling cyclic connection paths of different lengths to be compared using a unified relative position method.
[0116] Step S32: A two-way position representation is formed based on the first path distance from each structural connection section to the starting position of the path and the second path distance to the ending position of the path, and a state correspondence is established based on each two-way position representation.
[0117] Specifically, for any structural connection section, the cumulative path distance from the starting position of the corresponding cyclic connection path to the current structural connection section is calculated to obtain the first path distance d1. Simultaneously, the remaining path distance from the current structural connection section to the ending position of the path is calculated to obtain the second path distance d2. Let the total path length of the corresponding cyclic connection path be L. The bidirectional position representation of the corresponding structural connection section can be composed of d1 / L and d2 / L. Since the two normalized position components satisfy a complementary relationship in the case of a continuous single path, this embodiment does not interpret the two components as two independent state features, but rather uses the bidirectional position representation as a description of the position of the structural connection section relative to the two reference ends of the path.
[0118] The interface roles are further determined based on the battery structures on both sides of the structural connection cross-section. These interface roles include, for example, tank-pipeline interface roles, pipeline-circulation pump interface roles, circulation pump-pipeline interface roles, and pipeline-fuel stack interface roles. When establishing the state correspondence between the first and second circulation connection paths, candidate structural connection cross-sections with the same interface role as the target structural connection cross-section in the first circulation connection path are first selected from the second circulation connection path. Then, the first normalized position difference between the candidate structural connection cross-section and the target structural connection cross-section is calculated, and the candidate structural connection cross-section with the smallest position difference is established as the corresponding cross-section. If two candidate structural connection cross-sections have the same first normalized position difference, the candidate structural connection cross-section that is consecutive in path sequence to the previously established corresponding cross-section is selected.
[0119] For example, the following table 2 can be generated:
[0120] Table 2 State Correspondence
[0121]
[0122] It should be noted that step S32 does not simply establish a correspondence based on the absolute image distance between the two structural connection sections. Instead, it first uses the interface role to limit the matchable objects, and then uses the relative path position to determine the specific corresponding structural connection section, thereby avoiding the incorrect establishment of a correspondence between different types of interfaces due to their close positions.
[0123] Step S33: Determine the predicted response interval based on the state propagation location and state correspondence.
[0124] In some embodiments, step S33 includes steps S331 to S333:
[0125] Step S331: Determine the first structural connection section and the second structural connection section located on both sides of the state propagation position in the first cyclic connection path.
[0126] Specifically, the system searches for two structural connection sections adjacent to the state propagation position along the path sequence of the first cyclic connection path. The structural connection section located on the side of the state propagation position closer to the start of the path is determined as the first structural connection section, and the structural connection section located on the side of the state propagation position closer to the end of the path is determined as the second structural connection section. For example, if the state propagation position is between J12 and J13, then J12 is determined as the first structural connection section, and J13 is determined as the second structural connection section.
[0127] It should be noted that step S331 uses two adjacent structural connection sections to perform interval constraints on the state propagation position, avoiding directly mapping a single state propagation pixel position to a single pixel position in the second loop connection path.
[0128] Step S332: Based on the state correspondence, determine the third and fourth structural connection sections that correspond to the first and second structural connection sections respectively in the second loop connection path.
[0129] For example, according to the state correspondence established in step S32, J12 corresponds to J22, and J13 corresponds to J23. Therefore, J22 is determined as the third structural connection section, and J23 is determined as the fourth structural connection section.
[0130] Step S333: The path segment between the third structural connection section and the fourth structural connection section is determined as the predicted response interval.
[0131] Specifically, the monitoring and processing device determines the order of the third and fourth structural connection sections along the second cyclic connection path based on the state correspondence, records the continuous path segments traversed between them as the predicted response interval, and registers the two structural connection sections as the boundary of the predicted response interval. The predicted response interval serves as the spatial range for subsequent comparison of the actual response positions.
[0132] For example, when the third structural connection section is J22 and the fourth structural connection section is J23, the second loop connection path between J22 and J23 is determined as the predicted response interval. The predicted response interval adopts a path segment form rather than a single point form to accommodate the structural differences between the first and second loop connection paths in terms of circulation pump size, pipeline length, local installation distance, and image projection scale.
[0133] It should be noted that step S33 uses structural connection sections to form the predicted response interval instead of directly using a single point mapping, which can preserve the structural size difference between the first and second cyclic connection paths.
[0134] Step S34: In response to the actual response location being outside the predicted response range, determine the response deviation segment.
[0135] In some embodiments, step S34 includes steps S341 to S342:
[0136] Step S341: Determine the deviation direction based on the position of the actual response location relative to the predicted response interval, and determine the target interval boundary of the predicted response interval along the deviation direction.
[0137] Specifically, when the actual response position is located on the side of the predicted response interval closer to the start of the path, the direction from the predicted response interval to the start of the path is determined as the deviation direction, and the boundary of the target interval closer to the start of the path is determined; when the actual response position is located on the side of the predicted response interval closer to the end of the path, the direction from the predicted response interval to the end of the path is determined as the deviation direction, and the boundary of the target interval closer to the end of the path is determined.
[0138] Step S342: The path segment between the target interval boundary and the actual response position is determined as the response deviation segment.
[0139] For example, if the predicted response range is J22 to J23, and the actual response position is 96mm from J23 towards the path termination position, then J23 is the boundary of the target range, and the second loop connection path 96mm between J23 and the actual response position forms a response deviation segment. When the actual response position is within the predicted response range, no response deviation segment is formed, and the current monitoring result is directly formed by combining the state constraints corresponding to the current operating condition. For example, it can be formed as shown in Table 3:
[0140] Table 3 Response Location Relationship
[0141]
[0142] It should be noted that step S342 determines the response deviation segment based on the actual spatial difference between the target interval boundary and the actual response position, so that step S4 can perform interface positioning around the response deviation segment without having to perform interface search on the entire second loop connection path.
[0143] It should be noted that step S34 forms a response deviation segment by predicting the path position relationship between the response interval and the actual response position, thereby determining the path range for subsequent target connection interface positioning.
[0144] It should be noted that step S34 only forms the response deviation segment used in step S4 when the actual response position is outside the predicted response range; the response deviation segment is not invoked when the actual response position is within the predicted response range.
[0145] Preferably, step S3 establishes a state correspondence between the first and second cyclic connection paths by using the interface roles and path relative positions, dynamically generates a predicted response interval using the state propagation results of the first cyclic connection path, and then determines whether to enter the response deviation positioning branch based on the positional relationship between the actual response position and the predicted response interval.
[0146] Step S4: Obtain the current operating conditions and corresponding state constraints. If the actual response position is outside the predicted response range, determine the target connection interface and monitoring position based on the response deviation segment. Combine the local image and state constraints to determine the actual usage status and monitoring results. If the actual response position is within the predicted response range, determine the actual usage status and monitoring results according to the state constraints.
[0147] It should be noted that the current operating condition is provided to the monitoring and processing device by the battery operation control device. The monitoring and processing device determines the corresponding state constraints based on the current operating condition. When the actual response position is outside the predicted response range, step S4 further narrows the response deviation segment to the specific connection interface, and determines the monitoring position and local monitoring area based on the expansion difference of the changing pixels near the candidate connection interface. Then, the monitoring result is formed using the local image and state constraints. When the actual response position is within the predicted response range, no response deviation segment is formed, and the candidate connection interface is not located. The monitoring result is formed directly based on the corresponding state constraints.
[0148] In some embodiments, in response to the actual response location being outside the predicted response interval, step S4 includes steps S41 to S44:
[0149] Step S41: Determine the first candidate connection interface and the second candidate connection interface based on the response deviation segment.
[0150] Specifically, the monitoring and processing device sequentially reads the continuously changing pixels on both sides of each structural connection section along the response deviation segment, and determines the candidate connection interface based on the bridging status of the changing pixels before and after the structural connection section.
[0151] Specifically, for any structural connection section within the response deviation segment, the changing pixels connected to the current continuously changing pixel region on both sides of the structural connection section are acquired. When a changing pixel can continuously extend from the previous structural image region to the structural connection section and cross the structural connection section through an eight-neighborhood continuity relationship to enter the subsequent structural image region, the bridging state of the corresponding structural connection section is recorded as continuous; when a changing pixel can extend to one side of the structural connection section, but there are no eight-neighborhood continuous changing pixels crossing the structural connection section to enter the structural image region on the other side, the corresponding bridging state is recorded as interrupted. The bridging states of each structural connection section are arranged along the deviation direction. For example, J23 corresponds to continuous, J25 corresponds to continuous, J26 corresponds to interrupted, and J27 corresponds to interrupted. The bridging state changes from continuous to interrupted between J25 and J26. The connection interface corresponding to J25 is determined as the first candidate connection interface, and the connection interface corresponding to J26 is determined as the second candidate connection interface.
[0152] When the response deviation segment contains only one structural connection section, the corresponding connection interface is directly determined as the target connection interface, and the center position of the corresponding structural connection section is determined as the initial monitoring position. When the response deviation segment does not contain a structural connection section, the structural image area where the actual response position is located is determined as the target structural image area, and a local monitoring area is formed around the actual response position. When the response deviation segment contains two or more structural connection sections but there is no bridging state transition, the structural connection section closest to the actual response position and the structural connection section adjacent along the direction of the predicted response interval are determined as the first candidate connection interface and the second candidate connection interface, respectively.
[0153] It should be noted that step S41 determines the local interface range where the state propagation transition occurs by determining whether continuously changing pixels can cross the structural connection section, so that subsequent monitoring points do not need to be selected indiscriminately throughout the entire response deviation range.
[0154] Step S42: Determine the target connection interface and monitoring position based on the expansion difference of neighboring changed pixels of the first candidate connection interface and the second candidate connection interface.
[0155] It should be noted that if the geometric midpoint between the first candidate connection interface and the second candidate connection interface is directly used as the monitoring position, when the changing pixels are obviously concentrated in one of the candidate connection interfaces, the fixed midpoint cannot reflect the difference in the degree of state change of the two candidate connection interfaces. Therefore, step S42 further uses the extended length of the changing pixels near the two candidate connection interfaces to adjust the monitoring position.
[0156] In some embodiments, step S42 includes steps S421 to S424:
[0157] Step S421: Determine the first interface extension length and the second interface extension length along the deviation direction of the first candidate connection interface and the second candidate connection interface, respectively.
[0158] Specifically, starting from the structural connection section corresponding to the first candidate connection interface, search along the deviation direction for changing pixels that form an eight-neighborhood continuous relationship with the changing pixels adjacent to the first candidate connection interface. Determine the boundary of the continuous changing pixel farthest from the first candidate connection interface, and calculate the path projection length from the first candidate connection interface to the corresponding farthest continuous changing pixel boundary in the deviation direction. This path projection length is determined as the first interface extension length. Using the same method, determine the corresponding farthest continuous changing pixel boundary from the second candidate connection interface along the deviation direction, and form the second interface extension length. For example, the first interface extension length L1 is 42px, and the second interface extension length L2 is 18px.
[0159] It should be noted that the first interface extension length and the second interface extension length are both determined along the deviation direction. They are used to compare the degree of pixel expansion of the two candidate connection interfaces in the path deviation direction, and are not used to determine the local image size in the vertical deviation direction.
[0160] Step S422: Connect the center of the first candidate connection interface and the second candidate connection interface to form a positioning line segment, and determine the midpoint of the positioning line segment as the initial monitoring point.
[0161] Specifically, the center coordinates of the interfaces are determined based on the two endpoints of the corresponding structural connection sections of the first and second candidate connection interfaces, and then the two interface centers are connected to form a positioning line segment. For example, if the center coordinates of the first candidate connection interface are (420, 516) and the center coordinates of the second candidate connection interface are (480, 516), the positioning line segment length is 60px, and the midpoint coordinates of the positioning line segment are (450, 516), then the coordinates (450, 516) are determined as the initial monitoring point.
[0162] It should be noted that the initial monitoring point represents the initial geometric equilibrium position between the two candidate connection interfaces, and the offset distance of subsequent monitoring points is corrected based on the difference in pixel expansion between the two interfaces.
[0163] Step S423: In response to the difference between the first interface extension length and the second interface extension length, determine the response offset direction based on the direction of the difference between the first interface extension length and the second interface extension length, determine the response offset ratio based on the absolute value of the difference and the sum of the two interface extension lengths, and determine the monitoring point offset distance based on the response offset ratio and the half-segment length of the positioning line segment.
[0164] Specifically, when the extension length of the first interface is greater than the extension length of the second interface, the direction from the initial monitoring point to the first candidate connection interface is determined as the response offset direction; when the extension length of the second interface is greater than the extension length of the first interface, the direction from the initial monitoring point to the second candidate connection interface is determined as the response offset direction. The response offset ratio R can be determined based on the ratio of the absolute value of the difference between the extension lengths of the first and second interfaces to their sum, i.e., R = |L1 - L2| / (L1 + L2). To ensure that the monitoring position after moving from the midpoint of the positioning line segment does not cross any candidate connection interface, the monitoring point offset distance D is determined based on the product of the response offset ratio and half the length of the positioning line segment, i.e., D = R × L0 / 2, where L0 is the length of the positioning line segment.
[0165] For example, when the first interface extension length is 42px and the second interface extension length is 18px, the response offset ratio is |42-18| / (42+18)=0.4; the positioning line segment length is 60px, and half the positioning line segment length is 30px, therefore the monitoring point offset distance is 0.4×30px=12px. Since the first interface extension length is greater than the second interface extension length, the response offset direction points to the first candidate connection interface.
[0166] For example, it can form a table like Table 4:
[0167] Table 4 Calculation data for monitoring locations
[0168]
[0169] It should be noted that the response offset ratio is a dimensionless parameter. It is combined with the half length of the positioning line segment to form the monitoring point offset distance with the dimension of pixel length. The response offset ratio is between 0 and 1. Therefore, the monitoring point offset distance is not greater than the half length of the positioning line segment, and the monitoring position is maintained between the centers of the two candidate connection interfaces or falls on the center position of the corresponding candidate connection interface.
[0170] In step S424, in response to the difference between the extension length of the first interface and the extension length of the second interface, the monitoring point is moved from the initial monitoring point along the response offset direction by an offset distance to obtain the monitoring position, and the candidate connection interface corresponding to the response offset direction is determined as the target connection interface; in response to the same extension length of the first interface and the extension length of the second interface, the initial monitoring point is determined as the monitoring position, and the candidate connection interface that is closer to the actual response position is determined as the target connection interface.
[0171] Specifically, when the initial monitoring point coordinates are (450, 516), the monitoring point offset distance is 12px, and the response offset direction points towards the first candidate connection interface, the monitoring point moves 12px from the initial monitoring point along the positioning line segment towards the first candidate connection interface to obtain the corresponding monitoring position, and the first candidate connection interface is determined as the target connection interface. When the extension length of the first interface is equal to the extension length of the second interface, the response offset ratio is 0, the initial monitoring point is directly determined as the monitoring position, and the path distances from the first candidate connection interface and the second candidate connection interface to the actual response position are compared. The candidate connection interface with the smaller distance is determined as the target connection interface, thus ensuring that the target connection interface under the condition of equal length still has a clear basis for determination.
[0172] It should be noted that step S42 adjusts the monitoring position by utilizing the asymmetric expansion degree of the adjacent changing pixels of the two candidate connection interfaces, so that the local monitoring center can move towards the candidate connection interface with a more obvious degree of change.
[0173] Step S43: Determine the local monitoring area based on the monitoring location and acquire local images.
[0174] In some embodiments, step S43 includes steps S431 to S433:
[0175] Step S431: Determine the first monitoring scale along the deviation direction based on the path length of the response deviation segment.
[0176] Specifically, the path length of the response deviation segment is calculated along the second loop connection path. Simultaneously, the interface structure length of the target connection interface is determined based on the pixel span of the corresponding structural connection region along the deviation direction. The sum of the response deviation segment path length and the interface structure length is then used as the first monitoring scale. For example, if the response deviation segment path length is 96px and the target connection interface interface structure length along the deviation direction is 14px, then the first monitoring scale is 110px.
[0177] It should be noted that the first monitoring scale is derived from the structural range of the current response deviation section and the target connection interface itself, so that the local monitoring area can simultaneously cover the main range of the path deviation section and the target connection interface along the deviation direction.
[0178] Step S432: Determine the interface extension width of the adjacent changing pixels of the target connection interface in the vertical deviation direction, and determine the second monitoring scale based on the interface extension width.
[0179] Specifically, the system searches for boundaries that form a continuous relationship with adjacent changing pixels of the target connection interface from the center of the target connection interface along two opposite directions of the vertical deviation direction. This determines the first and second horizontal boundaries, and the pixel distance between the first and second horizontal boundaries is calculated to form the interface expansion width. Simultaneously, the interface structure width is determined based on the pixel span of the corresponding structural connection area of the target connection interface in the vertical deviation direction. The sum of the interface expansion width and the interface structure width is then used as the second monitoring scale. For example, when the horizontal coordinate of the first horizontal boundary is 392px and the horizontal coordinate of the second horizontal boundary is 448px, the interface expansion width is 56px; when the width of the target connection interface itself is 16px, the second monitoring scale is 72px.
[0180] It should be noted that the first interface extension length and the second interface extension length are both determined along the deviation direction and used to dynamically adjust the monitoring position, while the interface extension width is determined along the vertical deviation direction and used to determine the lateral dimension of the local monitoring area. The measurement direction and purpose of the two parameters remain independent.
[0181] Step S433: A local monitoring area is formed around the monitoring location according to the first monitoring scale and the second monitoring scale, and a local image is obtained from the running image.
[0182] Specifically, the monitoring location is taken as the geometric center of the local monitoring area. The monitoring area is expanded by half a first monitoring scale in each of two directions along the deviation direction, and by half a second monitoring scale in each of two directions along the vertical deviation direction, thus forming the local monitoring area. For example, when the first monitoring scale is 110px and the second monitoring scale is 72px, a rectangular local monitoring area of 110px × 72px can be formed, and the corresponding image can be cropped from the currently analyzed image to obtain the local image. The rectangular area is only one implementation method. For curved pipes, oblique interfaces, or irregular interfaces, a strip-shaped local monitoring area can be formed along the centerline of the loop connection path, or an irregular local monitoring area can be formed based on the outer envelope of the changing pixels adjacent to the target connection interface.
[0183] It should be noted that the center position of the local monitoring area in step S433 is derived from the difference in the candidate connection interface, the size along the deviation direction is derived from the response deviation segment, and the size in the vertical deviation direction is derived from the neighboring changing pixels of the target connection interface. Therefore, the position and range of the local monitoring area are dynamically determined as the current image state changes.
[0184] Step S44: Determine the actual usage status and monitoring results based on the local image and state constraints.
[0185] In some embodiments, step S44 includes steps S441 to S442:
[0186] Step S441: A deviation verification state is formed based on the correspondence between the main expansion direction and the deviation direction of the changing pixels in the local image.
[0187] Specifically, multiple detection directions are set outward from the center of the target connection interface. For example, the angle corresponding to the deviation direction is defined as 0°, and detection rays are set at 15° intervals within the range of -90° to +90°. For each detection ray, the maximum extension length of the changing pixels that can maintain an eight-neighborhood continuity from the target connection interface is counted, and the direction of the detection ray corresponding to the maximum continuous extension length is determined as the main expansion direction of the changing pixels. When the angle between the main expansion direction and the deviation direction is not greater than the direction judgment value, the deviation verification state is determined as consistent in direction; when the angle is greater than the direction judgment value, the deviation verification state is determined as inconsistent in direction; when there are no changing pixels continuously expanding outward from the target connection interface in the local image, the deviation verification state is determined as no interface expansion found.
[0188] Instead of using a fixed parameter without a source, the direction determination value is collected during the equipment calibration phase for no less than 30 normal operating cycles under corresponding operating conditions. The absolute value of the angle between the main expansion direction of the changing pixels in the normal samples and the direction of the corresponding cyclic connection path is calculated, and the 95th percentile of the absolute value of the angle is determined as the direction determination value for the current equipment. For example, if the 95th percentile angle of a normal sample for a certain equipment is 28°, then 28° can be used as the direction determination value for the current operating condition of the equipment.
[0189] The battery operation control device outputs a current operating condition identifier to the monitoring and processing device. This identifier includes one of the following: start-up cycle, steady-state charging, steady-state discharging, or stop cycle. The monitoring and processing device determines and invokes the corresponding state constraints based on the current operating condition identifier. State constraints are formed during the equipment calibration phase based on data from at least 30 normal operating cycles under each operating condition. For example, the liquid level migration range is determined using the 5th to 95th percentile values of normal samples; path response is judged by whether the actual response position is within the predicted response range; and interface status is judged by the main expansion direction of changing pixels, continuous expansion status, and normal interface change range.
[0190] For example, we can create a table like Table 5:
[0191] Table 5 Operating Condition Constraints
[0192]
[0193] Step S442: Determine the actual usage status and monitoring results based on the deviation verification status and status constraints.
[0194] The monitoring and processing device further determines the actual usage status based on the liquid level status verification results, path response verification results, and deviation from the verification status. For example, if the liquid level status meets the current operating condition constraints, the path response verification result is compliant, and there are no independent interface anomalies, the actual usage status is determined to be normal operation; if the liquid level status is compliant, the path response verification result is non-compliant, and the deviation from the verification status is in the same direction, the actual usage status is determined to be target connection interface anomaly; if the liquid level status is compliant, the path response verification result is non-compliant, and the deviation from the verification status is inconsistent in direction or no interface expansion is found, the actual usage status is determined to be path response anomaly and enters the verification monitoring phase; if the liquid level status is non-compliant and the path response verification result is non-compliant, the actual usage status is determined to be electrolyte circulation anomaly; if the liquid level status is non-compliant but the path response verification result is compliant, the actual usage status is determined to be tank liquid level status anomaly; if the path response is compliant but there are independent interface expansions in the local image that exceed the normal interface status constraints, the actual usage status is determined to be target connection interface local anomaly.
[0195] For example, in a steady-state charging cycle, the state propagation position of the first loop connection path is between J12 and J13. Based on the state correspondence, the predicted response range of the second loop connection path is from J22 to J23. The actual response position of the second loop connection path is 96mm behind J23, thus forming a response deviation segment between J23 and the actual response position. Based on the bridging state transition of the structural connection cross-section within the response deviation segment, a first candidate connection interface and a second candidate connection interface are obtained. The first interface has an extension length of 42px, the second interface has an extension length of 18px, the positioning line segment length is 60px, and the response offset ratio is 0.4. The monitoring point offset distance is 12px, and the response offset direction points to the first candidate connection interface, therefore the first candidate connection interface is determined to be the target connection interface; the response deviation segment path length is 96px, and the interface structure length of the target connection interface along the deviation direction is 14px, therefore the first monitoring scale is 110px; the interface expansion width of the adjacent changing pixels of the target connection interface is 56px, and the interface structure width is 16px, therefore the second monitoring scale is 72px; the angle between the main expansion direction of the changing pixels in the local image and the deviation direction is 12°, and the direction determination value of the current device corresponding to the steady-state charging condition is 28°, therefore the deviation verification state is consistent in direction. Since the liquid surface state meets the steady-state charging constraints, the actual response position is outside the predicted response range, and the local interface change direction is consistent with the response deviation direction, the actual usage state is determined to be an abnormal target connection interface.
[0196] The monitoring results can include the current operating conditions, liquid level changes, the state propagation position of the first loop connection path, the actual response position of the second loop connection path, the predicted response range, the response deviation range, the first candidate connection interface, the second candidate connection interface, the target connection interface, the monitoring position, the local monitoring area, the deviation verification status, and the actual usage status. These results are continuously generated by the monitoring and processing device according to the aforementioned steps, without requiring manual recombining and judgment.
[0197] It should be noted that step S44 performs reverse verification of the path-level response deviation by expanding the local change pixel of the target connection interface, and combines the liquid surface state constraint, path response constraint and interface state constraint corresponding to the current operating condition to form the actual use state, so that the final monitoring result can be traced back to the specific image features and path position relationship.
[0198] It should be noted that steps S42 and S43, through the continuous processing of "interface extension length, response offset ratio, monitoring point offset distance, monitoring position, interface extension width, and local monitoring area", ensure that both dynamic monitoring points and dynamic local areas have clear preceding data sources.
[0199] When the actual response location is within the predicted response range, no response deviation segment is formed, and candidate connection interface positioning and local monitoring area construction are not performed. The monitoring and processing device determines the actual usage status and monitoring results based on the state constraints corresponding to the current operating conditions. When the actual response location is outside the predicted response range, steps S41 to S44 form the target connection interface, monitoring location, local monitoring area, deviation verification status, and final monitoring results corresponding to the response deviation segment. Verification monitoring only reacquires the operating image and performs monitoring analysis; it does not send control commands to the battery operation control device.
[0200] It should be noted that step S44 fully covers the two main processing branches where the actual response location is inside or outside the predicted response range, enabling the final actual usage status to be traced step by step from the running image, tank liquid level change, cross-path status prediction, and local image of the target connection interface.
[0201] Preferably, step S4 progressively narrows down the monitoring object in the order of response deviation segment, candidate connection interface, interface extension difference, initial monitoring point, monitoring point offset distance, monitoring position, dynamic local monitoring area, local deviation verification, and actual usage status. It also verifies the path response deviation formed between the first and second cyclic connection paths by utilizing local interface changes, thereby forming a complete vanadium redox flow battery image monitoring and processing chain.
[0202] This embodiment provides an image acquisition-based method for monitoring the use of vanadium redox flow batteries, which can be applied to, for example... Figure 2 The application environment is shown. The image acquisition device is communicatively connected to the monitoring and processing device, and the battery operation control device is also communicatively connected to the monitoring and processing device. The image acquisition device acquires operational images of the vanadium redox flow battery during operation. The monitoring and processing device determines the structural image region, the first loop connection path, and the second loop connection path based on the operational images, and determines the predicted response interval based on the state changes of the two loop connection paths. The battery operation control device provides the current operating conditions. The monitoring and processing device determines the corresponding state constraints based on the current operating conditions. When the actual response position is outside the predicted response interval, it further determines the response deviation section, the target connection interface, and the monitoring position, and combines this with local images to form a monitoring result. When the actual response position is within the predicted response interval, it forms a monitoring result based on the corresponding state constraints.
[0203] See Figure 3 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. The electronic device 40 includes: a processor 41, a memory 42, and a computer program; wherein,
[0204] The memory 42 is used to store computer programs, and the memory may also be flash memory. Computer programs may be, for example, application programs or functional modules that implement the methods described above.
[0205] The processor 41 is used to execute the computer program stored in the memory to implement the various steps performed by the device in the above method. For details, please refer to the relevant descriptions in the preceding method embodiments.
[0206] Alternatively, the memory 42 can be either standalone or integrated with the processor 41.
[0207] When the memory 42 is a device independent of the processor 41, the device may also include:
[0208] Bus 43 is used to connect memory 42 and processor 41.
[0209] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for monitoring the use of vanadium redox flow batteries based on image acquisition, characterized in that, include: Acquire the running image, determine the structural image region, and construct the first and second loop connection paths corresponding to the positive and negative loop circuits, respectively. Based on the changes in the liquid levels in the positive and negative electrode storage tanks, determine the state propagation position of the first cyclic connection path and the actual response position of the second cyclic connection path; Establish a state correspondence between the first cyclic connection path and the second cyclic connection path, determine the predicted response interval based on the state propagation position, and determine the response deviation segment when the actual response position is outside the predicted response interval; The system obtains the current operating conditions and corresponding state constraints. If the actual response position is outside the predicted response range, it determines the target connection interface and monitoring position based on the response deviation segment. It also determines the actual usage status and monitoring results by combining the local image with the state constraints. If the actual response position is within the predicted response range, it determines the actual usage status and monitoring results according to the state constraints.
2. The method according to claim 1, characterized in that, The steps of acquiring the running image, determining the structural image region, and constructing the first and second loop connection paths corresponding to the positive and negative electrode loops, respectively, include: Extract the structural outlines of each battery structure from the running image, and form a structural image region based on each structural outline; Determine the structural connection sections between adjacent structural image regions; According to the connection sections of each structure, the corresponding battery structures in the positive electrode circulation loop are connected in sequence to form a first circulation connection path, and the corresponding battery structures in the negative electrode circulation loop are connected in sequence to form a second circulation connection path.
3. The method according to claim 2, characterized in that, Determining the structural connection section between adjacent structural image regions includes: Match the boundary pixels of the structural contours on both sides along the interval direction between adjacent structural image regions to form multiple pairs of opposing boundary pixels; A spacing change trajectory is formed based on the pixel spacing of each pair of opposing boundary pixels; The narrowing segment in the spacing change trajectory where the pixel spacing continuously decreases and then continuously increases is determined, and the position with the smallest pixel spacing in the narrowing segment is determined as the structural connection section.
4. The method according to claim 1, characterized in that, The step of determining the state propagation position of the first cyclic connection path and the actual response position of the second cyclic connection path based on the changes in the liquid levels of the positive and negative electrode storage tanks includes: Establish longitudinal center axes along the height direction of the positive electrode electrolyte storage tank and the negative electrode electrolyte storage tank respectively, and set detection sections according to the lateral width of the storage tank at each height position; Liquid surface candidate boundaries are formed based on the continuous occupancy boundaries of electrolyte pixels in each detection segment, and liquid surface change states are formed based on the position migration of the liquid surface candidate boundaries in adjacent images. Based on the liquid level change state, continuously changing pixel regions are extracted along the first and second cyclic connection paths, and the corresponding advancement boundaries are determined as the state propagation position and the actual response position.
5. The method according to claim 1, characterized in that, The step of establishing the state correspondence between the first cyclic connection path and the second cyclic connection path, determining the predicted response interval based on the state propagation position, and determining the response deviation segment when the actual response position is outside the predicted response interval includes: The connection point between the electrolyte storage tank and the circulation pipeline is determined as the starting point of the path, and the connection point corresponding to the fuel cell stack is determined as the ending point of the path. A bidirectional position representation is formed based on the first path distance from each structural connection section to the starting position of the path and the second path distance to the ending position of the path, and a state correspondence is established based on each bidirectional position representation; The predicted response interval is determined based on the state propagation location and the state correspondence. In response to the actual response location being outside the predicted response range, a response deviation segment is determined.
6. The method according to claim 5, characterized in that, Determining the predicted response interval based on the state propagation position and the state correspondence includes: Determine the first structural connection section and the second structural connection section located on both sides of the state propagation position in the first cyclic connection path; Based on the state correspondence, a third structural connection section and a fourth structural connection section corresponding to the first structural connection section and the second structural connection section are determined in the second cyclic connection path, respectively. The path segment between the third structural connection section and the fourth structural connection section is determined as the predicted response interval.
7. The method according to claim 5, characterized in that, The response is located outside the predicted response interval at the actual response location, and the response deviation segment is determined, including: The deviation direction is determined based on the position of the actual response location relative to the predicted response interval, and the target interval boundary of the predicted response interval is determined along the deviation direction; The path segment between the target interval boundary and the actual response location is defined as the response deviation segment; The bridging state of continuously changing pixels on both sides of each structural connection section is determined along the response deviation section, and the first candidate connection interface and the second candidate connection interface are determined according to the position where the bridging state changes.
8. The method according to claim 7, characterized in that, The response occurs when the actual response location is outside the predicted response interval. Based on the response deviation segment, the target connection interface and monitoring location are determined. The actual usage status and monitoring results are determined by combining local images with the state constraints, including: The first candidate connection interface and the second candidate connection interface are determined based on the response deviation segment; The target connection interface and monitoring location are determined based on the expansion difference of neighboring changing pixels of the first candidate connection interface and the second candidate connection interface; The local monitoring area is determined based on the monitoring location and a local image is acquired. The actual usage status and monitoring results are determined based on the local image and the state constraints.
9. The method according to claim 8, characterized in that, The step of determining the target connection interface and monitoring location based on the expansion difference of neighboring changed pixels of the first candidate connection interface and the second candidate connection interface includes: Determine the first interface extension length and the second interface extension length along the deviation direction for the first candidate connection interface and the second candidate connection interface, respectively. A positioning line segment is formed by connecting the center of the first candidate connection interface and the second candidate connection interface, and the midpoint of the positioning line segment is determined as the initial monitoring point; In response to the difference between the first interface extension length and the second interface extension length, the response offset direction is determined according to the direction of the difference between the first interface extension length and the second interface extension length, the response offset ratio is determined according to the absolute value of the difference and the sum of the two interface extension lengths, and the monitoring point offset distance is determined according to the response offset ratio and the half-segment length of the positioning line segment. In response to the difference between the first interface extension length and the second interface extension length, the monitoring point is moved from the initial monitoring point along the response offset direction by an offset distance to obtain the monitoring position, and the candidate connection interface corresponding to the response offset direction is determined as the target connection interface; in response to the same length as the first interface extension length and the second interface extension length, the initial monitoring point is determined as the monitoring position, and the candidate connection interface closer to the actual response position is determined as the target connection interface.
10. The method according to claim 8, characterized in that, The step of determining a local monitoring area and acquiring a local image based on the monitoring location, and determining the actual usage status and monitoring results based on the local image and the state constraints, includes: A first monitoring scale along the deviation direction is determined based on the path length of the deviation segment in the response. Determine the interface expansion width of the adjacent changing pixels of the target connection interface in the direction perpendicular to the deviation, and determine the second monitoring scale based on the interface expansion width; A local monitoring area is formed around the monitoring location according to the first monitoring scale and the second monitoring scale, and a local image is obtained from the running image; A deviation verification state is formed based on the correspondence between the main expansion direction of the changing pixels in the local image and the deviation direction. The actual usage state and monitoring results are determined based on the deviation verification state and the state constraints.
