Image coding method and device based on spiking neural network

Through the image coding method based on impulse neural network, the problems of low efficiency and poor adaptability of traditional methods in processing complex image data are solved, and high-quality image coding and continuity processing are achieved.

CN118612441AInactive Publication Date: 2024-09-06SHENZHEN HUINAO ZHIXIN TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410583770.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional image coding methods have problems such as low coding efficiency, sensitivity to noise, and difficulty in adapting to the processing of continuous image frames when processing complex image data, resulting in information loss or distortion.

Method used

The image coding method based on spiking neural network is adopted to optimize the image coding process through color space conversion, noise removal, multi-layer spiking neurons, inter-layer feedback connections, time window encoding strategy and time-dependent weight update strategy.

Benefits of technology

It improves the efficiency and quality of image coding, enhances the understanding and utilization of high-level semantic information, and ensures accurate processing and high-quality coding of consecutive image frames.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612441A
    Figure CN118612441A
Patent Text Reader

Abstract

The invention relates to the technical field of image coding, in particular to an image coding method and device based on a pulse neural network, and the method comprises the following steps: carrying out the color space conversion and noise removal of an input original image; the preprocessed image is sent to a spiking neural network, the spiking neural network is configured with multiple layers of spiking neurons, and each layer of neurons responds to different features of the image; adding interlayer feedback connection in the spiking neural network; capturing important events in the sequence of images using a time window coding strategy; a weight updating strategy based on time dependence is introduced, and the coding effect of continuous frames is optimized; encoding a pulse sequence output by the pulse neural network to generate final image encoding data; according to the method and the device, the continuous image frames can be processed more accurately by the network, and the generated pulse sequence can represent essential information of the image, so that the continuity and the quality of image coding are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image coding technology, and in particular to an image coding method and device based on a pulse neural network. Background Art

[0002] With the continuous development of image processing and coding technology, traditional image coding methods have some limitations when processing complex image data, such as low coding efficiency, sensitivity to noise, and difficulty in adapting to the processing of continuous image frames. In order to overcome these problems, image coding methods based on pulse neural networks came into being.

[0003] The spiking neural network is an artificial neural network model that simulates the pulse transmission process between biological neurons and has strong parallel processing capabilities and adaptability. Compared with traditional neural network models, spiking neural networks can better process time series data and have higher fault tolerance and robustness. In the field of image coding, the application of spiking neural networks has brought new ideas and methods to image coding.

[0004] Traditional image coding methods often have high requirements on the quality of input images and are more sensitive to noise and color distortion. This leads to high requirements on image quality in practical applications and makes it easy to have information loss or distortion when processing complex image data.

[0005] Secondly, traditional image coding methods can often only encode static features of images and are difficult to adapt to dynamically changing image data, especially when processing continuous image frames.

[0006] In summary, traditional image coding methods suffer from quality loss and poor adaptability when processing complex image data. Summary of the invention

[0007] Based on the above objectives, the present invention provides an image encoding method and device based on a pulse neural network.

[0008] The image encoding method based on pulse neural network includes the following steps:

[0009] S1: Perform color space conversion and noise removal on the input original image;

[0010] S2: sending the preprocessed image to a spiking neural network, where the spiking neural network is configured with multiple layers of spiking neurons, each layer of neurons responding to different features of the image;

[0011] S3: Add inter-layer feedback connections in the spiking neural network so that the processing results of the high-level layers are fed back to the low-level layers to adjust the processing strategies of the low-level layers. This feedback mechanism can not only improve the extraction efficiency of low-level features, but also enhance the understanding and utilization of high-level semantic information by the entire network, thereby improving the accuracy and efficiency of image coding.

[0012] S4: Use a temporal window encoding strategy to capture important events in image sequences;

[0013] S5: Introducing a weight update strategy based on time dependency, allowing the spiking neural network to adjust the weight of the current frame according to the processing result of the previous frame when processing consecutive image frames, and utilizing the temporal coherence between video sequences to optimize the encoding effect of consecutive frames;

[0014] S6: Encode the pulse sequence output by the pulse neural network to generate final image encoding data;

[0015] S7: storing or transmitting the encoded image data to a destination for subsequent decoding and display processing.

[0016] Further, the color space conversion includes converting the original image from its original color space to a predetermined color space to optimize the image processing efficiency and feature response sensitivity of the subsequent spiking neural network;

[0017] The noise removal includes an adaptive filtering technology based on image content, which automatically adjusts the filtering strength according to the local feature density of the image, removes random noise in the image while retaining detail features, and ensures image clarity and accuracy of feature recognition.

[0018] Furthermore, the multi-layer spiking neurons in S2 include: a first layer of spiking neurons for identifying image edge features; a middle layer of spiking neurons for analyzing image attributes; and a top layer of spiking neurons for image scene understanding.

[0019] Furthermore, in S3, an inter-layer feedback connection is added to the spiking neural network, and the processing result of the high layer is fed back to the low layer through the inter-layer feedback connection to adjust the processing strategy of the low layer, which specifically includes:

[0020] S31: Establish feedback paths between multiple layers of the spiking neural network so that the output of each high-level layer is not only transmitted to the previous layer, but also transmitted downward to all lower layers;

[0021] S32: Dynamically adjust the weights and activation thresholds of the lower-layer neurons based on the information fed back from the upper layers, so that the lower-layer neurons can reflect the high-level features and semantic information recognized by the upper layers when processing image data;

[0022] S33: Utilize the results of high-level feedback to optimize low-level feature extraction and image processing strategies, improve the ability to capture image details and understand the overall image content.

[0023] Furthermore, the inter-layer feedback connection also includes data transmission calculation: in each training cycle, the feedback strength from the high layer to the low layer is adjusted by the proportional coefficient β, and the proportional coefficient β is dynamically adjusted based on the performance evaluation of the high layer in the task, expressed as:

[0024] Feedback strength = β × high-level output; the input received by the lower layer includes not only the normal feedforward input from the previous layer, but also the high-level feedback adjusted by the proportional coefficient. The updated input is calculated as: Update input = feedforward input + feedback strength;

[0025] The dynamic adjustment of the weights and activation thresholds of the low-level neurons includes weight adjustment and activation threshold adjustment. The weight adjustment is based on the feedback result. The weight adjustment of each neuron is performed using the gradient descent method. If the feedback indicates that the importance of a feature increases, the corresponding weight increases:

[0026] w 新 =w 旧 +η×Δw, where η is the learning rate and Δw is the weight change calculated based on error backpropagation and feedback adjustment; the activation threshold adjustment is also adjusted based on feedback to optimize the network's response.

[0027] Furthermore, the S4 specifically includes:

[0028] S41, time window setting: set a time window for each layer in the spiking neural network, which defines the time range of the neuron's response to the input signal, so that the network responds according to the time of occurrence of the event;

[0029] S42, event detection and neuron activation: within a predetermined time window, when the image sequence shows significant changes, including motion detection changes and illumination changes, the neurons of the corresponding layer will be activated, and the activation of the neurons is based on the sensitivity to local or global changes in the input image;

[0030] S43, dynamic time window adjustment: the size of the time window is automatically adjusted according to the importance and frequency of events in consecutive image frames. Neuronal activity caused by important events will extend the time window to maintain a continuous response to the event, while unimportant event changes will shorten the time window or not trigger a response.

[0031] Furthermore, the weight update strategy based on time dependency in S5 includes:

[0032] After processing each frame, evaluate the output performance of the spiking neural network, including the recognition and encoding quality of events, to determine the network layers or neurons that need to be optimized;

[0033] According to the output performance evaluation results of the previous frame, the weights of neurons are automatically adjusted. If the event of the previous frame is successfully captured and accurately encoded, the weights of related neurons are increased; if the event is not captured or encoded accurately, the weights are reduced.

[0034] Using temporal coherence, between consecutive frames, the weights of neurons in the current frame are dynamically adjusted based on the temporal coherence of the image content and the adjustment results of the weights of the previous frame, including the weights of features or sudden events that appear continuously in the image, to ensure continuity and accurate expression of events;

[0035] The updated weights are applied to encode consecutive image frames to optimize the encoded output of the image sequence.

[0036] Furthermore, the use of time continuity specifically includes:

[0037] Feature extraction: Extract features from each frame of the image, including edges, colors, and textures;

[0038] Feature comparison: Calculate feature similarity between consecutive frames: Among them, A and B are the feature vectors in consecutive frames, and S is the cosine similarity between them;

[0039] Weight adjustment: adjust the weight of the corresponding neuron according to the feature similarity result to reflect the temporal coherence between consecutive frames; weight adjustment formula: w 新 =w 旧 +η·(1-S)·Δw, where w 旧 is the original weight, η is the learning rate, S is the similarity, and Δw is the weight change based on feature similarity adjustment, which is used to enhance or weaken the influence of specific features.

[0040] Coding Optimization: Apply adjusted weights for image encoding to improve coding efficiency and quality.

[0041] Furthermore, the S6 specifically includes:

[0042] The spike trains fired by neurons activated by the time window strategy are converted into time-coded data, wherein the firing time and duration of each spike train are encoded as data representing the characteristics of image events;

[0043] The time-encoded pulse sequence is further processed to form final image encoding data for storage or transmission;

[0044] The pulse compression algorithm is used to compress the pulse sequence after time coding, and the compression is optimized according to the importance and information content of the pulse, so as to reduce the volume of the coded data while retaining the key image information;

[0045] The compressed pulse train is converted into a storage data format using a binary format to represent the timestamp and intensity level of each pulse.

[0046] An image coding device based on a pulse neural network, used to implement the above-mentioned image coding method based on a pulse neural network, comprises:

[0047] Preprocessing module: responsible for preprocessing the input original image, including color space conversion and noise removal. Color space conversion converts the image from the original color space to the predetermined color space to optimize the efficiency of subsequent processing and feature response sensitivity. Noise removal adopts adaptive filtering technology based on image content, automatically adjusts the filtering intensity according to the local feature density of the image, removes random noise in the image while retaining detail features;

[0048] Spiking neural network module: including the configuration of multi-layer spiking neurons and the establishment of inter-layer feedback connections. Multi-layer spiking neurons respond to different features of the image, identify image edge features, analyze image attributes, and understand image scenes. Inter-layer feedback connections enable the processing results of the high-level layers to be fed back to the low-level layers, dynamically adjusting the processing strategies of the low-level layers.

[0049] Time window encoding module: captures important events in the image sequence. By setting the time window, the time range of the neuron's response to the input signal is defined, so that the network can respond according to the time of the event. Within the predetermined time window, the event showing changes in the image sequence is detected and the neuron is activated. The size of the time window is dynamically adjusted to adapt to the importance and frequency of events in consecutive image frames, so as to maintain continuous response to events.

[0050] Weight update module: introduces a weight update strategy based on time dependency, allowing the spiking neural network to adjust the weight of the current frame according to the processing result of the previous frame when processing consecutive image frames, optimize the encoding effect by using the temporal coherence between image sequences, and automatically adjust the weight of the neuron according to the output performance evaluation result of the previous frame, dynamically optimizing the response of the neural network;

[0051] Coding output module: encodes the pulse sequence output by the pulse neural network to generate the final image coding data, time-codes the pulse sequence emitted by the neurons activated by the time window strategy, converts it into data representing the characteristics of the image event, and compresses the time-coded pulse sequence using the pulse compression algorithm;

[0052] Storage and transmission module: responsible for storing or transmitting the encoded image data to the destination for subsequent decoding and display processing.

[0053] Beneficial effects of the present invention:

[0054] The present invention performs preprocessing such as color space conversion and noise removal on the input image, so that the pulse neural network can work on clear and standardized image input, reduces errors in network processing, improves the accuracy of feature extraction, and further enhances the efficiency and quality of image coding.

[0055] The present invention, after introducing the inter-layer feedback connection, the pulse neural network can dynamically adjust the lower layer according to the high-level processing results, optimize the feature extraction strategy, thereby enhancing the network's adaptability. This feedback mechanism not only improves the extraction efficiency of low-level features, but also enhances the network's understanding and utilization of high-level semantic information, thereby improving the accuracy and efficiency of image coding.

[0056] The present invention, through the time window coding strategy and the weight updating strategy based on time dependence, the pulse neural network can dynamically adjust the activation threshold and weight of neurons according to important events and time coherence in the image sequence, and optimize the coding effect of continuous frames. Such an optimization strategy ensures that the network processes continuous image frames more accurately, and the generated pulse sequence can better represent the essential information of the image, thereby improving the continuity and quality of image coding. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 A schematic diagram of a coding method flow chart of an embodiment of the present invention;

[0059] Figure 2 Schematic diagram of various modules of the encoding device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0060] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0061] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0062] like Figure 1 As shown, the image encoding method based on the pulse neural network includes the following steps:

[0063] S1: Perform color space conversion and noise removal on the input original image;

[0064] S2: sending the preprocessed image to a spiking neural network, where the spiking neural network is configured with multiple layers of spiking neurons, each layer of neurons responding to different features of the image;

[0065] S3: Add inter-layer feedback connections in the spiking neural network so that the processing results of the high-level layers are fed back to the low-level layers to adjust the processing strategies of the low-level layers. This feedback mechanism can not only improve the extraction efficiency of low-level features, but also enhance the understanding and utilization of high-level semantic information by the entire network, thereby improving the accuracy and efficiency of image coding.

[0066] S4: Use a temporal window encoding strategy to capture important events in image sequences;

[0067] S5: Introducing a weight update strategy based on time dependency, allowing the spiking neural network to adjust the weight of the current frame according to the processing result of the previous frame when processing consecutive image frames, and utilizing the temporal coherence between video sequences to optimize the encoding effect of consecutive frames;

[0068] S6: Encode the pulse sequence output by the pulse neural network to generate final image encoding data;

[0069] S7: storing or transmitting the encoded image data to a destination for subsequent decoding and display processing.

[0070] The image preprocessing (color space conversion and noise removal) in step S1 provides a clear and standardized input image for the spiking neural network in S2, reduces errors in network processing, and improves the accuracy of feature extraction; ensuring that the neural network can more effectively recognize and respond to the basic features of the image while minimizing external interference.

[0071] In S2, after the neural network responds to different features of the image by layer, the inter-layer feedback connection in S3 enables the complex processing results of the high-level layers to be used to adjust the feature extraction strategies of the low-level layers; improving the network's adaptive ability, guiding the feature extraction of the low-level layers through high-level semantic understanding, thereby improving the encoding accuracy and efficiency of the entire network for image content.

[0072] The improved feature extraction efficiency and semantic understanding in S3 provide a more accurate basis for the temporal dynamics-based neuron activation threshold adjustment in S4; utilizing the feature information optimized through inter-layer feedback, the temporal window encoding strategy is implemented more effectively to capture important events and changes in image sequences.

[0073] The dynamic features captured by the time window coding strategy of S4 provide the necessary input for the weight update strategy in S5, so that the weight update can be adjusted according to the temporal continuity; according to the feature changes of each frame and the processing results of the previous frame, the weights of the neural network are dynamically adjusted to optimize the coding effect of consecutive frames and improve the coherence and quality of video coding.

[0074] After the time-dependent weights of S5 are updated, the neural network processes continuous frames more accurately, and the output pulse sequence better represents the essential information of the image; the optimized pulse sequence is used to generate high-quality image coding data to ensure the effectiveness of coding and image quality.

[0075] The image encoding data generated in S6 is stored or transmitted in S7 to ensure the integrity and availability of the encoded data; ensuring that the encoded data can be effectively stored and transmitted to the destination for subsequent decoding and display processing.

[0076] Color space conversion includes converting the original image from its original color space to a predetermined color space to optimize the image processing efficiency and feature response sensitivity of the subsequent spiking neural network;

[0077] Noise removal includes adaptive filtering technology based on image content, which automatically adjusts the filtering strength according to the local feature density of the image, removes random noise in the image while retaining detailed features, ensuring image clarity and accuracy of feature recognition.

[0078] The multi-layer spiking neurons in S2 include: the first layer of spiking neurons for identifying image edge features; the middle layer of spiking neurons for analyzing image attributes; and the top layer of spiking neurons for image scene understanding.

[0079] In S3, inter-layer feedback connections are added to the spiking neural network. The processing results of the high-level layers are fed back to the low-level layers through the inter-layer feedback connections to adjust the processing strategies of the low-level layers. Specifically, the following are introduced:

[0080] S31: Establish feedback paths between multiple layers of the spiking neural network so that the output of each high-level layer is not only transmitted to the previous layer, but also transmitted downward to all lower layers;

[0081] S32: Dynamically adjust the weights and activation thresholds of the lower-layer neurons based on the information fed back from the upper layers, so that the lower-layer neurons can reflect the high-level features and semantic information recognized by the upper layers when processing image data;

[0082] S33: Utilize the results of high-level feedback to optimize the feature extraction and image processing strategies of the low-level layers, improve the ability to capture image details and the understanding of the overall image content, thereby improving the coding efficiency and image quality of the entire network;

[0083] A mechanism is established to monitor and update the feedback logic in real time to ensure that the network can adjust the data flow and processing parameters between layers according to the actual encoding effect and quality feedback when processing image sequences continuously.

[0084] The inter-layer feedback connection also includes data transmission calculation: in each training cycle, the feedback strength from the high-level to the low-level is adjusted by the proportional coefficient β, which is dynamically adjusted based on the performance evaluation of the high-level in the task, expressed as:

[0085] Feedback strength = β × high-level output; the input received by the lower layer includes not only the normal feedforward input from the previous layer, but also the high-level feedback adjusted by the proportional coefficient. The updated input is calculated as: Update input = feedforward input + feedback strength;

[0086] Dynamically adjust the weights and activation thresholds of low-level neurons, including weight adjustment and activation threshold adjustment. Weight adjustment is based on feedback results. The weight adjustment of each neuron is performed using the gradient descent method. If the feedback indicates that the importance of a feature has increased, the corresponding weight increases:

[0087] w 新 =w 旧 +η×Δw, where η is the learning rate and Δw is the weight change calculated based on error backpropagation and feedback adjustment; the activation threshold adjustment is also adjusted based on feedback to optimize the network's response, which is achieved by adjusting the threshold to allow the network to better respond to input changes.

[0088] S4 specifically includes:

[0089] S41, time window setting: set a time window for each layer in the spiking neural network, which defines the time range of the neuron's response to the input signal, so that the network responds according to the time of occurrence of the event;

[0090] S42, event detection and neuron activation: within a predetermined time window, when the image sequence shows significant changes, including motion detection changes and illumination changes, the neurons of the corresponding layer will be activated, and the activation of the neurons is based on the sensitivity to local or global changes in the input image;

[0091] S43, dynamic time window adjustment: the size of the time window is automatically adjusted according to the importance and frequency of events in consecutive image frames. Neuronal activity caused by important events will extend the time window to maintain a continuous response to the event, while unimportant event changes will shorten the time window or not trigger a response.

[0092] The time-dependent weight update strategies in S5 include:

[0093] After processing each frame, evaluate the output performance of the spiking neural network, including the recognition and encoding quality of events, to determine the network layers or neurons that need to be optimized;

[0094] According to the output performance evaluation results of the previous frame, the weights of neurons are automatically adjusted. If the event of the previous frame is successfully captured and accurately encoded, the weights of related neurons are increased; if the event is not captured or encoded accurately, the weights are reduced.

[0095] Using temporal coherence, between consecutive frames, the weights of neurons in the current frame are dynamically adjusted based on the temporal coherence of the image content and the adjustment results of the weights of the previous frame, including the weights of features or sudden events that appear continuously in the image, to ensure continuity and accurate expression of events;

[0096] Applying the updated weights to encode consecutive image frames optimizes the encoding output of the image sequence and ensures efficient and high-quality image reconstruction and representation.

[0097] The use of time continuity specifically includes:

[0098] Feature extraction: Extract features from each frame of the image, including edges, colors, and textures;

[0099] Feature comparison: Calculate feature similarity between consecutive frames: Among them, A and B are the feature vectors in consecutive frames, and S is the cosine similarity between them;

[0100] Weight adjustment: adjust the weight of the corresponding neuron according to the feature similarity result to reflect the temporal coherence between consecutive frames; weight adjustment formula: w 新=w 旧 +η·(1-S)·Δw, where w 旧 is the original weight, η is the learning rate, S is the similarity, and Δw is the weight change based on feature similarity adjustment, which is used to enhance or weaken the influence of specific features.

[0101] Coding Optimization: Apply adjusted weights for image encoding to improve coding efficiency and quality.

[0102] S6 specifically includes:

[0103] The spike trains fired by neurons activated by the time window strategy are converted into time-coded data, wherein the firing time and duration of each spike train are encoded as data representing the characteristics of image events;

[0104] The time-coded pulse sequence is further processed to form the final image coding data for storage or transmission, ensuring that the coded data optimizes data compression and transmission efficiency while maintaining image event information;

[0105] The pulse compression algorithm is used to compress the pulse sequence after time coding, and the compression is optimized according to the importance and information content of the pulse, so as to reduce the volume of the coded data while retaining the key image information;

[0106] The compressed pulse train is converted into a storage data format using a binary format to represent the timestamp and intensity level of each pulse.

[0107] like Figure 2 As shown, the image coding device based on the pulse neural network is used to implement the above-mentioned image coding method based on the pulse neural network, including:

[0108] Preprocessing module: responsible for preprocessing the input original image, including color space conversion and noise removal. Color space conversion converts the image from the original color space to the predetermined color space to optimize the efficiency of subsequent processing and feature response sensitivity. Noise removal adopts adaptive filtering technology based on image content, automatically adjusts the filtering intensity according to the local feature density of the image, removes random noise in the image while retaining detail features;

[0109] Spiking neural network module: including the configuration of multi-layer spiking neurons and the establishment of inter-layer feedback connections. Multi-layer spiking neurons respond to different features of the image, identify image edge features, analyze image attributes, and understand image scenes. Inter-layer feedback connections enable the processing results of the high-level layers to be fed back to the low-level layers, dynamically adjusting the processing strategies of the low-level layers.

[0110] Time window encoding module: captures important events in the image sequence. By setting the time window, the time range of the neuron's response to the input signal is defined, so that the network can respond according to the time of the event. Within the predetermined time window, the event showing changes in the image sequence is detected and the neuron is activated. The size of the time window is dynamically adjusted to adapt to the importance and frequency of events in consecutive image frames, so as to maintain continuous response to events.

[0111] Weight update module: introduces a weight update strategy based on time dependency, allowing the spiking neural network to adjust the weight of the current frame according to the processing result of the previous frame when processing consecutive image frames, optimize the encoding effect by using the temporal coherence between image sequences, and automatically adjust the weight of the neuron according to the output performance evaluation result of the previous frame, dynamically optimizing the response of the neural network;

[0112] Coding output module: encodes the pulse sequence output by the pulse neural network to generate the final image coding data, time-codes the pulse sequence emitted by the neurons activated by the time window strategy, converts it into data representing the characteristics of the image event, and compresses the time-coded pulse sequence using the pulse compression algorithm;

[0113] Storage and transmission module: responsible for storing or transmitting the encoded image data to the destination for subsequent decoding and display processing.

[0114] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity.

[0115] The present invention is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An image coding method based on a pulse neural network, characterized in that: The following steps are involved: S1: Perform color space conversion and noise removal on the input original image; S2: sending the preprocessed image to a spiking neural network, where the spiking neural network is configured with multiple layers of spiking neurons, each layer of neurons responding to different features of the image; S3: Add inter-layer feedback connections in the spiking neural network so that the processing results of the high-level layers are fed back to the low-level layers to adjust the processing strategies of the low-level layers; S4: Use a temporal window encoding strategy to capture important events in image sequences; S5: Introducing a weight update strategy based on time dependency, allowing the spiking neural network to adjust the weight of the current frame according to the processing result of the previous frame when processing consecutive image frames, and utilizing the temporal coherence between video sequences to optimize the encoding effect of consecutive frames; S6: Encode the pulse sequence output by the pulse neural network to generate final image encoding data; S7: storing or transmitting the encoded image data to a destination for subsequent decoding and display processing.

2. The image coding method based on pulse neural network according to claim 1, characterized in that: The color space conversion includes converting the original image from its original color space to a predetermined color space to optimize the image processing efficiency and feature response sensitivity of the subsequent spiking neural network; The noise removal includes an adaptive filtering technology based on image content, which automatically adjusts the filtering strength according to the local feature density of the image, removes random noise in the image while retaining detail features, and ensures image clarity and accuracy of feature recognition.

3. The image coding method based on pulse neural network according to claim 1, characterized in that: The multi-layer spiking neurons in S2 include: a first layer of spiking neurons for identifying image edge features; a middle layer of spiking neurons for analyzing image attributes; and a top layer of spiking neurons for image scene understanding.

4. The image coding method based on pulse neural network according to claim 1, characterized in that: In S3, inter-layer feedback connections are added to the spiking neural network, and the processing results of the high layer are fed back to the low layer through the inter-layer feedback connections to adjust the processing strategy of the low layer, which specifically includes: S31: Establish feedback paths between multiple layers of the spiking neural network so that the output of each high-level layer is not only transmitted to the previous layer, but also transmitted downward to all lower layers; S32: Dynamically adjust the weights and activation thresholds of the lower-layer neurons based on the information fed back from the upper layers, so that the lower-layer neurons can reflect the high-level features and semantic information recognized by the upper layers when processing image data; S33: Utilize the results of high-level feedback to optimize low-level feature extraction and image processing strategies, improve the ability to capture image details and understand the overall image content.

5. The image coding method based on pulse neural network according to claim 4 is characterized in that: The inter-layer feedback connection also includes data transmission calculation: in each training cycle, the feedback strength from the high-level layer to the low-level layer is adjusted by the proportional coefficient β, which is dynamically adjusted based on the performance evaluation of the high-level layer in the task, expressed as: Feedback strength = β × high-level output; the input received by the lower layer includes not only the normal feedforward input from the previous layer, but also the high-level feedback adjusted by the proportional coefficient. The updated input is calculated as: Update input = feedforward input + feedback strength; The dynamic adjustment of the weights and activation thresholds of the low-level neurons includes weight adjustment and activation threshold adjustment. The weight adjustment is based on the feedback result. The weight adjustment of each neuron is performed using the gradient descent method. If the feedback indicates that the importance of a feature increases, the corresponding weight increases: w 新 =w 旧 +η×Δw, where η is the learning rate and Δw is the weight change calculated based on error backpropagation and feedback adjustment; the activation threshold adjustment is also adjusted based on feedback to optimize the network's response.

6. The image coding method based on pulse neural network according to claim 1, characterized in that: The S4 specifically includes: S41, time window setting: set a time window for each layer in the spiking neural network, which defines the time range of the neuron's response to the input signal, so that the network responds according to the time of event occurrence; S42, event detection and neuron activation: within a predetermined time window, when the image sequence shows significant changes, including motion detection changes and illumination changes, the neurons in the corresponding layer will be activated. The activation of neurons is based on the sensitivity to local or global changes in the input image. S43, dynamic time window adjustment: the size of the time window is automatically adjusted according to the importance and frequency of events in consecutive image frames. Neuronal activity caused by important events will extend the time window to maintain a continuous response to the event, while unimportant event changes will shorten the time window or not trigger a response.

7. The image coding method based on pulse neural network according to claim 1, characterized in that: The time-dependent weight updating strategy in S5 includes: After processing each frame, evaluate the output performance of the spiking neural network, including the recognition and encoding quality of events, to determine the network layers or neurons that need to be optimized; According to the output performance evaluation results of the previous frame, the weights of neurons are automatically adjusted. If the event of the previous frame is successfully captured and accurately encoded, the weights of related neurons are increased; if the event is not captured or encoded accurately, the weights are reduced. Using temporal coherence, between consecutive frames, the weights of neurons in the current frame are dynamically adjusted based on the temporal coherence of the image content and the adjustment results of the weights of the previous frame, including the weights of features or sudden events that appear continuously in the image, to ensure continuity and accurate expression of events; The updated weights are applied to encode consecutive image frames to optimize the encoded output of the image sequence.

8. The image coding method based on pulse neural network according to claim 7, characterized in that: The utilization of time continuity specifically includes: Feature extraction: Extract features from each frame of the image, including edges, colors, and textures; Feature comparison: Calculate feature similarity between consecutive frames: Among them, A and B are the feature vectors in consecutive frames, and S is the cosine similarity between them; Weight adjustment: adjust the weight of the corresponding neuron according to the feature similarity result to reflect the temporal coherence between consecutive frames; weight adjustment formula: w 新 =w 旧 +η·(1-S)·Δw, where w 旧 is the original weight, η is the learning rate, S is the similarity, and Δw is the weight change based on feature similarity adjustment, which is used to enhance or weaken the influence of specific features. Coding Optimization: Apply adjusted weights for image encoding to improve coding efficiency and quality.

9. The image coding method based on pulse neural network according to claim 6, characterized in that: The S6 specifically includes: The spike trains fired by neurons activated by the time window strategy are converted into time-coded data, wherein the firing time and duration of each spike train are encoded as data representing the characteristics of image events; The time-encoded pulse sequence is further processed to form final image encoding data for storage or transmission; The pulse compression algorithm is used to compress the pulse sequence after time coding, and the compression is optimized according to the importance and information content of the pulse, so as to reduce the volume of the coded data while retaining the key image information; The compressed pulse train is converted into a storage data format using a binary format to represent the timestamp and intensity level of each pulse.

10. An image coding device based on a pulse neural network, used to implement the image coding method based on a pulse neural network according to any one of claims 1 to 9, characterized in that: include: Preprocessing module: responsible for preprocessing the input original image, including color space conversion and noise removal. Color space conversion converts the image from the original color space to the predetermined color space to optimize the efficiency of subsequent processing and feature response sensitivity. Noise removal adopts adaptive filtering technology based on image content, automatically adjusts the filtering intensity according to the local feature density of the image, removes random noise in the image while retaining detail features; Spiking neural network module: including the configuration of multi-layer spiking neurons and the establishment of inter-layer feedback connections. Multi-layer spiking neurons respond to different features of the image, identify image edge features, analyze image attributes, and understand image scenes. Inter-layer feedback connections enable the processing results of the high-level layers to be fed back to the low-level layers, dynamically adjusting the processing strategies of the low-level layers. Time window encoding module: captures important events in the image sequence. By setting the time window, the time range of the neuron's response to the input signal is defined, so that the network can respond according to the time of the event. Within the predetermined time window, the event showing changes in the image sequence is detected and the neuron is activated. The size of the time window is dynamically adjusted to adapt to the importance and frequency of events in consecutive image frames, so as to maintain continuous response to events. Weight update module: introduces a weight update strategy based on time dependency, allowing the spiking neural network to adjust the weight of the current frame according to the processing result of the previous frame when processing consecutive image frames, optimize the encoding effect by using the temporal coherence between image sequences, and automatically adjust the weight of the neuron according to the output performance evaluation result of the previous frame, dynamically optimizing the response of the neural network; Coding output module: encodes the pulse sequence output by the pulse neural network to generate the final image coding data, time-codes the pulse sequence emitted by the neurons activated by the time window strategy, converts it into data representing the characteristics of the image event, and compresses the time-coded pulse sequence using the pulse compression algorithm; Storage and transmission module: responsible for storing or transmitting the encoded image data to the destination for subsequent decoding and display processing.

Citation Information

Cited By

  • Image processing method and system

    CN119484710A