1 Introduction

Digital image processing applications are indicated in many areas of the present world [8, 24] such as medicine (e.g., microscopes [21], digital mammography [7], X-ray computed tomography [28]), automotive applications (e.g., license plate recognition[4], dimensional verification of crankshafts [15], detection of objects [29]), geo engineering (maps classification [2], detection of Earth’s surface features changes[34]), industrial applications (package inspection [17], sorting [6], quality inspection[36]).

The filtering technique is a part of the normal image enhancement process. It helps in solving problems of the image display [10] and, additionally, enables the improvement of image quality. The problems that always happened in images are illumination, noise, and under-light images [20]. Hence, one of the challenges is to remove noise from images [16, 32]. Therefore, there is a need to develop a sample converter that works as a low-pass filter to remove the noise from images at low power consumption [13, 26].

A low-pass filter is used to avoid aliasing in the linear time-invariant (LTI) system [22, 38]. In the past, the Cascaded Integrator Comb finite impulse response (CIC FIR) filter was employed as a low-pass filter. However, the sample rate converter using the CIC filter has limitations in supporting only narrowband signals and thus cannot be used for large bandwidth signals [11, 18, 19]. A multiply-accumulator (MAC) architecture-based sample rate converter is an efficient solution for large bandwidth signals, but it requires additional resources such as registers and flip-flops which lead to an increase in power consumption [14, 25, 31].

To optimize the sample rate converter in terms of acceptable power consumption, we have developed a model named Cascaded Multiple Accumulate Finite-Impulse Response (CMFIR) filter-based sample rate converters [12]. The CMFIR filter is the combination of CIC FIR and MAC FIR filters incorporating promising features of both filters [35].

To reduce the power consumption of the sample rate converter, we apply the multi-objective genetic algorithm on coefficients of the CMFIR filter. The power consumption of the multichannel sample rate converter is reduced by minimizing the hamming distance between the successive coefficients of the CMFIR filter. Eventually, we have developed a multichannel up sample rate converter, where time-division multiplexing is used to increase the number of channels. The number of channels is selected based on the intensity level of the light via artificial intelligence [35].

Then the comparison between CMFIR architecture-based up converter with genetic algorithm application and CIC Filter, MAC Filter, and CMFIR architecture-based up converter without genetic algorithm was realized in point of static power consumption efficiency, dynamic power consumption efficiency, total power consumption efficiency, register utilization efficiency, LUT utilization efficiency, LUT-flip flop pairs utilization efficiency. Additionally, the comparison with results of the literature position was realized concerning total power and device utilization like LUT, flip flop, and slice LUT-flip flop pairs.

The article is organized as follows: Sect. 2 presents the background for the proposed solution in the article. Section 3 shows the efficiency of the proposed CMFIR structure. Section 4 is a discussion of the proposed structure to other literature propositions. Section 5 concludes and indicates possible appliances.

2 Methods

2.1 Mathematical Modeling of the FIR Filter

  1. 1.

    As recorded from the synthesis report following simulation of the proposed model, the time required to produce the output was approximately equal to 3.259 ns, including 2.923 ns was the logical delay, and 0.336 ns was for the routing delay. We set the number of iterations (N) in the genetic algorithm as10.

  2. 2.

    Ripple in the passband was 0.01, the corresponding value of the passband angular frequency \({\text{w}}_{{\text{p}}}\) was \(0.18\pi\).

  3. 3.

    Ripple in the stopband was 0.01, the corresponding value of stopband angular frequency \({\text{w}}_{{\text{s}}}\) was 0.22 \({\uppi }\) 7 [23].

The fitness function for the genetic algorithm is given by:

$$ U\left( x \right) = \frac{1}{f\left( x \right)} + \mu \left( {{\text{SNZ}}} \right), $$
(1)

\(U\left( x \right)\) = Fitness Function. \(f\left( x \right)\) = Initially generated filter coefficient using Kaiser window techniques. \({\text{SNZ}}\) = Sum of non-zero. \(M\) = Transition Bandwidth Constant.

Transition bandwidth is given by:

$$ w_{s} - w_{p} = 2*\pi \left( {f_{s} - f_{p} } \right) = 2*\pi *\delta f = 2*\pi *\left( {\frac{\mu }{N}} \right), $$
(2)

where \(N\) = Number of the iteration, \(f_{s}\) = Stop band frequency, \(f_{p}\) = Pass band frequency, \(w_{s}\) = Stop band angular frequency, \(w_{p}\) = Pass band angular frequency.

The transition bandwidth of design is: \(0.04*\pi\)

$$ 0.04*\pi = 2*\pi *\left( {\frac{\mu }{10}} \right), $$
(3)

By solving Eq. 3, we get the value of \(\mu\) to be 0.2 [23].

2.2 Genetic Algorithm

A genetic algorithm is applied to the coefficient of the filter to reduce the hamming distance. The basic steps of genetic algorithm implementation are described in Fig. 1 [27].

  1. 1.

    Evaluate the fitness function: The fitness function is defined over the genetic representation and measures the quality of the generated coefficient. The fitness function here is used to generate the filter coefficients to meet the requirement. In the current research problem, the fitness function for the genetic algorithm is given by:

    $$ U\left( x \right) = \frac{1}{f\left( x \right)} + \mu \left( {{\text{SNZ}}} \right), $$
    (4)
  2. 2.

    Selection: During every consecutive generation of the filter coefficients, a proportion of the existing coefficients is selected to generate the class of new coefficients.

  3. 3.

    Crossover: By applying the mathematical operation on the existing generation of coefficients, the next generation of coefficients is achieved.

  4. 4.

    Mutation: With the help of mutation, we ensure that the new coefficient is not similar to the parent coefficient [27].

Fig. 1
figure 1

Genetic algorithm flow chart

2.3 Analysis in Light of Artificial Intelligence

The intensity of fog can be predicted based on various learning rules [1, 30, 33]. Initially, a study of the fog intensities over a certain period of time has to be carried out. Afterward, the regular, irregular, seasonal and cyclic variations of data at the location of interest need to be carefully analyzed for generating a particular mathematical model. The curve fitting can also be applied in this perspective, and a polynomial of the degree of n will be generated. Exponential growth models can also be sensed in order to find out a relation between the fog intensity level and the corresponding time instant. The mathematical representation is as follows:

$$ I_{F.t} = a e^{t} , $$
(5)

where \(I_{F.t}\) = fog intensity level at t time, \(a\) = amplitude of fog noise.

Let the timing interval of observation be t1, t2,t3, t4, and it is in equivalent nature.

$$ I_{F.t1} = a e^{t1} , I_{F.t2} = a e^{t2} , $$
(6)

In the case of mid-interval pattern analysis is given by:

$$ I_{{F.\frac{t1 + t2}{2}}} = a e^{{\frac{t1 + t2}{2}}} , $$
(7)
$$ I_{{F.\frac{t1 + t2}{2}}} = [a^{2} e^{t1 + t2} ]^{\frac{1}{2}} , $$
(8)
$$ I_{{F.\frac{t1 + t2}{2}}} = \left[ {a e^{t1 } . a e^{t2} } \right]^{\frac{1}{2}} , $$
(9)
$$ I_{{F.\frac{t1 + t2}{2}}} = \left[ {I_{F,t1} .I_{F,t2} } \right]^{\frac{1}{2}} , $$
(10)

2.4 Power Utilization

When FIR is implemented on FPGA, the design on FPGA is developed by the interconnection of various gate arrays. The gates are implemented by CMOS transistor. By reducing the hamming distance of successive coefficients of CMFIR filter, it reduces the switching of CMOS transistor for the transition from 0 to 1 or 1 to 0 without affecting the frequency response of a multichannel fractional sample rate convertor. Thus, the power utilization of a multichannel fractional sample rate converter is reduced. The total power utilization is given by [9]:

$$ P_{T} = P_{{{\text{static}}}} + P_{{{\text{dynamic}}}} , $$
(11)
$$ P_{{{\text{dynamic}}}} = P_{t} + P_{c} , $$
(12)
$$ P_{t} = C_{dp} * V_{ss}^{2} * f_{i} *B_{t} , $$
(13)
$$ P_{c} = C_{l} * V_{ss}^{2} * f_{o} *B_{t} , $$
(14)

where \(P_{T}\) = Total power used by CMOS transistor, \(P_{{{\text{static}}}}\) = Static power, \(P_{{{\text{dynamic}}}}\) = Dynamic power, \(P_{t}\) = Power consume in Transient Response of capacitance, \(P_{c}\) = Power consume by Capacitive load, \(C_{dp}\) = Dynamic power dissipation in capacitance, \(B_{t}\) = Number of bits changes from 0 to 1 or 1 to 0 of consecutive CMFIR filter coefficient, \(f_{i}\) = Input signal frequency, \(f_{o}\) = Output signal frequency [9, 37].

2.5 Objective

  • To design & optimize a suitable CM FIR filter using CIC and MAC Unit for removing the remove the noise from the digital image.

  • Increase power efficiency and resource utilization efficiency.

2.6 Work Flow

(Fig. 2).

Fig. 2
figure 2

Workflow chart

3 Result

In this section, the comparison between the proposed CMFIR architecture-based up converter with genetic algorithm application and:

  • CMFIR Filter without genetic algorithm application,

  • CIC Filter,

  • MAC Filter.

Firstly, the comparison between CMFIR Filter with and without genetic algorithm is realized in the basement of the hamming distance between coefficients. Results are indicated in Table 1. The results show that the total Hamming distance for CMFIR filter before application of GA (genetic algorithm) is equal to 77 and after it is equal to 50. Therefore, the application of GA (genetic algorithm) enables the reduction of the hamming distance by 27.

Table 1 Hamming distance between the coefficients of CMFIR filter with and without genetic algorithm

Then the comparison between CMFIR architecture-based up converter with genetic algorithm application and CIC Filter, MAC Filter, and CMFIR architecture-based up converter without genetic algorithm was realized in point of:

  • Static power consumption efficiency, Dynamic power consumption efficiency, Total power consumption efficiency:

    $$ {\text{Power efficiency}} = \left( {\frac{{P_{{{\text{old}}}} - P_{{{\text{new}}}} }}{{P_{{{\text{old}}}} }}} \right) \times 100 $$
    • Where \(P_{{{\text{old}}}}\) is the power consumed by the old or existing model

    • Where \(P_{{{\text{new}}}}\) is the power consumed by the new or proposed model

    • Power efficiency is more means system is power consumption decreases.

  • Register utilization efficiency, LUT Utilization efficiency, LUT-flip flop pairs utilization efficiency:

    $$ {\text{Resource utilization efficiency}} = \left( {\frac{{R_{{{\text{old}}}} - R_{{{\text{new}}}} }}{{R_{{{\text{old}}}} }}} \right) \times 100 $$
    • Where \(R_{{{\text{old}}}}\) is resource utilization by the old or existing model.

    • Where \(R_{{{\text{new}}}}\) is resource utilization by the new or proposed model.

    • Resource utilization efficiency is more means resource utilization decreases.

Figure 3 and Table 2 present the efficiency CMFIR architecture-based up converter with genetic algorithm application versus CIC Filter, MAC Filter, and CMFIR architecture-based up converter without genetic algorithm in point of static power consumption.

Fig. 3
figure 3

Static power consumption efficiency graph with respect to other structures

Table 2 Static power efficiency of CMFIR architecture-based up converter with genetic algorithm with respect to other up converters

Figure 4 and Table 3 present the efficiency of CMFIR architecture-based up converter with genetic algorithm application versus CIC Filter, MAC Filter, and CMFIR architecture-based up converter without genetic algorithm in point of dynamic power consumption.

Fig. 4
figure 4

Dynamic power consumption efficiency graph with respect to other structures

Table 3 Dynamic power efficiency of CMFIR architecture-based up converter with genetic algorithm with respect to other up converters

Figure 5 and Table 4 present the efficiency of CMFIR architecture-based up converter with genetic algorithm application versus CIC Filter, MAC Filter, and CMFIR architecture-based up converter without genetic algorithm in point of total power consumption.

Fig. 5
figure 5

Total power consumption efficiency graph with respect to other structures

Table 4 Total power efficiency of CMFIR architecture-based up converter with genetic algorithm with respect to other up converters

Figure 6 and Table 5 present the efficiency of CMFIR architecture-based up converter with genetic algorithm application versus CIC Filter, MAC Filter, and CMFIR architecture-based up converter without genetic algorithm in point of for register utilization.

Fig. 6
figure 6

Register utilization efficiency graph with respect to other structures

Table 5 Efficiency table of register utilization of CMFIR architecture-based up converter with genetic algorithm with respect to other up converters

Figure 7 and Table 6 present the efficiency of CMFIR architecture-based up converter with genetic algorithm application versus CIC Filter, MAC Filter, and CMFIR architecture-based up converter without genetic algorithm in point of LUT utilization.

Fig. 7
figure 7

LUT utilization efficiency graph with respect to other structures

Table 6 Efficiency table of LUT utilization of CMFIR architecture-based up converter with genetic algorithm with respect to other up converters

Figure 8 and Table 7 presents the efficiency of CMFIR architecture-based up converter with genetic algorithm application versus CIC Filter, MAC Filter, and CMFIR architecture-based up converter without genetic algorithm in point of LUT – flip flop pairs utilization.

Fig. 8
figure 8

LUT-flip flop pairs utilization efficiency graph with respect to other structures

Table 7 Efficiency table of LUT-flip flop pairs utilization of CMFIR architecture-based up converter with genetic algorithm with respect to other up converters

4 Discussion

With an applied genetic algorithm model to the CMFIR approach, the overall hamming distance is reduced by 27. The multichannel CMFIR-based converter efficiency has been also improved in terms of power & resource utilization. More specifically, the following observations are made:

  • The multichannel system efficiency in terms of the average total power reduction is 89.40%, the average dynamic power reduction is 53.96, and the average static power reduction is 95.26% with respect to the MAC-based architectures;

  • The multichannel system efficiency in terms of the average total power reduction is 42.43%, the average dynamic power reduction is 40.47%, and the average static power reduction is 47.93% with respect to the CIC-based architectures;

  • The multichannel system efficiency in terms of the average total power reduction is 15.75%, the average dynamic power reduction is 22.05%, and the average static power reduction is 8.01% with respect to the CMFIR without genetic algorithm-based architectures.

The additional comparison of the obtained results in point of other researches [3, 5] was conducted. The comparison was realized with regard to total power. The results are presented in Table 8. The total power consumption was at least half less than in other studies. Additionally, the deep comparison was realized to [5] with regard to device utilization like LUT, flip flop, and slice LUT-flip flop pairs. The results are presented in Table 9. The obtained results are satisfying, and there is a decrease of at least 17% for each parameter.

Table 8 Comparison in point of total power between literature results and the proposed solution
Table 9 Comparison in point of device utilization between literature results and the proposed solution

5 Conclusions

This article proposes the Cascaded Multiple Accumulate Finite Impulse Response (CMFIR) filter-based sample rate converters. The CMFIR filter is the combination of CIC FIR and MAC FIR filters incorporating promising features of both filters. Investigation indicated that the proposed CMFIR solution ensures higher static power consumption efficiency, dynamic power consumption efficiency, total power consumption efficiency, register utilization efficiency, LUT utilization efficiency, LUT-flip flop pairs utilization efficiency than MAC and CIC structure. Additionally, the proposed application of the genetic algorithm to the CMFIR filter provides even better results. The proposed CMFIR filter may respond to the challenge of removing noise from images at low power consumption. Thus, in future, the CMFIR filter can be included as a part of the anti-fog driver assistance system. This application is a direction for future research of the authors.