Marine biochemical element data acquisition system and processing method based on RLS algorithm
Through the marine biochemical element data collection system based on the RLS algorithm, wireless power supply and communication technology, combined with ZigBee communication and recursive least squares adaptive filtering algorithm, the detection accuracy and maintenance problems in the existing seawater nitrogen, phosphorus and silicon element analysis system are solved. Fast and accurate multi-channel monitoring and data processing are achieved.
Patent Information
- Application Number
- CN202411117477.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-15
Smart Images

Figure CN118641723B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of ocean data processing, and specifically discloses an ocean biochemical element data acquisition system and a processing method based on a RLS algorithm. Background Art
[0002] Nitrogen, phosphorus and silicon in the ocean are key elements to maintain the balance of the marine ecosystem. The appropriate concentration of nitrogen, phosphorus and silicon can promote the growth and development of marine organisms and maintain the stability of the ecosystem. However, if the concentration of nitrogen, phosphorus and silicon is too high, it will lead to eutrophication of the marine environment, forming a large amount of algae accumulation, excessive consumption of oxygen in seawater, and causing serious harm to marine organisms. Therefore, real-time monitoring of the concentration changes of nitrogen, phosphorus and silicon is crucial to protecting the marine environment and preventing red tides.
[0003] In order to more accurately grasp the content and changing patterns of nitrogen, phosphorus and silicon elements in seawater in different sea areas, it is necessary to quickly, synchronously and accurately detect the concentration of nitrogen, phosphorus and silicon elements in seawater. The development of a multi-channel nitrogen, phosphorus and silicon element detection method is very important. However, the existing seawater nitrogen, phosphorus and silicon element analysis system usually uses a single-channel circuit, which has problems such as time-consuming sample measurement process, easy contamination between circuits, complex wiring installation, difficult replacement and maintenance, and insufficient data processing accuracy. Therefore, it is necessary to study a multi-channel seawater nitrogen, silicon and phosphorus element monitoring system based on wireless power supply and communication on the basis of the existing nitrogen, phosphorus and silicon element analysis system and the new generation of information technology. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a multi-channel seawater nitrogen, silicon and phosphorus element monitoring system based on wireless power supply and communication.
[0005] The present invention adopts the following technical solution:
[0006] A marine biochemical element data acquisition system based on an RLS algorithm comprises a control system, wherein the control system comprises a control node and a parameter acquisition node, wherein the control node comprises a microcontroller, a power management module electrically connected to the microcontroller, a wireless energy transmission module, a ZigBee wireless communication module, a data storage module and a filter pump driving module, and the power management module in the control node supplies power to the control node;
[0007] The parameter acquisition nodes include independent nitrogen, phosphorus and silicon concentration acquisition nodes. Each parameter acquisition node includes a microcontroller, a wireless energy receiving module electrically connected to the microcontroller, a ZigBee wireless communication module, a light source signal acquisition module, a leakage detection module, a mixing pump drive module, a solenoid valve drive module, an ultraviolet lamp drive module, a heater drive module and a temperature acquisition module. The power management module in the parameter acquisition node supplies power to the parameter acquisition node; the ZigBee communication module in the control node wirelessly communicates with the ZigBee communication modules in each parameter acquisition node, and the wireless energy sending module in the control node wirelessly supplies power to the wireless energy receiving module in each parameter acquisition node.
[0008] Preferably, the wireless energy transmitting module of the control node wirelessly transmits electric energy to the wireless energy receiving module of the parameter collection node through magnetic induction coupling technology, thereby realizing wireless power supply of the parameter collection node.
[0009] Preferably, the wireless energy transmitting module includes a transmitting circuit and a control circuit; the wireless energy receiving module includes a receiving circuit; the specific steps are as follows:
[0010] The transmitting circuit in the wireless energy transmitting module provides a stable 12V power supply voltage through a voltage regulator, which is smoothed by a rectifier diode and a filter capacitor, and the working point is set by a bias resistor; the inverter circuit composed of a power MOSFET modulates the current frequency to generate a high-frequency current, and generates a high-frequency alternating magnetic field through a transmitting coil. After the multiple transmitting coils in the transmitting circuit are connected in parallel with the compensation network in the inverter circuit, they correspond to the receiving end coils in the wireless energy receiving module one by one, and power each receiving end respectively. The receiving circuit uses the receiving coil to receive the high-frequency alternating magnetic field generated by the transmitting coil, and generates an induced current through the principle of magnetic coupling. The induced current is rectified by a rectifier diode and smoothed by a filter capacitor, and the output voltage is adjusted by a power MOSFET to provide a stable DC power for the load; the control circuit adopts a switching power supply control chip, sets the working point through a bias resistor, and further smoothes the output voltage through a decoupling capacitor to ensure the stability of the system output voltage and current.
[0011] Preferably, the microcontroller includes an MCU, a power supply circuit, a reset circuit, a basic clock circuit, a real-time clock circuit and a program debugging circuit; wherein the MCU is filtered by connecting a capacitor between its power supply and ground; the power-on reset circuit is composed of a resistor and a capacitor in series, the resistor has a resistance of 10KΩ, the capacitor has a capacitance of 100nF, and the connection point between the resistor and the capacitor is connected to the reset pin of the microcontroller; the basic clock and the real-time clock are provided by an 8MHz active crystal oscillator and a 32.768KHz passive crystal oscillator, respectively, and are connected to corresponding pins of the MCU; the program debugging circuit uses 2*4P 2.54mm spacing terminals to reserve SWD and USART serial ports for program downloading.
[0012] Preferably, the power management module includes an input section, an intermediate conversion stage and an output control stage to achieve multi-level voltage conversion and control; in the input section, the module includes an overcurrent protection fuse F1 and a rectifier diode D3, which cooperate with a step-down diode to prevent reverse or excessive voltage from damaging the circuit;
[0013] The intermediate conversion stage uses the MP1584 chip to convert the 12V voltage to a 5V output voltage, and uses the (U2) HT7833 chip to convert the 5V voltage to a 3.3V output voltage;
[0014] In the output control stage, the module connects transistors Q3 and Q5 to the PE2 and PE3 ports of the microcontroller, and controls the on and off of the +12V and +5V power supplies through the high and low level changes of the microcontroller's I / O port.
[0015] Preferably, the ZigBee wireless communication module includes a CC2530 chip, a peripheral crystal oscillator circuit, a power supply filter circuit, a power-on reset circuit, an antenna circuit and an interface circuit. The CC2530 chip provides a high-speed and stable system clock through a 32MHz crystal oscillator, and provides a clock source for the sleep mode through a 32.768KHz crystal oscillator. The load capacitance value of the 32MHz crystal oscillator is 27pF; the power supply filter circuit connects a 100nF filter capacitor between the digital power pin and the analog power pin of the CC2530, and uses a 100uH inductor for isolation to ensure the stability of the power supply; The 1.8V regulator in the CC2530 chip is connected to a 1uF capacitor to stabilize the power output. The power-on reset circuit is composed of an external reset capacitor and a current-limiting resistor. The CC2530 is reset by keeping the RESET_N pin at a low level at the moment of power-on. The RF circuit is mainly composed of a matching network and an antenna interface; the matching network includes a 2nH inductor and an 8pF capacitor, which are connected between the RF_N and RF_P pins and the ground respectively to ensure the maximum power transmission of the RF signal; in addition, the capacitor between the inductors is used to fine-tune the matching network, and the capacitor connected between the inductor and the ground and between the antenna interface and the ground further optimizes the signal matching and filtering effects; the RF signal is output from the RF_N and RF_P pins of the CC2530 chip, and is transmitted to the BWSMA-KE-P001 SMA interface after passing through the matching network, thereby connecting the external antenna; the antenna circuit uses a PCB antenna, and the antenna is integrated on the PCB circuit board to save device space. The CC2530 chip and the microcontroller communicate through the SPI interface to achieve data transmission.
[0016] Preferably, the solenoid valve drive module is controlled by a (U12) ULN2803 chip that integrates eight NPN Darlington tube pairs, each Darlington tube is connected via a common emitter connection, a 10kΩ resistor is configured at the control end to switch the working state of the Darlington tube, and a 100nF decoupling capacitor is connected in parallel at the output end to stabilize the control signal and reduce electromagnetic interference; the LED drive circuit in the parameter acquisition node uses two (U14) MAX1916 chips to independently control two groups of LED lights, and the enable end of the MAX1916 (U14) chip is connected to the microcontroller I / O through a resistor to receive a control signal for lighting or turning off the corresponding LED.
[0017] Preferably, the leakage detection alarm module includes a 10kΩ resistor and a dual diode switch; under normal circumstances, the microcontroller port is connected to VCC3.3 through the resistor and the dual diode switch to maintain a certain voltage level, and when a leakage occurs, the liquid causes a short circuit between the two electrodes of the reserved terminal, causing the output voltage to drop sharply, and the changed voltage state triggers an alarm through the microcontroller to ensure timely fault response and processing.
[0018] The steps of the marine biochemical element data collection and processing method based on the RLS algorithm are as follows:
[0019] S1. At each time point , the concentration data of nitrogen, silicon and phosphorus elements in seawater collected in real time by the parameter acquisition node is used as the input signal ;
[0020] S2. Generate expected signals using historical data , and initialize , , is a small positive number. is the identity matrix; in each iteration of the RLS algorithm, according to the estimated error Dynamically adjust the forgetting factor To ensure that the filter can adaptively adjust the weights of new and old data under different environmental conditions; according to the adjusted forgetting factor, the gain vector is calculated Used to correct the current weight vector and update the covariance matrix To ensure the stability of the system in long-term operation; according to the updated gain vector and estimation error , adjust the weight vector , thereby optimizing the parameter configuration of the filter;
[0021] S3. Calculate the final output signal , as the monitoring result of the system at the current time point.
[0022] Preferably, the RLS algorithm formula is as follows:
[0023] ;
[0024] ;
[0025] ;
[0026] ;
[0027] ;
[0028] ;
[0029] is the initial forgetting factor, is the adjustment factor, is the weight vector.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] It can simultaneously and quickly monitor the concentrations of nitrogen, phosphorus, and silicon in seawater, wirelessly transmit data through Zigbee communication technology, and realize wireless power supply through magnetic coupling technology, which reduces the complexity and cost of wiring, facilitates system maintenance and module replacement, and finally introduces a recursive least squares (RLS) adaptive filtering algorithm with dynamically adjusted forgetting factor to ensure the reliability and accuracy of monitoring data under different environmental conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the overall control architecture of the control system disclosed in Example 1 of the present invention.
[0033] Figure 2 It is a schematic diagram of the control architecture of the parameter acquisition node in the control system disclosed in Example 1 of the present invention.
[0034] Figure 3 Circuit diagram of magnetically coupled resonant wireless power supply module.
[0035] Figure 4 Circuit diagram of power input part.
[0036] Figure 5 Circuit diagram of the power management module.
[0037] Figure 6 Circuit diagram of host computer communication module.
[0038] Figure 7 Solenoid valve driver module and LED driver circuit diagram.
[0039] Figure 8 Circuit diagram of UV lamp driver module and heater driver module.
[0040] Fig. 9 Circuit diagram of the signal processing module.
[0041] Fig.10 Circuit diagram of mixing pump drive module.
[0042] Fig.11 Flow chart of the RLS adaptive filtering algorithm in the control system disclosed in Example 1 of the invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0044] Embodiment 1, as Figure 1 , Figure 2 As shown, this embodiment discloses a marine biochemical element data acquisition system based on the RLS algorithm, including a control system, wherein the control system includes a control node and a parameter acquisition node, wherein the control node includes a built-in single-chip minimum system module (microcontroller), a wireless energy transmission module electrically connected to the microcontroller, a power management module, a ZigBee wireless communication module, a filter pump drive module, and a data storage module. The power management module in the control node supplies power to the control node. The functions of the control node include: communicating with the host computer, sending control instructions to each parameter acquisition node, starting and stopping the filter pump, and local data storage. Figure 2 As shown, the parameter acquisition nodes are independent nitrogen, phosphorus and silicon concentration acquisition nodes. The parameter acquisition nodes include a single-chip minimum system module with a built-in microcontroller, a wireless energy receiving module, a power management module, a ZigBee communication module, a light source signal acquisition module, a mixing pump drive module, a solenoid valve drive module, a UV lamp drive module, a heater drive module, a leakage detection module and a temperature acquisition module electrically connected to the above microcontroller. The power management module in the parameter acquisition node supplies power to the parameter acquisition node, and the wireless energy receiving module in the parameter acquisition node draws power from the wireless energy sending module in the control node. The ZigBee communication module in the parameter acquisition node is connected to the ZigBee communication module in the control node for communication. The functions of the parameter acquisition node include: completing the corresponding element concentration measurement process, completing the marking line calibration process, completing the processing of the corresponding element data and uploading the processed data to the control node.
[0045] In this embodiment, the single-chip computer minimum system of the control node and the parameter acquisition node is the same (microcontroller), and is composed of an MCU, a power supply circuit, a reset circuit, a basic clock circuit, a real-time clock circuit and a program debugging circuit; the MCU uses STM32F103VET6, and a capacitor is connected between its power supply and ground for filtering; the power-on reset circuit is composed of a resistor and a capacitor in series, the resistor has a resistance of 10KΩ, and the capacitor has a capacitance of 100nF, and the connection point of the resistor and the capacitor is connected to the reset pin of the microcontroller; the basic clock and the real-time clock are provided by an 8MHz active crystal oscillator and a 32.768KHz passive crystal oscillator, respectively, and are connected to the corresponding pins of the MCU; the program debugging circuit uses a 2*4P 2.54mm spacing terminal to reserve SWD and USART serial ports for program download.
[0046] The magnetic coupling resonance wireless power supply module includes a transmitting circuit and a receiving circuit. First, the transmitting circuit provides a stable 12V power supply voltage through a voltage regulator, which is smoothed by a rectifier diode and a filter capacitor, and the gate voltage of the power MOSFET is set by a bias resistor to make it work within the set working area. The power MOSFET constitutes an inverter circuit, and the current frequency is modulated by a high-frequency oscillator to generate a high-frequency current. The current generates a high-frequency alternating magnetic field through the transmitting coil. After the multiple transmitting coils and the compensation network in the transmitting circuit are connected in parallel to the inverter circuit, they correspond to the receiving end coil one by one, and each receiving end is powered respectively. The receiving coil in the receiving circuit receives the high-frequency alternating magnetic field generated by the transmitting coil, and generates an induced current through the magnetic coupling principle. The induced current is rectified by a rectifier diode to convert the alternating current into direct current, and then smoothed by a filter capacitor to provide a stable DC voltage to meet the load requirements. The control circuit uses a B34063 switching power supply control chip, sets its working point through a bias resistor, adjusts and stabilizes the output voltage and current, and eliminates high-frequency noise through a decoupling capacitor. Figure 3 shown.
[0047] Figure 4-Figure 5As shown, the power input part uses overcurrent protection fuse F1, rectifier diode D1 and step-down diode SMBJ15A for multiple protection to ensure the unidirectional flow of input current and prevent excessive voltage from damaging the circuit. The +12V circuit converts the 12V input voltage into a stable positive and negative 12V output through the WRB1212S-3W chip, and the 100μF capacitors C8 and C12 at the input and output ends smooth the voltage. The +5V circuit part uses the MP1584 chip, and converts the +12V voltage into a +5V output through the switching frequency adjustment resistor R5 and the output voltage feedback resistor R6. The input filter capacitors C5 and C6, as well as the output filter capacitor C11 and the compensation capacitor C7 work together to stabilize the output voltage. At the same time, the D3 voltage regulator diode and the D4 Schottky diode prevent reverse current. In the +3.3V circuit part, the HT7333 voltage regulator chip is used to convert the +5V voltage into a +12V output, and the input filter capacitor C9 and the output filter capacitor C10 ensure the stability of the output voltage. The power management module uses transistors Q1 and Q2 to control two independent voltage regulation circuits, and uses capacitors C1, C2 and resistors R7, R8 to provide stable +12V and +5V outputs. In addition, transistors Q3 and Q5 are connected to the PE2 and PE3 ports of the microcontroller, and the on and off of the +12V and +5V power supplies are controlled by the high and low level changes of the I / O port.
[0048] The ZigBee wireless communication module includes the CC2530 chip, the peripheral crystal oscillator circuit, the power filter circuit, the power-on reset circuit, the antenna circuit and the interface circuit. The CC2530 chip provides a high-speed and stable system clock through a 32MHz crystal oscillator, and provides a clock source for the sleep mode through a 32.768KHz crystal oscillator. The load capacitance value of the 32MHz crystal oscillator is 27pF. The power filter circuit connects a 100nF filter capacitor between the digital power pin and the analog power pin of the CC2530, and uses a 100uH inductor for isolation to ensure the stability of the power supply. The on-chip 1.8V regulator is connected to a 1uF capacitor to stabilize the power output. The power-on reset circuit consists of an external reset capacitor and a current limiting resistor. By keeping the RESET_N pin at a low level at the moment of power-on, the CC2530 is reset. The radio frequency (RF) circuit is mainly composed of a matching network and an antenna interface. The matching network includes a 2nH inductor and an 8pF capacitor, which are connected between the RF_N and RF_P pins and the ground to ensure the maximum power transmission of the RF signal. In addition, the capacitors between the inductors are used to fine-tune the matching network, and the capacitors connected between the inductor and the ground and between the antenna interface and the ground further optimize the signal matching and filtering effects. The RF signal is output from the RF_N and RF_P pins of the CC2530 chip, and is transmitted to the BWSMA-KE-P001 SMA interface after passing through the matching network to connect the external antenna. The antenna circuit uses a PCB built-in copper antenna, and the antenna is integrated on the PCB circuit board to save device space. The CC2530 chip and the microcontroller communicate through the SPI interface to achieve data transmission.
[0049] Figure 6 As shown in the figure, the host computer communication module uses the MAX3485 chip to convert the TTL signal into RS485 signal to realize RS485 communication, where the RE and DE pins are connected to the I / O port of the microcontroller, and the data transmission direction is controlled by high and low levels; the TF card data storage module is connected to the microcontroller through the SPI interface, and the nitrogen-silicon-phosphorus concentration data is stored in the TF card. The TF card interface is connected to VCC3.3 through four 10kΩ pull-up resistors to stabilize the signal.
[0050] The filter pump driver module in the control node is that the microcontroller is connected to the filter pump through the MAX3232 chip, converts the TTL level signal of the microcontroller into an RS-232 level signal, and sends instructions to the pump controller through the RS-232 communication protocol to control the start and stop, speed and direction of the filter pump to achieve preliminary filtration of the collected seawater.
[0051] Figure 7As shown in the figure, the solenoid valve driving module in the parameter acquisition node is controlled by the ULN2803 chip which integrates eight NPN Darlington tube pairs. Each Darlington tube is connected by a common emitter connection. When the input end of the ULN2803 receives a high-level signal from the microcontroller, the corresponding Darlington pair will be turned on, allowing current to pass through the solenoid valve coil, thereby driving the solenoid valve to operate. A 100nF decoupling capacitor is connected in parallel to the output end to stabilize the control signal and reduce electromagnetic interference. The LED driving circuit in the parameter acquisition node uses two MAX1916 constant current source chips to independently control two groups of LED lights. The enable end of the MAX1916 chip is connected to the microcontroller I / O through a resistor to receive the control signal. By configuring the resistance value of the resistor, the current can be controlled between 10mA and 100mA to provide a light source for the corresponding element concentration detection.
[0052] Figure 8 As shown in the figure, the UV lamp driver module and heater driver module of the parameter acquisition node use ULN2803 chip and G6S-2 relay for output control. The output end of the ULN2803 chip is connected to the normally open contact of the G6S-2 relay. The microcontroller drives the NPN transistor to send a control signal to activate or close the relay to control the on and off of the UV lamp and heater. The control end of the relay is reversely connected to the Schottky diode in parallel to provide freewheeling protection to prevent voltage spikes from damaging the circuit.
[0053] Fig. 9 As shown in Figure 1, the signal processing module of the parameter acquisition node mainly includes a photodiode drive module, a gain selection module, a signal selection module, a filter module and an analog-to-digital conversion module. The gain selection module uses the ADG604 analog switch chip. The microcontroller controls the A0 and A1 pins of the chip through the I / O port, selects the feedback resistors of the four inputs S1, S2, S3, and S4 corresponding to the resistance value, and thus determines the gain output to the amplifier circuit. The signal selection module selects the measurement signal or the reference signal through ADG604. The signal amplification module is composed of a two-stage operational amplifier, which is used to enhance the weak current signal obtained by the photodiode conversion. The filter module uses a series of parallel capacitors to smooth the amplified signal and reduce noise interference. The analog-to-digital conversion module uses the high-precision AD7791 chip to convert the analog signal into a digital signal and communicate with the microcontroller through the SPI bus.
[0054] The leakage detection alarm module of the parameter acquisition node consists of a 10kΩ resistor and a dual diode switch, which is used to monitor the leakage in the system; under normal circumstances, the port is connected to VCC3.3 through the resistor and the dual diode switch to maintain a certain voltage level. When a leakage event occurs, the liquid causes a short circuit between the two electrodes of the reserved terminal, causing the output voltage to drop sharply. The changed voltage state is transmitted to the microcontroller through the ADC123_IN10 port of the microcontroller to trigger an alarm, ensuring timely fault response and processing. The temperature acquisition module is a DS18B20 temperature sensor, and the data pin is configured with a 10K pull-up resistor connected to the 3.3V power supply to ensure stable communication.
[0055] Fig.10 As shown, the hybrid pump drive module of the parameter acquisition node adopts the RS485 communication standard, connects the USART2 serial port to communicate with the microcontroller through the MAX3485 chip, realizes the transmission of control commands to adjust the start, stop, speed and direction of the pump, and the data transmission port is configured with pull-up resistors and pull-down resistors to stabilize the communication signal, and the resistance value is 10K.
[0056] The invention discloses a method for collecting and processing marine biochemical element data based on the RLS algorithm. The invention is based on the recursive least squares (RLS) adaptive filtering algorithm, dynamically adjusts the forgetting factor, can automatically optimize the filter parameter configuration according to the changes in real-time data, cope with sudden data anomalies, and reduce the impact of errors on the overall data accuracy.
[0057] The objective function of RLS is:
[0058] ;
[0059] in, is the filter weight vector, For the forgetting factor, is the prediction error, is the expected output, is the input vector. At this moment, the smaller the error, the larger the weight is, and the less forgotten it is. The larger the error, the smaller the weight is, and the more forgotten it is.
[0060] By the objective function of Taking the derivative and setting the gradient equal to 0, we get:
[0061] ;
[0062] According to the covariance matrix and residual The time recursion formula is:
[0063] ;
[0064] ;
[0065] Because of the need to calculate The inverse matrix of each point is computationally intensive, so it is defined as:
[0066] ;
[0067] According to the matrix inversion lemma:
[0068] ;
[0069] make , , , we can get:
[0070] ;
[0071] Among them, the gain vector , so we have:
[0072] ;
[0073] Depend on , we can get The time recursion formula is:
[0074] ;
[0075] in, is the estimation error, is the weight vector.
[0076] The specific application steps are as follows:
[0077] like Fig.11 First, at each time point , the concentration data of nitrogen, silicon and phosphorus in seawater collected in real time by the parameter acquisition node is used as the input signal , using historical data to generate expected signals , and initialize , , is a small positive number. is the identity matrix; in each iteration of the RLS algorithm, according to the estimated error Dynamically adjust the forgetting factor To ensure that the filter can adaptively adjust the weights of new and old data under different environmental conditions; according to the adjusted forgetting factor, calculate the gain vector Used to correct the current weight vector and update the covariance matrix To ensure the stability of the system in long-term operation; according to the updated gain vector and estimation error , adjust the weight vector , thereby optimizing the parameter configuration of the filter; judging whether the signal input is complete, if not, proceed to the next sampling point, if yes, proceed to the next step; finally, calculating the final output signal , as the monitoring result of the system at the current time point.
[0078] The application formula of the RLS algorithm is as follows:
[0079] ;
[0080] ;
[0081] ;
[0082] ;
[0083] ;
[0084] .
[0085] Through dynamic filtering and error correction, the RLS adaptive filtering algorithm ensures that the system accurately monitors the concentration changes of elements such as nitrogen, silicon, and phosphorus in seawater; the introduction of the forgetting factor enables the algorithm to effectively filter out noise and interference signals, thereby improving the system's anti-interference ability; at the same time, the dynamic adjustment of the forgetting factor mechanism enables the algorithm to adaptively adjust the weight distribution of historical data according to the current error, effectively respond to sudden data anomalies, reduce the impact of errors on overall data accuracy, and ensure the accuracy of monitoring results; in addition, the recursive update method of the covariance matrix ensures the stability of the system during long-term operation and avoids numerical drift problems.
[0086] The above embodiments are only exemplary embodiments of the present invention and are not intended to limit the present invention. The protection scope of the present invention is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present invention within the essence and protection scope of the present invention, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present invention.
Claims
1. A marine biochemical element data acquisition system based on RLS algorithm, characterized by: It includes a control node and a parameter collection node, wherein the control node includes a microcontroller, a power management module electrically connected to the microcontroller, a wireless energy transmission module, a ZigBee wireless communication module, a data storage module and a filter pump driving module, and the power management module in the control node supplies power to the control node; The parameter acquisition nodes include independent nitrogen, phosphorus and silicon concentration acquisition nodes, each of which includes a microcontroller, a wireless energy receiving module electrically connected to the microcontroller, a ZigBee wireless communication module, a light source signal acquisition module, a liquid leakage detection module, a mixing pump drive module, a solenoid valve drive module, an ultraviolet lamp drive module, a heater drive module and a temperature acquisition module. The power management module in the parameter acquisition node supplies power to the parameter acquisition node; the ZigBee communication module in the control node wirelessly communicates with the ZigBee communication modules in each parameter acquisition node, and the wireless energy transmission module in the control node wirelessly supplies power to the wireless energy receiving module in each parameter acquisition node; The wireless energy transmitting module of the control node wirelessly transmits electric energy to the wireless energy receiving module of the parameter collection node through magnetic induction coupling technology, thereby realizing wireless power supply of the parameter collection node; The wireless energy transmitting module includes a transmitting circuit and a control circuit; the wireless energy receiving module includes a receiving circuit; the specific steps are as follows: The transmitting circuit in the wireless energy transmitting module provides a stable 12V power supply voltage through a voltage regulator, which is smoothed by a rectifier diode and a filter capacitor, and the working point is set by a bias resistor; the inverter circuit composed of a power MOSFET modulates the current frequency to generate a high-frequency current, and generates a high-frequency alternating magnetic field through a transmitting coil. After the multiple transmitting coils in the transmitting circuit are connected in parallel with the compensation network in the inverter circuit, they correspond to the receiving end coils in the wireless energy receiving module one by one, and power each receiving end respectively. The receiving circuit uses the receiving coil to receive the high-frequency alternating magnetic field generated by the transmitting coil, and generates an induced current through the principle of magnetic coupling. The induced current is rectified by a rectifier diode and smoothed by a filter capacitor, and the output voltage is adjusted by a power MOSFET to provide a stable DC power for the load; the control circuit adopts a switching power supply control chip, sets the working point through a bias resistor, and further smoothes the output voltage through a decoupling capacitor to ensure the stability of the system output voltage and current.
2. The marine biochemical element data acquisition system based on the RLS algorithm according to claim 1 is characterized in that: The microcontroller includes an MCU, a power supply circuit, a reset circuit, a basic clock circuit, a real-time clock circuit and a program debugging circuit; The MCU is filtered by connecting a capacitor between its power supply and ground; the power-on reset circuit is composed of a resistor and a capacitor in series; the basic clock and real-time clock are provided by an 8MHz active crystal oscillator and a 32.768KHz passive crystal oscillator, respectively, and are connected to the corresponding pins of the MCU; the program debugging circuit uses 2*4P 2.54mm spacing terminals to reserve SWD and USART serial ports for program download.
3. The marine biochemical element data acquisition system based on the RLS algorithm according to claim 1 is characterized in that: The power management module includes an input stage, an intermediate conversion stage, and an output control stage to achieve multi-level voltage conversion and control. In the input stage, the module contains an overcurrent protection fuse F1 and a rectifier diode D3, which cooperates with a step-down diode to prevent reverse or over-high voltage from damaging the circuit. The intermediate conversion stage uses chip U2 to convert the 12V voltage to a 5V output voltage, and uses chip U2 to convert the 5V voltage to a 3.3V output voltage; In the output control stage, the module connects transistors Q3 and Q5 to the PE2 and PE3 ports of the microcontroller, and controls the on and off of the +12V and +5V power supplies through the high and low level changes of the microcontroller's I / O port.
4. The marine biochemical element data acquisition system based on the RLS algorithm according to claim 1 is characterized in that: The ZigBee wireless communication module includes a chip CC2530, a peripheral crystal oscillator circuit, a power filter circuit, a power-on reset circuit, an antenna circuit and an interface circuit. The chip CC2530 provides a high-speed and stable system clock through a 32MHz crystal oscillator, and provides a clock source for the sleep mode through a 32.768KHz crystal oscillator. The load capacitance value of the 32MHz crystal oscillator is 27pF; the power filter circuit connects a 100nF filter capacitor between the digital power pin and the analog power pin of CC2530, and uses a 100uH inductor for isolation to ensure the stability of the power supply; the 1.8V regulator in the chip CC2530 is connected to a 1uF capacitor to stabilize the power output, and the power-on reset circuit The routing consists of an external reset capacitor and a current-limiting resistor. The CC2530 is reset by keeping the RESET_N pin at a low level at the moment of power-on. The RF circuit is mainly composed of a matching network and an antenna interface. The matching network includes a 2nH inductor and an 8pF capacitor, which are connected between the RF_N and RF_P pins and the ground respectively to ensure the maximum power transmission of the RF signal. In addition, the capacitor between the inductors is used to fine-tune the matching network, and the capacitor connected between the inductor and the ground and between the antenna interface and the ground further optimizes the signal matching and filtering effects. The RF signal is output from the RF_N and RF_P pins of the chip CC2530, and is transmitted to the BWSMA-KE-P001 SMA interface after passing through the matching network to connect the external antenna. The antenna circuit uses a PCB antenna, and the antenna is integrated on the PCB circuit board to save device space. The chip CC2530 communicates with the microcontroller through the SPI interface to achieve data transmission.
5. The marine biochemical element data acquisition system based on the RLS algorithm according to claim 1 is characterized in that: The solenoid valve drive module is controlled by the chip U12 which integrates eight NPN Darlington tube pairs. Each Darlington tube is connected through the common emitter connection. The control end is configured with a 10kΩ resistor to switch the working state of the Darlington tube. The output end is connected in parallel with a 100nF decoupling capacitor to stabilize the control signal and reduce electromagnetic interference. The LED drive circuit in the parameter acquisition node uses two chips U14 to independently control two groups of LED lights. The enable end of chip U14 is connected to the microcontroller I / O through a resistor to receive the control signal, which is used to light up or turn off the corresponding LED.
6. The marine biochemical element data acquisition system based on the RLS algorithm according to claim 1 is characterized in that: The leakage detection alarm module includes a 10kΩ resistor and a dual-diode switch. Under normal circumstances, the microcontroller port is connected to VCC3.3 through the resistor and the dual-diode switch to maintain a certain voltage level. When a leakage occurs, the liquid causes a short circuit between the two electrodes of the reserved terminal, causing the output voltage to drop sharply. The changed voltage state triggers an alarm through the microcontroller to ensure timely fault response and processing.
7. A method for collecting and processing marine biochemical element data based on RLS algorithm, characterized in that: Here are the steps: S1. At each time point n, the nitrogen, silicon and phosphorus element concentration data in seawater collected in real time by the parameter collection node is used as the input signal x(n); S2. Generate the expected signal d(n) using historical data and initialize w(0) = 0, P(0) = δ- 1 I, δ is a small positive number, and I is the identity matrix; In each iteration of the RLS algorithm, the forgetting factor λ is dynamically adjusted according to the size of the current error ε(n) to ensure that the filter can adaptively adjust the weights of new and old data under different environmental conditions; According to the adjusted forgetting factor, the gain vector k(n) is calculated to correct the current weight vector, and the covariance matrix P(n) is updated to ensure the stability of the system in long-term operation; According to the updated gain vector k(n) and the prior error ε(n), the weight vector w(n) is adjusted to optimize the parameter configuration of the filter; S3. Calculate the final output signal y(n) as the monitoring result of the system at the current time point.
8. The method for collecting and processing marine biochemical element data based on the RLS algorithm according to claim 7 is characterized in that: The RLS algorithm formula is as follows: ε(n)=d(n)-w T (n−1)x(n) λ=λ0·(1+γ·|ε(n)|) ω(n)=ω(n-1)+k(n)ε(n) y(n)=w T (n−1)x(n) λ0 is the initial forgetting factor, γ is the adjustment factor, and w(n) is the updated weight vector.
