Signal compensation method, device, electronic device and storage medium
By updating the filter coefficients according to the response characteristics of the signal to be compensated in the communication system, the stability problem of the recursive filter is solved, stable compensation of the signal is achieved, signal distortion is avoided, and the performance of the communication system is improved.
Patent Information
- Application Number
- CN202211471469.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-11-23
AI Technical Summary
Signal distortion caused by radio frequency devices in existing communication systems, especially recursive filters, has stability problems, making it difficult to achieve effective compensation in hardware.
By determining the ideal signal response based on the response characteristics of the signal to be compensated, determining the signal cost function based on the ideal signal response, and updating the filter coefficients given the filter coefficients until the iteration termination conditions are met, stable compensation of the signal is achieved.
It effectively avoids signal distortion, improves the performance of the communication system and the reliability of the signal, and ensures smooth transmission of the signal.
Smart Images

Figure CN115834307B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a signal compensation method, device, electronic equipment and storage medium. Background Art
[0002] The rapid development of communication systems has made communication systems more and more complex. The number of RF devices in communication systems has increased, and the index requirements have also become higher and higher. Among them, RF devices include passive devices and active devices. RF devices will cause distortion to the signal, such as the sideband group delay jitter of passive filters, or nonlinear phase distortion caused by active devices such as amplifiers. Signal distortion will affect the performance of the communication system. Therefore, it is necessary to compensate the signal.
[0003] In the prior art, recursive filters (Infinite Impulse Response, IIR), such as all-pass filters, forward filters or backward filters, are usually used for signal compensation. However, IIR filters are recursive systems, which have feedback and stability problems and are difficult to implement in hardware. Therefore, it is urgent to propose a signal compensation method to compensate the signal stably and reliably, so as to avoid the influence of signal distortion on the communication system. Summary of the invention
[0004] The present invention provides a signal compensation method, device, electronic equipment and storage medium to stably compensate a signal to be compensated, avoid signal distortion and ensure communication system performance.
[0005] According to one aspect of the present invention, a signal compensation method is provided, the method comprising:
[0006] Determine an ideal signal response according to a signal to be compensated and a response characteristic of the signal to be compensated; and determine a signal cost function according to the ideal signal response;
[0007] Given a filter coefficient, and determining a signal cost function value according to the filter coefficient;
[0008] Determining an acceptance result of the filter coefficient according to the signal cost function value and an acceptance probability corresponding to the filter coefficient;
[0009] According to the acceptance result, the filter coefficient and the signal cost function value are updated, and when the filter coefficient meets the iteration termination condition, the final filter coefficient is obtained;
[0010] The signal to be compensated is compensated according to the final filter coefficient.
[0011] According to another aspect of the present invention, there is provided a signal compensation device, the device comprising:
[0012] A signal cost function determination module, used to determine an ideal signal response according to a signal to be compensated and a response characteristic of the signal to be compensated; and to determine a signal cost function according to the ideal signal response;
[0013] A signal cost function value determination module, used for given filter coefficients and determining a signal cost function value according to the filter coefficients;
[0014] an acceptance result determination module, used to determine the acceptance result of the filter coefficient according to the signal cost function value and the acceptance probability corresponding to the filter coefficient;
[0015] A filter final coefficient determination module, used to update the filter coefficient and the signal cost function value according to the acceptance result, and obtain the filter final coefficient when the filter coefficient meets the iteration termination condition;
[0016] A signal compensation module is used to compensate the signal to be compensated according to the final coefficient of the filter.
[0017] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0018] at least one processor; and
[0019] a memory communicatively connected to the at least one processor; wherein,
[0020] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the signal compensation method described in any embodiment of the present invention.
[0021] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the signal compensation method described in any embodiment of the present invention when executed.
[0022] The technical solution of the embodiment of the present invention determines the ideal signal response according to the signal to be compensated and the response characteristics of the signal to be compensated; and determines the signal cost function according to the ideal signal response; gives the filter coefficient, and determines the signal cost function value according to the filter coefficient; determines the acceptance result of the filter coefficient according to the signal cost function value and the acceptance probability corresponding to the filter coefficient; according to the acceptance result, updates the filter coefficient and the signal cost function value, and obtains the final filter coefficient when the filter coefficient meets the iteration termination condition; compensates the signal to be compensated according to the final filter coefficient, solves the signal compensation problem in the communication system, can stably compensate the signal, avoid signal distortion, and ensure the performance of the communication system.
[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 is a flow chart of a signal compensation method provided according to Embodiment 1 of the present invention;
[0026] Figure 2a is a flow chart of a signal compensation method provided according to Embodiment 2 of the present invention;
[0027] Figure 2b is a flow chart of another signal compensation method provided according to the second embodiment of the present invention;
[0028] Figure 3 is a structural schematic diagram of a signal compensation device provided according to Embodiment 3 of the present invention;
[0029] Figure 4 It is a structural schematic diagram of an electronic device for implementing the signal compensation method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Embodiment 1
[0033] Figure 1 This is a flow chart of a signal compensation method provided according to Embodiment 1 of the present invention. This embodiment can be applied to the situation where a signal is compensated when there is signal distortion in a radio frequency device in a communication system. The method can be executed by a signal compensation device. The signal compensation device can be implemented in the form of hardware and / or software. The signal compensation device can be configured in an electronic device, such as a filter.
[0034] like Figure 1 As shown, the method includes:
[0035] Step 110: Determine an ideal signal response according to the signal to be compensated and the response characteristic of the signal to be compensated; and determine a signal cost function according to the ideal signal response.
[0036] In this embodiment, the signal to be compensated may be a signal that has passed through a nonlinear filter. For example, the nonlinear filter may be a non-recursive filter (Finite Impulse Response, FIR). By compensating the FIR signal to be compensated, the feedback and instability of the IIR filter can be avoided.
[0037] Specifically, the signal to be compensated may be a specific impulse response h=[h(0), h(1), ..., h(N-1)]. The response characteristics of the signal to be compensated may be one or more of the frequency response, phase characteristics, group delay characteristics, and amplitude-frequency response derivative of the signal. The ideal signal response may be an expected response determined based on the response characteristics of the signal to be compensated. For example, the average response of the signal to be compensated in the filter passband may be taken as the ideal signal response.
[0038] In an optional implementation manner of an embodiment of the present invention, an ideal signal response is determined based on the signal to be compensated and the response characteristics of the signal to be compensated, including: determining the amplitude-frequency response derivative of the ideal signal response based on the signal to be compensated; determining the ideal phase-frequency response of the ideal signal response based on the phase characteristics of the signal to be compensated; and / or determining the ideal group delay response of the ideal signal response based on the group delay characteristics of the signal to be compensated.
[0039] Where, for a specific impulse response, in the passband, the frequency response of the nonlinear phase filter can be H(e jω )=|H(e jω )|e jφ(ω) . |H(e jω )| is the amplitude, and φ(ω) is the phase. In the optimal design of the nonlinear phase filter of this embodiment, H(e jω ) approaches a specific goal and solves it under the optimization criterion to obtain the filter coefficients.
[0040] Specifically, in this embodiment, the phase characteristics and / or group delay characteristics of the signal to be compensated can be limited. Among them, group delay is one of the performance indicators of RF devices, which mainly represents the phase change of different frequencies passing through RF devices. If the system group delay jitter is large, it means that the transmission delays of different frequencies through the system are different, which means that the signal is distorted after passing through this system. Similarly, in the RF link, the source device has different degrees of nonlinearity, which will cause phase distortion of the signal. Both group delay jitter and phase distortion will affect the performance of the communication system. In order to overcome this transmission influence and ensure the transceiver performance of the communication system, it is necessary to perform phase compensation or group delay jitter compensation on the signal.
[0041] Exemplarily, in this embodiment, the phase characteristic of the signal to be compensated may be limited to satisfy the phase response error (PRE) constraint: |φ(ω)-φ d (ω)|≤δ, Among them, φ d (ω) is the ideal phase-frequency response, and δ is a sufficiently small value. The ideal phase-frequency response of the ideal signal response can be determined by the phase characteristic of the signal to be compensated. For example, the phase characteristic of the distorted signal in the passband is φp (ω), calculate its mean(φ p (ω)), then the ideal phase-frequency response of the FIR filter in the passband is φ d (ω)=mean(φ p (ω)) / φ p (ω).
[0042] As another example, the group delay characteristic of the signal to be compensated may be limited to satisfy a group delay response error (GRE) constraint: in, is the ideal group delay response. For example, the group delay characteristic of the distorted signal in the passband is Calculate its mean Then the ideal group delay response in the passband of the FIR filter to be determined is
[0043] Furthermore, when performing phase compensation, the distortion characteristics of amplitude-frequency are considered in this embodiment. It is to prevent the amplitude-frequency characteristics introduced by the FIR filter from being too drastic and affecting the amplitude-frequency characteristics of the signal. Therefore, in this embodiment, the amplitude-frequency response derivative (ARD) can be constrained. The purpose of constraining the amplitude-frequency response derivative is to prevent the amplitude-frequency response of the filter from changing drastically and beyond expectations.
[0044] For example, the formula The derivative of the amplitude-frequency response is defined. is the derivative of the amplitude-frequency response. It can be understood that the maximum value of the expected amplitude-frequency response derivative is its possible minimum value; that is, the expected amplitude-frequency response derivative is a linear and smooth value.
[0045] Therefore, in this embodiment, the filter design may be performed by considering the phase characteristic and / or group delay characteristic of the signal to be compensated, as well as the amplitude-frequency response derivative.
[0046] Specifically, in an optional implementation manner of an embodiment of the present invention, a signal cost function is determined based on an ideal signal response, including: determining a first signal cost function based on a phase characteristic of a signal to be compensated, an ideal phase-frequency response of an ideal signal response, and a derivative of an amplitude-frequency response; and / or determining a second signal cost function based on a group delay characteristic of a signal to be compensated, an ideal group delay response of an ideal signal response, and a derivative of an amplitude-frequency response.
[0047] Among them, the first signal cost function can be The second signal cost function can be Wherein, k is an adjustment factor. k adjusts the degree of constraint on the derivative of the amplitude-frequency response. The larger the k value, the better the amplitude-frequency characteristics of the filter need to be; the smaller the k value, the worse the amplitude-frequency characteristics of the filter can be accepted. The filter is optimized by the first signal cost function and / or the second signal cost function.
[0048] Step 120: Given filter coefficients, and determining a signal cost function value according to the filter coefficients.
[0049] In the initial iteration, a random filter coefficient X may be given. And the frequency response of the corresponding nonlinear phase filter may be determined according to the random filter coefficient X. Furthermore, the cost function value corresponding to the random filter coefficient X may be determined according to the frequency response of the nonlinear phase filter and the cost function calculation formula.
[0050] In the subsequent iteration process, a new filter coefficient X(i) can be selected in the neighborhood of X. Then, the acceptance result of X(i) is judged to update X. Through continuous iteration, the optimal X can be selected as the final filter coefficient to achieve stable compensation of the signal.
[0051] Step 130: Determine the acceptance result of the filter coefficient according to the signal cost function value and the acceptance probability corresponding to the filter coefficient.
[0052] Wherein, determining whether to accept the filter coefficient may be to determine whether the filter coefficient X(i) can further optimize the signal cost function value. If the filter coefficient X(i) can optimize the signal cost function value, the filter coefficient X(i) is accepted; otherwise, the filter coefficient X(i) is not accepted.
[0053] Specifically, in an optional implementation of an embodiment of the present invention, the acceptance result of the filter coefficient is determined based on the signal cost function value and the acceptance probability corresponding to the filter coefficient, including: if the signal cost function value is smaller than the previous signal cost function value, or when the acceptance probability meets a preset probability condition, determine to accept the filter coefficient and accept the signal cost function value corresponding to the filter coefficient; otherwise, refuse to accept the filter coefficient and the signal cost function value corresponding to the filter coefficient.
[0054] If the signal cost function value is smaller than the previous signal cost function value, it can be determined that the filter coefficient X(i) can optimize the signal cost function value. The filter coefficient X(i) can be accepted, that is, X(i) can be used as X, and X(i) can be re-selected in the neighborhood of X for iteration.
[0055] Furthermore, in order to avoid the optimal filter coefficient being ignored, for the filter coefficient X(i) that cannot directly optimize the signal cost function value, its acceptance probability can be determined; when the acceptance probability meets the preset probability condition, the filter coefficient X(i) is accepted; thereby, it can be more conducive to finding the optimal filter coefficient.
[0056] Among them, the acceptance probability may be a preset fixed value, or may be determined according to certain selection rules. For example, the acceptance probability may be determined according to certain optimization criteria. When the reception probability is a preset fixed value, the preset probability condition may be that the reception probability is greater than a random value. For example, the reception probability is greater than a value randomly selected in the open interval (0,1). When the reception probability is determined according to certain selection rules, there may be multiple situations for the preset probability condition; for example, the preset probability condition may be that the reception probability is greater than a random value; or, the preset probability condition may be that the reception probability is greater than a fixed value, etc. By increasing the randomness of the reception probability satisfying the preset probability condition, it may be helpful to find the optimal filter coefficient.
[0057] Step 140: Update the filter coefficients and the signal cost function value according to the accepted result, and obtain the final filter coefficients when the filter coefficients meet the iteration termination condition.
[0058] There may be multiple conditions for the termination of the iteration. For example, the termination condition of the iteration may be a limitation on the signal cost function value corresponding to the filter coefficient; specifically, the iteration may be stopped when the signal cost function value corresponding to the filter coefficient reaches the expected value. For another example, the acceptance probability of the filter coefficient may be associated with the probability influence factor, and the termination condition of the iteration may be a limitation on the probability influence factor corresponding to the filter coefficient; specifically, the iteration may be stopped when the probability influence factor corresponding to the filter coefficient reaches the expected value.
[0059] Step 150: Compensate the signal to be compensated according to the final filter coefficients.
[0060] By using the optimal final coefficient of the filter to compensate the signal to be compensated, phase distortion and / or group delay jitter of the signal can be avoided, thereby improving the signal quality and facilitating reliable and smooth transmission of the signal.
[0061] The technical solution of this embodiment determines the ideal signal response according to the signal to be compensated and the response characteristics of the signal to be compensated; and determines the signal cost function according to the ideal signal response; gives the filter coefficient, and determines the signal cost function value according to the filter coefficient; determines the acceptance result of the filter coefficient according to the signal cost function value and the acceptance probability corresponding to the filter coefficient; according to the acceptance result, updates the filter coefficient and the signal cost function value, and obtains the final filter coefficient when the filter coefficient meets the iteration termination condition; compensates the signal to be compensated according to the final filter coefficient, solves the signal compensation problem in the communication system, can stably compensate the signal, avoid signal distortion, and ensure the performance of the communication system.
[0062] Embodiment 2
[0063] Figure 2a 1 is a flow chart of a signal compensation method provided according to Embodiment 2 of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with each optional solution in one or more of the above embodiments. Figure 2a As shown, the method includes:
[0064] Step 210: Determine the amplitude-frequency response derivative of the ideal signal response according to the signal to be compensated.
[0065] Step 220: Determine an ideal phase-frequency response of an ideal signal response according to the phase characteristic of the signal to be compensated; and / or determine an ideal group delay response of a rational signal response according to the group delay characteristic of the signal to be compensated.
[0066] Step 230, determine a first signal cost function based on the phase characteristics of the signal to be compensated, the ideal phase-frequency response of the ideal signal response, and the derivative of the amplitude-frequency response; and / or determine a second signal cost function based on the group delay characteristics of the signal to be compensated, the ideal group delay response of the ideal signal response, and the derivative of the amplitude-frequency response.
[0067] Step 240: Given filter coefficients, and determining a signal cost function value according to the filter coefficients.
[0068] Step 250: Determine the acceptance probability according to the signal cost function value corresponding to the filter coefficient, the previous signal cost function value, the probability adjustment parameter, and the probability influencing factor.
[0069] For example, it can be done by Determine the acceptance probability. Wherein, F(i) is the signal cost function value determined according to the filter coefficient X(i); F is the previous signal cost function value determined according to the filter coefficient X; m is the probability adjustment parameter; P is the probability influence factor. Wherein, the probability influence factor can be determined by P=a×P0. Wherein, a is the attenuation ratio of the probability influence factor; P0 is the initial probability influence factor, which can be updated during the iteration, such as P0=P. Specifically, the iterative process of this embodiment can be L iterations under different probability influence factors.
[0070] After executing step 250, step 260 or step 270 may be executed according to the situation.
[0071] Step 260: If the signal cost function value is smaller than the previous signal cost function value, or the acceptance probability satisfies the preset probability condition, determine to accept the filter coefficient and accept the signal cost function value corresponding to the filter coefficient. Otherwise, step 270 may be executed.
[0072] In an optional implementation of the embodiment of the present invention, the acceptance probability satisfies a preset probability condition, including: the acceptance probability is greater than a preset probability threshold; or, the acceptance probability is greater than a probability value randomly selected within an open interval (0,1).
[0073] Exemplarily, when the reception probability satisfies P_accept>random(0,1), it can be determined that the reception probability satisfies the preset probability condition. Among them, random(0,1) represents a probability value randomly selected in the open interval (0,1). By setting P_accept>random(0,1), it can be avoided that when P_accept is limited to be too large, the optimal filter coefficient is skipped; it can also be avoided that when P_accept is limited to be too small, it is not easy to obtain the optimal filter coefficient.
[0074] After executing step 260 , step 280 may be executed.
[0075] Step 270: Refuse to accept the filter coefficients and the signal cost function values corresponding to the filter coefficients.
[0076] After executing step 270 , the process may return to executing step 240 .
[0077] Step 280: Update the filter coefficients and the signal cost function value, and obtain the final filter coefficients when the filter coefficients meet the iteration termination condition.
[0078] Specifically, the iterative process of this embodiment may be to perform L iterations under different probability influence factors. In the iteration, the acceptance probability and the signal cost function value are used to determine whether to accept the current filter coefficient; if accepted, the value selection iteration is continued according to the current filter coefficient; if not accepted, the current filter coefficient is discarded and the value selection iteration is performed again according to the previous filter coefficient; when the iteration meets the iteration termination condition, the final filter coefficient is obtained.
[0079] In an optional implementation of an embodiment of the present invention, the filter coefficient satisfies the iteration termination condition, including: the signal cost function value corresponding to the filter coefficient is less than a preset signal cost function threshold; or, the probability influence factor used by the filter coefficient during iteration is less than a preset probability influence factor threshold.
[0080] Among them, the preset signal cost function threshold and the preset probability influence factor threshold can be set according to actual needs; this embodiment does not make specific limitations on this.
[0081] Step 290: Compensate the signal to be compensated according to the final filter coefficients.
[0082] The technical solution of this embodiment is to determine the derivative of the amplitude-frequency response of the ideal signal response according to the signal to be compensated; determine the ideal phase-frequency response of the ideal signal response according to the phase characteristic of the signal to be compensated; and / or determine the ideal group delay response of the ideal signal response according to the group delay characteristic of the signal to be compensated; determine the first signal cost function according to the phase characteristic of the signal to be compensated, the ideal phase-frequency response of the ideal signal response, and the derivative of the amplitude-frequency response; and / or determine the second signal cost function according to the group delay characteristic of the signal to be compensated, the ideal group delay response of the ideal signal response, and the derivative of the amplitude-frequency response; give the filter coefficients, and determine the signal cost function value according to the filter coefficients; and determine the signal cost function value according to the signal cost function corresponding to the filter coefficients. value, the previous signal cost function value, the probability adjustment parameter, and the probability influencing factor to determine the acceptance probability; if the signal cost function value is smaller than the previous signal cost function value, or the acceptance probability meets the preset probability condition, determine to accept the filter coefficient and accept the signal cost function value corresponding to the filter coefficient; otherwise, refuse to accept the filter coefficient and the signal cost function value corresponding to the filter coefficient; update the filter coefficient and the signal cost function value, and obtain the final filter coefficient when the filter coefficient meets the iteration termination condition; compensate the signal to be compensated according to the final filter coefficient, which solves the signal compensation problem in the communication system, can stably compensate the signal, avoid signal distortion, and ensure the performance of the communication system.
[0083] Figure 2b FIG. 1 is a flow chart of another signal compensation method provided according to Embodiment 2 of the present invention. Figure 2bAs shown, a specific application process of an embodiment of the present invention may be: according to the phase characteristic of the signal to be compensated, determine the ideal phase-frequency response of the ideal signal response; according to the group delay characteristic of the signal to be compensated, determine the ideal group delay response of the rational signal response; according to the signal to be compensated, determine the amplitude-frequency response derivative of the ideal signal response; perform parameter initialization, set the initial probability influence factor P0, set the probability influence factor attenuation ratio a, set the number of iterations L under each probability influence factor, set the probability influence factor threshold, set the probability adjustment coefficient m, randomly generate the filter coefficient X, set the preset signal cost function threshold, and set the preset probability influence factor threshold. According to the phase characteristic of the signal to be compensated, the ideal phase-frequency response of the ideal signal response, and the amplitude-frequency response derivative, determine the first signal cost function; according to the group delay characteristic of the signal to be compensated, the ideal group delay response of the ideal signal response, and the amplitude-frequency response derivative, determine the second signal cost function.
[0084] Given the filter coefficient, determine the signal cost function value based on the filter coefficient; determine whether the current probability influence factor is lower than the preset probability influence factor threshold; or, whether the signal cost function value is lower than the preset signal cost function threshold; if yes, output the filter coefficient; if not, determine whether the current number of iterations i is less than L.
[0085] If i is greater than or equal to L, then update the probability influence factor P = a × P0 and the number of iterations i = 0; and return the judgment probability influence factor and the signal cost function value. If i is less than L, generate a new solution X(i) in the neighborhood of X, calculate the signal cost function value F(i) corresponding to the solution; judge whether F(i) is less than F; if F(i) is less than F, set X = X(i), F = F(i), i = i + 1, and return to judge whether the current number of iterations i is less than L. If F(i) is greater than or equal to F, determine the acceptance probability, and judge whether the acceptance probability meets the preset probability condition.
[0086] If the acceptance probability meets the preset probability condition, then let X=X(i), F=F(i), i=i+1, and return to determine whether the current iteration number i is less than L. Otherwise, directly return to determine whether the current iteration number i is less than L.
[0087] After the above process, the optimal filter coefficient can be obtained. After the optimal filter coefficient is used to compensate the signal to be compensated, the group delay characteristics of the signal to be compensated are better, the fluctuation is smaller, and the phase tends to be linear. In addition, the amplitude-frequency response of the filter tends to be good, and it will not have a significant impact on the amplitude-frequency characteristics of the original signal. In addition, the constraint conditions on the amplitude-frequency response can be adjusted by adjusting k. If you are sensitive to the amplitude-frequency response, you can increase the k value. In summary, the method provided in the embodiment of the present invention is an effective method for compensating for phase and group delay.
[0088] In the technical solutions of the embodiments of the present invention, the acquisition, storage and application of the signals involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0089] Embodiment 3
[0090] Figure 3 is a schematic diagram of the structure of a signal compensation device provided according to Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a signal cost function determination module 310, a signal cost function value determination module 320, an acceptance result determination module 330, a filter final coefficient determination module 340, and a signal compensation module 350. Among them:
[0091] The signal cost function determination module 310 is used to determine the ideal signal response according to the signal to be compensated and the response characteristics of the signal to be compensated; and determine the signal cost function according to the ideal signal response;
[0092] A signal cost function value determination module 320, for determining a signal cost function value based on a given filter coefficient;
[0093] An acceptance result determination module 330, for determining an acceptance result of a filter coefficient according to a signal cost function value and an acceptance probability corresponding to the filter coefficient;
[0094] The filter final coefficient determination module 340 is used to update the filter coefficient and the signal cost function value according to the acceptance result, and obtain the filter final coefficient when the filter coefficient meets the iteration termination condition;
[0095] The signal compensation module 350 is used to compensate the signal to be compensated according to the final coefficient of the filter.
[0096] Optionally, the signal cost function determination module 310 includes:
[0097] An amplitude-frequency response derivative determination unit, used to determine the amplitude-frequency response derivative of an ideal signal response according to a signal to be compensated;
[0098] The ideal signal response determination unit is used to determine the ideal phase-frequency response of the ideal signal response according to the phase characteristics of the signal to be compensated; and / or determine the ideal group delay response of the ideal signal response according to the group delay characteristics of the signal to be compensated.
[0099] Optionally, the signal cost function determination module 310 includes:
[0100] A first signal cost function determining unit, configured to determine a first signal cost function according to a phase characteristic of a signal to be compensated, an ideal phase-frequency response of an ideal signal response, and an amplitude-frequency response derivative; and / or,
[0101] The second signal cost function determination unit is used to determine the second signal cost function according to the group delay characteristic of the signal to be compensated, the ideal group delay response of the ideal signal response, and the amplitude-frequency response derivative.
[0102] Optionally, the acceptance result determination module 330 is specifically configured to:
[0103] If the signal cost function value is smaller than the previous signal cost function value, or the acceptance probability satisfies the preset probability condition, determine to accept the filter coefficient, and accept the signal cost function value corresponding to the filter coefficient;
[0104] Otherwise, the filter coefficients and the signal cost function values corresponding to the filter coefficients are rejected.
[0105] Optionally, the device further includes:
[0106] The acceptance probability determination module is used to determine the acceptance probability based on the signal cost function value corresponding to the filter coefficient, the previous signal cost function value, the probability adjustment parameter, and the probability influencing factor before determining the acceptance result of the filter coefficient based on the signal cost function value and the acceptance probability corresponding to the filter coefficient.
[0107] Optionally, the acceptance probability satisfies a preset probability condition, including: the acceptance probability is greater than a preset probability threshold; or, the acceptance probability is greater than a probability value randomly selected within an open interval (0,1).
[0108] Optionally, the filter coefficient satisfies the iteration termination condition, including: the signal cost function value corresponding to the filter coefficient is less than a preset signal cost function threshold; or, the probability influence factor used by the filter coefficient during iteration is less than a preset probability influence factor threshold.
[0109] The signal compensation device provided in the embodiment of the present invention can execute the signal compensation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0110] Embodiment 4
[0111] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0112] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0113] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0114] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a signal compensation method.
[0115] In some embodiments, the signal compensation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the signal compensation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the signal compensation method in any other appropriate manner (e.g., by means of firmware).
[0116] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0117] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0118] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0119] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0120] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0121] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0122] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0123] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A signal compensation method, characterized in that: The method comprises: Determine an ideal signal response according to a signal to be compensated and a response characteristic of the signal to be compensated; and determine a signal cost function according to the ideal signal response; Given a filter coefficient, and determining a signal cost function value according to the filter coefficient; Determining an acceptance result of the filter coefficient according to the signal cost function value and an acceptance probability corresponding to the filter coefficient; According to the acceptance result, the filter coefficient and the signal cost function value are updated, and when the filter coefficient meets the iteration termination condition, the final filter coefficient is obtained; Compensating the signal to be compensated according to the final coefficient of the filter; Before determining the acceptance result of the filter coefficient according to the signal cost function value and the acceptance probability corresponding to the filter coefficient, the method further includes: Determine the acceptance probability; wherein F(i) is the signal cost function value corresponding to the filter coefficient X(i), F is the previous signal cost function value, m is the probability adjustment parameter, and P is the probability influence factor; According to the signal cost function value and the acceptance probability corresponding to the filter coefficient, the acceptance result of the filter coefficient is determined, including: when the acceptance probability satisfies P_accept>random(0,1), the acceptance probability satisfies the preset probability condition, the acceptance filter coefficient is determined, and the signal cost function value corresponding to the filter coefficient is accepted; wherein random(0,1) represents a probability value randomly selected within the open interval (0,1).
2. The method according to claim 1, characterized in that: Determining an ideal signal response according to a signal to be compensated and a response characteristic of the signal to be compensated includes: Determining the amplitude-frequency response derivative of the ideal signal response according to the signal to be compensated; According to the phase characteristic of the signal to be compensated, an ideal phase-frequency response of an ideal signal response is determined; and / or, according to the group delay characteristic of the signal to be compensated, an ideal group delay response of a rational signal response is determined.
3. The method according to claim 2, characterized in that Determining a signal cost function according to the ideal signal response includes: Determining a first signal cost function according to the phase characteristic of the signal to be compensated, the ideal phase-frequency response of the ideal signal response, and the amplitude-frequency response derivative; and / or, A second signal cost function is determined according to the group delay characteristic of the signal to be compensated, the ideal group delay response of the ideal signal response, and the amplitude-frequency response derivative.
4. The method according to claim 3, characterized in that Determining the acceptance result of the filter coefficient according to the signal cost function value and the acceptance probability corresponding to the filter coefficient includes: If the signal cost function value is smaller than the previous signal cost function value, determine to accept the filter coefficient, and accept the signal cost function value corresponding to the filter coefficient; Otherwise, the filter coefficient and the signal cost function value corresponding to the filter coefficient are rejected.
5. The method according to claim 1, characterized in that The filter coefficients satisfy the iteration termination condition, including: The signal cost function value corresponding to the filter coefficient is less than a preset signal cost function threshold; or, the probability influence factor used by the filter coefficient during iteration is less than a preset probability influence factor threshold.
6. A signal compensation device, characterized in that: include: A signal cost function determination module, used to determine an ideal signal response according to a signal to be compensated and a response characteristic of the signal to be compensated; and determining a signal cost function according to the ideal signal response; A signal cost function value determination module, used for given filter coefficients and determining a signal cost function value according to the filter coefficients; an acceptance result determination module, used to determine the acceptance result of the filter coefficient according to the signal cost function value and the acceptance probability corresponding to the filter coefficient; A filter final coefficient determination module, used to update the filter coefficient and the signal cost function value according to the acceptance result, and obtain the filter final coefficient when the filter coefficient meets the iteration termination condition; A signal compensation module, used for compensating the signal to be compensated according to the final coefficient of the filter; The device further includes: an acceptance probability determination module for determining the acceptance result of the filter coefficient according to the signal cost function value and the acceptance probability corresponding to the filter coefficient, and further includes: Determine the acceptance probability; wherein F(i) is the signal cost function value corresponding to the filter coefficient X(i), F is the previous signal cost function value, m is the probability adjustment parameter, and P is the probability influence factor; The acceptance result determination module is specifically used for: when the acceptance probability satisfies P_accept>random(0,1), the acceptance probability satisfies the preset probability condition, determines the acceptance filter coefficient, and accepts the signal cost function value corresponding to the filter coefficient; wherein random(0,1) represents a probability value randomly selected within the open interval (0,1).
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the signal compensation method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the signal compensation method according to any one of claims 1 to 5 when executed.
