Fish tank water quality state monitoring method, device, equipment and medium
Through photosensitive sensors and image sensors, aquarium characteristics model is constructed and flow field analysis is performed to generate water quality adjustment strategies, which solves the problem that fish tank water quality cannot be dynamically adjusted in the existing technology, and realizes adaptive adjustment of fish tank water quality and fish growth needs.
Patent Information
- Application Number
- CN202510460999.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-14
- Publication Date
- 2025-08-15
AI Technical Summary
The existing fish tank water quality monitoring system cannot dynamically adjust the water quality based on factors such as the activity status, quantity changes and gathering areas of the fish in the fish tank, resulting in deterioration of the water quality.
Ambient light information and image information are obtained through photosensitive sensors and image sensors, a fish tank characteristic model is constructed, and a flow field analysis is performed to generate a water quality adjustment strategy, and dynamic adjustment is performed using water quality adjustment components.
Dynamic adjustment of the water quality of the fish tank is achieved, ensuring that the water quality is always compatible with the fish's growth and survival needs, and improving the accuracy and efficiency of water quality adjustment.
Smart Images

Figure CN120495723A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fish tanks, and in particular to a method, device, equipment and medium for monitoring the water quality status of fish tanks. Background Art
[0002] With technological advancements and rising living standards, more and more people are keeping fish as pets. As aquatic animals, fish have very high requirements for water quality. Parameters such as dissolved oxygen content, pH, and ammonia nitrogen concentration in their living environment directly affect their health. However, in daily fish farming, users regularly add fish food and nutrient solution to the tank to maintain healthy growth. However, unconsumed food and excess nutrients remain in the water, causing large amounts of green algae to form and deteriorate water quality. Currently, most fish tanks on the market use a single parameter threshold to monitor water quality, failing to dynamically adjust water quality based on factors such as fish activity, population changes, and aggregation areas. Summary of the Invention
[0003] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method, device, computer equipment and storage medium for reviewing film and television files.
[0004] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0005] The present invention is achieved through the following technical solutions:
[0006] In a first aspect, this embodiment provides a method for monitoring the water quality of a fish tank. The method is applied to a controller of the fish tank, wherein the controller is communicatively connected to an image sensor, a photosensor, and a water quality adjustment component provided in the fish tank. The method includes the following steps:
[0007] receiving ambient light information from the light sensor, and determining whether the ambient light information satisfies a preset image acquisition condition;
[0008] If the ambient light information satisfies the image acquisition condition, sending the image acquisition instruction to the image sensor to acquire image information acquired by the image sensor;
[0009] Constructing a fish tank characteristic model based on the image information and the ambient light information;
[0010] Performing flow field analysis on the fish tank characteristic model to obtain a water quality adjustment strategy;
[0011] A water quality adjustment instruction is generated based on the water quality adjustment strategy and sent to the water quality regulation component to adjust the water quality of the fish tank.
[0012] Furthermore, the step of determining whether the ambient light information meets a preset image acquisition condition includes:
[0013] Comparing the sensing values in the ambient light information to obtain a maximum sensing value and a minimum sensing value;
[0014] The difference between the maximum sensing value and the minimum sensing value is used as a reference value;
[0015] It is determined whether the reference value exceeds the sensing threshold set in the image acquisition condition to determine whether the ambient light information meets the image acquisition condition.
[0016] Furthermore, the step of constructing a fish tank characteristic model based on the image information and the ambient light information includes:
[0017] parsing the image information based on preset image parsing rules to obtain image parsing information;
[0018] Analyzing the image analysis information and the ambient light information based on preset analysis rules to obtain key information about the operation of the fish tank;
[0019] Quantifying characteristics based on the key information of the fish tank operation to obtain quantitative results;
[0020] The fish tank characteristic model is constructed based on the key information of the fish tank operation and the quantification result.
[0021] Furthermore, the step of parsing the image information based on preset image parsing rules to obtain image parsing information includes:
[0022] Perform pixel dissolution on the image information based on the pixel dissolution parameter in the image analysis rule to determine image contour information;
[0023] The image contour information is filtered based on the contour screening parameters in the image analysis rule to obtain the corresponding target contour information
[0024] Based on the fish tank operation data set, the fusion coefficient of the fish body, the decorations and the green plants is extracted from the target contour information as the image analysis information.
[0025] Furthermore, the step of constructing a fish tank characteristic model based on the key information of the fish tank operation and the quantitative results includes:
[0026] Determine the initial model of the fish tank based on the key information and quantitative results of the fish tank operation;
[0027] Determining a numerical range of model parameters of the initial fish tank model, and determining an intermediate value within the numerical range;
[0028] determining a target quantization parameter from a plurality of candidate quantization parameters based on the intermediate value;
[0029] Determining a maximum floating-point value and a minimum floating-point value corresponding to each of the model parameters based on the target quantization parameter, and determining a quantization model corresponding to the fish tank initial model according to the maximum floating-point value and the minimum floating-point value corresponding to each of the model parameters;
[0030] The fish tank initial model is updated based on the quantified model to obtain the fish tank characteristic model.
[0031] Furthermore, the step of determining a target quantization parameter from a plurality of candidate quantization parameters based on the intermediate value includes:
[0032] Determine an error value corresponding to each of the candidate quantization parameters based on the intermediate value;
[0033] The candidate quantization parameter with the smallest error value is determined as the target quantization parameter.
[0034] Furthermore, the step of performing flow field analysis on the fish tank characteristic model to obtain a water quality adjustment strategy includes:
[0035] Meshing the fish tank characteristic model to obtain a mesh model of the fish tank;
[0036] Determine calculation parameters;
[0037] Performing internal flow field analysis on the grid model of the fish tank according to the calculation parameters to obtain the flow field and temperature field of the fish tank;
[0038] The key parameters of the flow field and temperature field of the fish tank are extracted to obtain the water quality adjustment strategy.
[0039] In a second aspect, this embodiment provides a device for monitoring the water quality of a fish tank, comprising: a receiving unit, a judging unit, a model building unit, an analyzing unit, and an executing unit;
[0040] The receiving unit is configured to receive ambient light information from the light sensor and determine whether the ambient light information meets a preset image acquisition condition;
[0041] The judgment unit is configured to send the image acquisition instruction to the image sensor to acquire the image information acquired by the image sensor if the ambient light information meets the image acquisition condition;
[0042] The model building unit builds a fish tank characteristic model based on the image information and the ambient light information;
[0043] The analysis unit is used to perform flow field analysis on the fish tank characteristic model to obtain a water quality adjustment strategy;
[0044] The execution unit is used to generate a water quality adjustment instruction based on the water quality adjustment strategy and send it to the water quality regulation component to adjust the water quality of the fish tank.
[0045] In a third aspect, this embodiment provides a device for monitoring the water quality of a fish tank, the device comprising a controller, an image sensor, a photosensor, and a water quality adjustment component disposed on the fish tank, wherein the controller is in communication with the image sensor, the photosensor, and the water quality adjustment component, respectively;
[0046] The controller includes a processor, a network interface, a memory and a communication bus, wherein the processor, the network interface and the memory communicate with each other via the communication bus;
[0047] Memory for storing computer programs;
[0048] The processor is configured to implement the fish tank water quality status monitoring method according to any one of claims 1 to 7 when executing the program stored in the memory.
[0049] In a fourth aspect, this embodiment provides a storage medium storing a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method for monitoring the water quality status of a fish tank as described above can be implemented.
[0050] The beneficial effects of the present invention compared with the existing technology are: constructing a fish tank characteristic model based on ambient light information and image information, performing flow field analysis on the fish tank characteristic model to obtain a water quality adjustment strategy, so as to dynamically adjust the water quality of the fish tank so that the water quality in the fish tank is always adapted to the growth and survival needs of the fish.
[0051] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic flow chart of a method for monitoring the water quality of a fish tank provided by an embodiment of the present invention;
[0053] Figure 2 A schematic diagram of a flow chart for executing step S1 in the method for monitoring the water quality of a fish tank provided by an embodiment of the present invention;
[0054] Figure 3A schematic diagram of a flow chart for executing step S3 in the method for monitoring the water quality of a fish tank provided by an embodiment of the present invention;
[0055] Figure 4 A schematic diagram of a flow chart for executing step S31 in the method for monitoring the water quality of a fish tank provided by an embodiment of the present invention;
[0056] Figure 5 A schematic diagram of a flow chart for executing step S34 in the fish tank water quality status monitoring method provided by an embodiment of the present invention;
[0057] Figure 6 A schematic diagram of a flow chart for executing step S4 in the method for monitoring the water quality of a fish tank provided by an embodiment of the present invention;
[0058] Figure 7 A schematic block diagram of a device for monitoring the water quality of a fish tank according to an embodiment of the present invention;
[0059] Figure 8 A schematic diagram of the circuit connections of various components in a fish tank provided by an embodiment of the present invention;
[0060] Figure 9 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0062] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0063] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in the specification and appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0064] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0065] See also Figure 1 In the specific embodiment shown, the present invention discloses a method for monitoring the water quality status of a fish tank. The method is applied to a controller of the fish tank. The controller is respectively connected to an image sensor, a photosensor, and a water quality adjustment component provided in the fish tank. The method includes the following steps:
[0066] Step S1, receiving ambient light information from the photosensor, and determining whether the ambient light information meets a preset image acquisition condition;
[0067] It is understood that one or more preset light thresholds are incorporated into the system. These thresholds can be set based on factors such as the fish's behavior within the aquarium and image acquisition requirements, ensuring that the captured aquarium images clearly reflect the fish's status and the conditions within the aquarium. Image acquisition quality is affected by lighting conditions. When ambient light is too strong or too weak, the images captured by the image sensor may appear too bright, too dark, contain excessive shadows, or lack contrast, affecting accurate identification of information such as the fish's activity status, number, and aggregation areas within the aquarium.
[0068] Through the above steps, based on the real-time monitoring and judgment of ambient light information by the photosensitive sensor, it is ensured that image acquisition is carried out under appropriate lighting conditions, the clarity and color reproduction of the acquired images are improved, image distortion is avoided, and high-quality data support is provided for subsequent image recognition and analysis, avoiding misjudgment caused by lighting problems.
[0069] Step S2: If the ambient light information satisfies the image acquisition condition, sending the image acquisition instruction to the image sensor to acquire image information acquired by the image sensor;
[0070] It is understood that the controller has preset ambient light conditions for image acquisition, including parameters such as the light intensity range and color temperature range. When the ambient light information transmitted by the photosensor is compared with these preset thresholds, if the ambient light is within the set appropriate range, that is, the image acquisition conditions are met, an image acquisition instruction is sent to the image sensor, which then acquires image data and transmits the acquired image information to the controller.
[0071] Through the above steps, the real-time monitoring and judgment of the ambient light by the photosensor ensures that the image acquisition is carried out under appropriate lighting conditions, so that the status, number, gathering area and other relevant details of the fish in the fish tank can be clearly presented, providing a data basis for the subsequent construction of the image-based fish tank characteristic model and the formulation of water quality adjustment strategies.
[0072] Step S3, constructing a fish tank characteristic model based on the image information and the ambient light information;
[0073] Understandably, the ecological environment within a fish tank is dynamic, with fish activity, numbers, and gathering areas varying over time and environmental factors. By collecting image and ambient light information in real time and building a dynamic model of the tank's characteristics, these changes are promptly captured, enabling dynamic monitoring and adjustment of the tank's water quality to meet the growth needs of fish in diverse environments. Furthermore, by combining ambient light information acquired by the photosensor with image information, the system performs illumination compensation and correction on the image, improving image clarity and accuracy.
[0074] It should be noted that the ambient light information can also be used as an important parameter of the fish tank characteristic model, which reflects the impact of the lighting environment in the fish tank on the fish.
[0075] By building a comprehensive fish tank characteristic model through the above steps, we can more accurately understand the actual needs of the fish in the fish tank, generate precise water quality adjustment strategies, improve the effect of water quality adjustment, and achieve refined management of the fish tank.
[0076] Step S4, performing flow field analysis on the fish tank characteristic model to obtain a water quality adjustment strategy;
[0077] Understandably, water quality in a fish tank is a dynamic process, influenced by a variety of factors, including fish metabolism, feed residue, oxygen distribution, and light intensity. Furthermore, different fish species have varying requirements for environmental factors like water flow and oxygen. Flow field analysis can generate personalized water quality adjustment strategies tailored to the needs of different fish species, providing them with a more suitable living environment.
[0078] It should be noted that flow field analysis is the numerical simulation and analysis of parameters such as the geometric shape, boundary conditions, and fluid properties in the fish tank characteristic model, which can obtain information such as the water flow speed, direction, pressure distribution, and oxygen concentration in the fish tank.
[0079] Through the above steps, the flow field analysis of the fish tank characteristic model is carried out to understand the impact of dynamic factors such as water quality problems, water flow conditions, and oxygen distribution in different areas of the fish tank on water quality. This can generate a precise water quality adjustment strategy, improve the accuracy of water quality adjustment, and maintain the stability of the ecosystem in the fish tank.
[0080] Step S5: generating a water quality adjustment instruction based on the water quality adjustment strategy and sending the instruction to the water quality adjustment component to adjust the water quality of the fish tank.
[0081] It should be noted that the water quality adjustment components include: a water pump, an aeration pump, a refrigerator, a heating rod and a peristaltic pump, and the water pump, the aeration pump, the refrigerator, the heating rod and the peristaltic pump are all controlled by a controller.
[0082] It can be understood that according to the water quality adjustment strategy obtained from the flow field analysis, the control algorithm and decision logic are used to generate specific water quality adjustment instructions from the specific parameters in the water quality adjustment strategy, such as water pump flow, aeration pump power, heating rod temperature, and the type and amount of chemicals added by the peristaltic pump.
[0083] Through the above steps, the water quality adjustment strategy is converted into specific instructions and executed, so that the fish tank water quality adjustment process does not require human intervention and can be carried out according to the water quality adjustment strategy, thereby improving the accuracy of the fish tank water quality adjustment and making the water quality of the fish tank meet the growth needs of the fish.
[0084] Through steps S1 to S5, a fish tank characteristic model is constructed based on the ambient light information and image information, and a flow field analysis is performed on the fish tank characteristic model to obtain a water quality adjustment strategy to dynamically adjust the water quality of the fish tank so that the water quality in the fish tank is always adapted to the growth and survival needs of the fish.
[0085] In one embodiment, a plurality of light sources are provided on the fish tank, and the plurality of light sources are electrically connected to the controller. If the current ambient light information does not meet the image acquisition conditions, the light sources located on the fish tank are turned on to compensate for the insufficient or uneven ambient light, so that image acquisition is performed under appropriate lighting conditions, so that the acquired image has higher clarity and color reproduction, reduces image noise and distortion, and thus improves the quality and recognizability of the acquired image.
[0086] In one embodiment, the fish tank is also equipped with a temperature sensor, a salinity sensor, and a water level sensor. These sensors are all electrically connected to a controller, forming a complete monitoring and control system. The controller receives electrical signals from the temperature, salinity, and water level sensors and converts them into digital signals for processing, enabling the water quality control assembly to adjust the environmental parameters of the fish tank to maintain them within a stable range. This improves the operational stability of the fish tank and prevents adverse effects on the fish in the tank caused by fluctuations in environmental parameters.
[0087] In one embodiment, see Figure 2 The step of determining whether the ambient light information meets the preset image acquisition conditions includes:
[0088] Step S11, comparing the sensing values in the ambient light information to obtain a maximum sensing value and a minimum sensing value;
[0089] Step S12, taking the difference between the maximum sensing value and the minimum sensing value as a reference value;
[0090] Step S13 , judging whether the reference value exceeds the sensing threshold set in the image acquisition condition, so as to determine whether the ambient light information satisfies the image acquisition condition.
[0091] Through steps S11 to S13, the maximum and minimum values in the ambient light information are compared, the reference value is calculated and compared with the sensing threshold, and it is possible to accurately determine whether the current ambient light information meets the image acquisition conditions, thereby avoiding misjudgment caused by accidental ambient light fluctuations and improving the accuracy of ambient light judgment.
[0092] In one embodiment, see Figure 3 The step of constructing a fish tank characteristic model based on the image information and the ambient light information includes:
[0093] Step S31, analyzing the image information based on preset image analysis rules to obtain image analysis information;
[0094] It is understandable that the original image information contains a large amount of data. Directly using this data for analysis and processing is inefficient and easily interfered with by irrelevant information. Based on the preset image parsing rules, the image information is parsed to extract key features related to the fish tank water quality adjustment, such as the type, number, activity status, and gathering area of the fish, providing data support for subsequent water quality adjustments. The parsed image information is more concise and structured, reducing the amount of data and improving the processing speed and efficiency of the image information, enabling the water quality adjustment system to quickly respond to environmental changes in the fish tank and achieve dynamic monitoring and real-time adjustment of the fish tank water quality. Step S32: Parse the image parsing information and the ambient light information based on the preset parsing rules to obtain key information about the fish tank operation.
[0095] It is understandable that if water quality adjustments are made based on image analysis information or ambient light information alone, there will be one-sidedness. The image analysis information and ambient light information can be combined with the position information of the fish in the image according to the timestamp and the ambient light intensity at the same time to accurately obtain the operating status of the fish tank, providing a data basis for the generation of water quality adjustment strategies; comprehensive analysis of image analysis information and ambient light information based on preset analysis rules can screen out key information related to water quality adjustment from a large amount of data, such as the correlation between fish activity and light intensity, the impact of light changes on fish distribution, etc., thereby determining the key factors affecting water quality and fish health, and improving the pertinence and effectiveness of fish tank water quality adjustments.
[0096] Step S33, quantifying characteristics based on the key information of the fish tank operation to obtain a quantification result;
[0097] It is understandable that the key information of fish tank operation includes the activity status of fish, gathering area, light intensity, etc., which is difficult to be directly used in the formulation of water quality adjustment strategies. By quantifying the characteristics of the key information of fish tank operation, the controller can automatically judge whether the operation status of the fish tank is normal based on the numerical range and change trend, and generate corresponding water quality adjustment strategies, thereby improving the intelligence level of fish tank water quality adjustment and making fish tank water quality management more efficient and convenient.
[0098] Step S34: constructing the fish tank characteristic model based on the fish tank operation key information and the quantification result.
[0099] Through steps S31 to S34, the image information and ambient light information are combined to construct a fish tank characteristic model, thereby realizing dynamic monitoring and adjustment of the fish tank water quality, avoiding the limitations of single parameter monitoring, reducing unnecessary water quality adjustment operations, and improving the operation efficiency of the fish tank.
[0100] In one embodiment, see Figure 4 The step of parsing the image information based on the preset image parsing rules to obtain image parsing information includes:
[0101] Step S311, performing pixel dissolution on the image information based on the pixel dissolution parameter in the image analysis rule to determine image contour information;
[0102] It can be understood that pixel dissolving technology adjusts the pixel values of an image to make the edges and contours in the image clearer, thereby highlighting the outline features of the object. By analyzing the changes in pixel attributes such as grayscale and color, the edge pixels in the image are determined, and the outline of the object is then outlined.
[0103] Step S312, filtering the image contour information based on the contour filtering parameters in the image analysis rule to obtain corresponding target contour information;
[0104] It is understood that the screening parameters may include features such as the area, perimeter, and shape of the contour. By setting reasonable screening conditions, contours that do not meet the requirements, such as contours that are too small or too large, contours with irregular shapes, etc., are removed, thereby obtaining target contour information related to the fish body.
[0105] Step S313 , based on the fish tank operation data set, extracting the fusion coefficient of the fish body and the decorations and green plants from the target contour information as the image analysis information.
[0106] It is understandable that the fish tank operation dataset contains the feature information of fish, decorations, and green plants in different fish tanks, as well as the relationship data between them. The target contour information is compared and analyzed with the dataset to extract the fusion coefficient of the fish, decorations, and green plants. The fusion coefficient can reflect the degree of overlap or similarity between the fish and other objects in the image. Based on the fusion coefficient, the fish, decorations, and green plants can be distinguished to obtain accurate fish image information.
[0107] Through steps S311 to S313, interference information in the image is removed, the fish body is accurately identified, and the accuracy and reliability of image analysis are improved.
[0108] In one embodiment, see Figure 5 The step of constructing a fish tank characteristic model based on the key information of the fish tank operation and the quantitative results includes:
[0109] Step S341, determining an initial model of the fish tank based on the key information of the fish tank operation and the quantification results;
[0110] Step S342, determining a numerical range of the model parameters of the initial fish tank model, and determining an intermediate value within the numerical range;
[0111] It is understandable that within the numerical range of each parameter, an intermediate value is calculated or selected as a reference point for subsequent parameter adjustments to maintain the stability and continuity of the model during the parameter optimization process.
[0112] Step S343 , determining a target quantization parameter from a plurality of candidate quantization parameters based on the intermediate value;
[0113] It is understandable that the target quantitative parameter should reflect the degree of its impact on the adjustment of the fish tank water quality and its relevance to the key information of the fish tank operation.
[0114] Step S344: determining a maximum floating-point value and a minimum floating-point value corresponding to each of the model parameters based on the target quantization parameter, and determining a quantization model corresponding to the fish tank initial model according to the maximum floating-point value and the minimum floating-point value corresponding to each of the model parameters;
[0115] It can be understood that by analyzing the distribution and change patterns of the maximum floating-point value and the minimum floating-point value, a quantitative model corresponding to the initial fish tank model is constructed. The quantitative model maps the value range of the model parameters to a specific quantitative interval to quantitatively constrain the initial fish tank model.
[0116] Step S345 : updating the fish tank initial model based on the quantization model to obtain the fish tank characteristic model.
[0117] Through steps S341 to S345, the numerical range and intermediate value of the model parameters are determined, the optimal operating state of the initial model of the fish tank can be quickly determined, the target quantitative parameter is determined among multiple candidate quantitative parameters based on the intermediate value, and the floating-point value range of the model parameter is determined according to the target quantitative parameter to determine the quantitative model of the initial model of the fish tank, so that the fish tank characteristic model can reflect the latest state of the fish tank in real time, ensuring that the water quality adjustment strategy can adapt to changes in the fish tank environment in a timely manner.
[0118] In one embodiment, see Figure 6 The step of determining a target quantization parameter from a plurality of candidate quantization parameters based on the intermediate value includes:
[0119] Step S3431, determining an error value corresponding to each of the candidate quantization parameters based on the intermediate value;
[0120] It is understandable that the error value may be calculated as the absolute value of the difference between the candidate quantization parameter and the intermediate value. The smaller the error value, the closer the candidate quantization parameter is to the intermediate value and the more suitable it is as the target quantization parameter.
[0121] Step S3432: Determine the candidate quantization parameter with the smallest error value as the target quantization parameter.
[0122] Through steps S3431 to S3432, appropriate target quantitative parameters can be dynamically selected according to the real-time operating conditions and changes of the fish tank, so that the fish tank characteristic model is more closely aligned with the actual environment of the fish tank, thereby improving the accuracy of the fish tank characteristic model and achieving precise fish tank water quality control.
[0123] In one embodiment, see Figure 6 The step of performing flow field analysis on the fish tank characteristic model to obtain a feeding adjustment strategy includes:
[0124] Step S41, meshing the fish tank characteristic model to obtain a mesh model of the fish tank;
[0125] The mesh model of a fish tank is a discretized representation created for numerical simulation of a physical object in computer-aided engineering (CAE) analysis. The characteristic model of the fish tank refers to the actual or designed model of the fish tank structure, while the mesh model refers to the mathematical abstraction and discretization of the prototype heap roof using computational fluid dynamics (CFD) software such as ICEM CFD or HyperMesh.
[0126] Step S42, determining calculation parameters;
[0127] It can be understood that the calculation parameters include flow field parameters, calculation models, boundary conditions and solution settings. The flow field parameters include water flow velocity, water flow direction, water temperature and viscosity; the boundary conditions include fish tank temperature, ambient pressure, water inlet velocity, outlet pressure and fish tank wall; the calculation model includes large eddy simulation model, direct numerical simulation model, multiphase flow model; the solution settings include difference format, number of iteration steps, time scale, and convergence standard.
[0128] Step S43, performing internal flow field analysis on the grid model of the fish tank according to the calculation parameters to obtain the flow field and temperature field of the fish tank;
[0129] It is understood that the selected CFD analysis software (such as ANSYS CFX, ANSYS FLUENT, STAR CCM+, etc.) is used to import the divided grid file and set the aforementioned flow field parameters, calculation model, boundary conditions, and solution settings. Subsequently, the flow field and temperature field within each grid cell are numerically simulated by solving the large eddy simulation model, direct numerical simulation model, and multiphase flow model. This process aims to accurately reproduce the fluid flow, temperature field distribution, and material diffusion inside the fish tank, thereby obtaining the flow field and temperature field distribution inside the fish tank.
[0130] Step S44: extracting key parameters of the flow field and temperature field of the fish tank to obtain the water quality adjustment strategy.
[0131] It should be noted that the key parameters of the flow field are flow velocity, flow direction and vorticity, and the key parameters of the temperature field are temperature distribution and temperature gradient.
[0132] It is understandable that the ecological environment in the fish tank is a complex system. However, the flow field and temperature field are important factors affecting the water quality of the fish tank. Different combinations of flow field and temperature field parameters will have different effects on water quality. The key parameters related to water quality adjustment are extracted from the analysis results of the flow field and temperature field to generate corresponding water quality adjustment strategies based on the needs of different fish and provide them with a suitable living environment.
[0133] Through steps S41 to S44, based on flow field analysis, the impact of dynamic factors such as water flow and oxygen distribution in the fish tank on water quality is obtained, and an accurate water quality adjustment strategy is generated to match the water quality adjustment in the fish tank with the growth and survival needs of the fish.
[0134] See also Figure 7 , the present invention also discloses a fish tank control device based on image recognition, comprising: a receiving unit 10, a judging unit 20, a model building unit 30, an analyzing unit 40 and an executing unit 50;
[0135] The receiving unit 10 is configured to receive ambient light information from the light sensor and determine whether the ambient light information satisfies a preset image acquisition condition;
[0136] The judgment unit 20 is configured to send the image acquisition instruction to the image sensor to acquire the image information acquired by the image sensor if the ambient light information meets the image acquisition condition;
[0137] The model building unit 30 is used to build a fish tank characteristic model based on the image information and the ambient light information;
[0138] The analysis unit 40 is used to perform flow field analysis on the fish tank characteristic model to obtain a water quality adjustment strategy;
[0139] The execution unit 50 is configured to generate a water quality adjustment instruction based on the water quality adjustment strategy and send the instruction to the water quality regulating component to adjust the water quality of the fish tank.
[0140] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned fish tank control device based on image recognition and each unit can refer to the corresponding description in the aforementioned method embodiment. For the convenience and conciseness of the description, it will not be repeated here.
[0141] The above can be implemented in the form of a computer program. The computer program can be used in Figure 9 Runs on the computer equipment shown.
[0142] The present application also provides a device for monitoring the water quality of a fish tank, wherein: Figure 8 As shown, the device includes a controller 20, an image sensor 10, a photosensor 30 and a water quality adjustment component 40 arranged in the fish tank, and the controller 20 is respectively communicated with the image sensor 10, the photosensor 30 and the water quality adjustment component 40; when the controller 20 executes the internally stored computer program, the fish tank water quality status monitoring method described in the above embodiment is implemented.
[0143] See also Figure 9 , Figure 9 This is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 can be a terminal or a server. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, personal digital assistant, wearable device, or other electronic device with communication capabilities. The server can be a standalone server or a server cluster consisting of multiple servers.
[0144] See also Figure 9The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0145] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a method for monitoring the water quality of a fish tank. The method includes the following steps: receiving ambient light information from the light sensor, determining whether the ambient light information meets a preset image acquisition condition; if the ambient light information meets the image acquisition condition, sending the image acquisition instruction to the image sensor to acquire image information captured by the image sensor; constructing a fish tank characteristic model based on the image information and the ambient light information; performing flow field analysis on the fish tank characteristic model to obtain a water quality adjustment strategy; and generating a water quality adjustment instruction based on the water quality adjustment strategy and sending the instruction to the water quality adjustment component to adjust the water quality of the fish tank.
[0146] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
[0147] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a method for monitoring the water quality status of a fish tank.
[0148] The network interface 505 is used to communicate with other devices through the network. Figure 9 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0149] The processor 502 is configured to execute a computer program 5032 stored in the memory to implement the following steps:
[0150] Step S1, receiving ambient light information from the photosensor, and determining whether the ambient light information meets a preset image acquisition condition;
[0151] Step S2: If the ambient light information satisfies the image acquisition condition, sending the image acquisition instruction to the image sensor to acquire image information acquired by the image sensor;
[0152] Step S3, constructing a fish tank characteristic model based on the image information and the ambient light information;
[0153] Step S4, performing flow field analysis on the fish tank characteristic model to obtain a water quality adjustment strategy;
[0154] Step S5: generating a water quality adjustment instruction based on the water quality adjustment strategy and sending the instruction to the water quality adjustment component to adjust the water quality of the fish tank.
[0155] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0156] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program includes program instructions, which can be stored in a storage medium that is computer-readable. The program instructions are executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.
[0157] Therefore, the present invention also provides a storage medium. The storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the above-mentioned film and television file review method can be implemented. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the above-mentioned method can be implemented. The program instructions include the following steps:
[0158] Step S1, receiving ambient light information from the photosensor, and determining whether the ambient light information meets a preset image acquisition condition;
[0159] Step S2: If the ambient light information satisfies the image acquisition condition, sending the image acquisition instruction to the image sensor to acquire image information acquired by the image sensor;
[0160] Step S3, constructing a fish tank characteristic model based on the image information and the ambient light information;
[0161] Step S4, performing flow field analysis on the fish tank characteristic model to obtain a water quality adjustment strategy;
[0162] Step S5: generating a water quality adjustment instruction based on the water quality adjustment strategy and sending the instruction to the water quality adjustment component to adjust the water quality of the fish tank.
[0163] The storage medium may be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.
[0164] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the composition and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0165] In the several embodiments provided herein, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the various units is merely a logical functional division, and actual implementation may employ other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.
[0166] The steps in the methods of the embodiments of the present invention may be adjusted in order, combined, or deleted as needed. The units in the devices of the embodiments of the present invention may be combined, divided, or deleted as needed. Furthermore, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit.
[0167] If this integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the existing technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the steps of the method described in various embodiments of the present invention.
[0168] The above embodiments are preferred implementation schemes of the present invention. In addition, the present invention can also be implemented in other ways. Any obvious replacement without departing from the concept of the present technical solution is within the scope of protection of the present invention.
Claims
1. A method for monitoring the water quality of a fish tank, characterized in that: The method is applied to a controller of a fish tank, wherein the controller is respectively connected to an image sensor, a photosensor, and a water quality regulating component provided in the fish tank. The method comprises the following steps: receiving ambient light information from the light sensor, and determining whether the ambient light information satisfies a preset image acquisition condition; If the ambient light information satisfies the image acquisition condition, sending the image acquisition instruction to the image sensor to acquire image information acquired by the image sensor; Constructing a fish tank characteristic model based on the image information and the ambient light information; Performing flow field analysis on the fish tank characteristic model to obtain a water quality adjustment strategy; A water quality adjustment instruction is generated based on the water quality adjustment strategy and sent to the water quality regulation component to adjust the water quality of the fish tank.
2. The method for monitoring the water quality of a fish tank according to claim 1, wherein: The step of determining whether the ambient light information meets the preset image acquisition conditions includes: Comparing the sensing values in the ambient light information to obtain a maximum sensing value and a minimum sensing value; The difference between the maximum sensing value and the minimum sensing value is used as a reference value; It is determined whether the reference value exceeds the sensing threshold set in the image acquisition condition to determine whether the ambient light information meets the image acquisition condition.
3. The method for monitoring the water quality of a fish tank according to claim 1, wherein: The step of constructing a fish tank characteristic model based on the image information and the ambient light information comprises: parsing the image information based on preset image parsing rules to obtain image parsing information; Analyzing the image analysis information and the ambient light information based on preset analysis rules to obtain key information about the operation of the fish tank; Quantifying characteristics based on the key information of the fish tank operation to obtain quantitative results; The fish tank characteristic model is constructed based on the key information of the fish tank operation and the quantification result.
4. The method for monitoring the water quality of a fish tank according to claim 3, wherein: The step of parsing the image information based on the preset image parsing rules to obtain image parsing information includes: Perform pixel dissolution on the image information based on the pixel dissolution parameter in the image analysis rule to determine image contour information; The image contour information is filtered based on the contour screening parameters in the image analysis rule to obtain the corresponding target contour information Based on the fish tank operation data set, the fusion coefficient of the fish body, the decorations and the green plants is extracted from the target contour information as the image analysis information.
5. The method for monitoring the water quality of a fish tank according to claim 3, wherein: The step of constructing a fish tank characteristic model based on the key information of the fish tank operation and the quantitative results includes: Determine the initial model of the fish tank based on the key information and quantitative results of the fish tank operation; Determining a numerical range of model parameters of the initial fish tank model, and determining an intermediate value within the numerical range; determining a target quantization parameter from a plurality of candidate quantization parameters based on the intermediate value; Determining a maximum floating-point value and a minimum floating-point value corresponding to each of the model parameters based on the target quantization parameter, and determining a quantization model corresponding to the fish tank initial model according to the maximum floating-point value and the minimum floating-point value corresponding to each of the model parameters; The fish tank initial model is updated based on the quantified model to obtain the fish tank characteristic model.
6. The method for monitoring the water quality of a fish tank according to claim 5, wherein: The step of determining a target quantization parameter from a plurality of candidate quantization parameters based on the intermediate value comprises: Determine an error value corresponding to each of the candidate quantization parameters based on the intermediate value; The candidate quantization parameter with the smallest error value is determined as the target quantization parameter.
7. The method for monitoring the water quality of a fish tank according to claim 1, wherein: The step of performing flow field analysis on the fish tank characteristic model to obtain a water quality adjustment strategy includes: Meshing the fish tank characteristic model to obtain a mesh model of the fish tank; Determine calculation parameters; Performing internal flow field analysis on the grid model of the fish tank according to the calculation parameters to obtain the flow field and temperature field of the fish tank; The key parameters of the flow field and temperature field of the fish tank are extracted to obtain the water quality adjustment strategy.
8. A fish tank water quality monitoring device, characterized in that: include: Receiving unit, judging unit, model building unit, analyzing unit and executing unit; The receiving unit is configured to receive ambient light information from the light sensor and determine whether the ambient light information meets a preset image acquisition condition; The judgment unit is configured to send the image acquisition instruction to the image sensor to acquire the image information acquired by the image sensor if the ambient light information meets the image acquisition condition; The model building unit builds a fish tank characteristic model based on the image information and the ambient light information; The analysis unit is used to perform flow field analysis on the fish tank characteristic model to obtain a water quality adjustment strategy; The execution unit is used to generate a water quality adjustment instruction based on the water quality adjustment strategy and send it to the water quality regulation component to adjust the water quality of the fish tank.
9. A fish tank water quality monitoring device, characterized in that: The device includes a controller, an image sensor, a photosensor and a water quality adjustment component arranged on the fish tank, wherein the controller is respectively connected to the image sensor, the photosensor and the water quality adjustment component for communication; The controller includes a processor, a network interface, a memory and a communication bus, wherein the processor, the network interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; The processor is configured to implement the fish tank water quality status monitoring method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A storage medium, characterized in that: The storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the method for monitoring the water quality status of a fish tank according to any one of claims 1 to 7 can be implemented.