US-20260123889-A1 - METHOD AND APPARATUS FOR SIGNAL COMPRESSION
Abstract
A method and apparatus for compressing a signal are provided. The method includes dividing a neural signal into a plurality of signal sections based on whether a spike signal is detected in the neural signal; determining a compression rate corresponding to each of the plurality of signal sections; and compressing a signal portion in each of the plurality of signal sections based on the compression rate corresponding to each of the plurality of signal sections.
Inventors
- Junyeub SUH
Assignees
- SAMSUNG ELECTRONICS CO., LTD.
Dates
- Publication Date
- 20260507
- Application Date
- 20250825
- Priority Date
- 20241105
Claims (17)
- 1 . A signal compression method comprising: dividing a neural signal into a plurality of signal sections based on whether a spike signal is detected in the neural signal; determining a compression rate corresponding to each of the plurality of signal sections; and compressing a signal portion in each of the plurality of signal sections based on the compression rate corresponding to each of the plurality of signal sections.
- 2 . The signal compression method of claim 1 , wherein the determining of the compression rate corresponding to each of the plurality of signal sections comprises: determining the compression rate corresponding to each of the plurality of signal sections based on a range of signal sizes of the signal portion in each of the plurality of signal sections.
- 3 . The signal compression method of claim 2 , wherein the determining of the compression rate corresponding to each of the plurality of signal sections based on the range of the signal sizes of the signal portion in each of the plurality of signal sections comprises: reducing the signal sizes of the signal portion in each of the plurality of signal sections; and determining the compression rate corresponding to each of the plurality of signal sections based on a signal with a reduced signal size in each of the plurality of signal sections.
- 4 . The signal compression method of claim 3 , wherein the determining of the compression rate corresponding to each of the plurality of signal sections based on the range of the signal sizes of the signal portion in each of the plurality of signal sections comprises: extracting a minimum value corresponding to a minimum signal size for each of the plurality of signal sections; and reducing the signal sizes of the signal portion in each of the plurality of signal sections based on the minimum value corresponding to each of the plurality of signal sections.
- 5 . The signal compression method of claim 3 , wherein the determining of the compression rate corresponding to each of the plurality of signal sections based on the signal with the reduced signal size in each of the plurality of signal sections comprises: extracting a maximum value corresponding to the signal with the reduced signal size in each of the plurality of signal sections; calculating a bit number based on the maximum value; and determining the compression rate based on the bit number.
- 6 . The signal compression method of claim 5 , wherein the bit number is a minimum bit number capable of expressing the maximum value.
- 7 . The signal compression method of claim 4 , further comprising: storing the minimum value as an offset, for each of the plurality of signal sections; and storing the compression rate in association with a corresponding signal section, among the plurality of signal sections.
- 8 . The signal compression method of claim 1 , wherein the plurality of signal sections comprises: a first-type signal section, which comprises the spike signal; and a second-type signal section, which does not include the spike signal.
- 9 . A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the method of claim 1 .
- 10 . An apparatus comprising: one or more processors; and a memory configured to store instructions, wherein the instructions, when executed by the one or more processors individually or collectively, cause the apparatus to: divide a neural signal into a plurality of signal sections based on whether a spike signal is detected in the neural signal; determine a compression rate corresponding to each of the plurality of signal sections; and compress a signal portion in each of the plurality of signal sections based on the compression rate corresponding to each of the plurality of signal sections.
- 11 . The apparatus of claim 10 , wherein the instructions, when executed by the one or more processors individually or collectively, cause the apparatus to: determine the compression rate corresponding to each of the plurality of signal sections based on a range of signal sizes of the signal portion in each of the plurality of signal sections.
- 12 . The apparatus of claim 11 , wherein the instructions, when executed by the one or more processors individually or collectively, cause the apparatus to: reduce the signal sizes of the signal portion in each of the plurality of signal sections; and determine the compression rate corresponding to each of the plurality of signal sections based on a signal with a reduced signal size in each of the plurality of signal sections.
- 13 . The apparatus of claim 12 , wherein the instructions, when executed by the one or more processors individually or collectively, cause the apparatus to: extract a minimum value corresponding to a minimum signal size for each of the plurality of signal sections; and reduce the signal sizes of the signal portion in each of the plurality of signal sections based on the minimum value corresponding to each of the plurality of signal sections.
- 14 . The apparatus of claim 12 , wherein the instructions, when executed by the one or more processors individually or collectively, cause the apparatus to: extract a maximum value corresponding to the signal with the reduced signal size in each of the plurality of signal sections; calculate a bit number based on the maximum value; and determine the compression rate based on the bit number.
- 15 . The apparatus of claim 14 , wherein the bit number is a minimum bit number capable of expressing the maximum value.
- 16 . The apparatus of claim 13 , wherein the instructions, when executed by the one or more processors individually or collectively, cause the apparatus to: store the minimum value as an offset, for each of the plurality of signal sections; and store the compression rate in association with a corresponding signal section, among the plurality of signal sections.
- 17 . The apparatus of claim 10 , wherein the plurality of signal sections comprises: a first-type signal section, which comprises the spike signal; and a second-type signal section, which does not include the spike signal.
Description
CROSS-REFERENCE TO RELATED APPLICATION This application is based on and claims priority from Korean Patent Application No. 10-2024-0155138, filed on Nov. 5, 2024, in the Korean Intellectual Property Office, the entire disclosure of which is incorporated herein by reference for all purposes. BACKGROUND 1. Field Methods and apparatuses consistent with embodiments of the disclosure relate to a method and apparatus for signal compression. 2. Description of Related Art A neural signal is a biological signal that occurs when a cell transmits information electrically or chemically. The neural signal may include a spike signal, which is a short and rapid electrical signal that occurs when a cell becomes activated. Since a measured neural signal has a large data size, there may be a limitation in storing all the data. Accordingly, a method is being used in which data for only a portion of a signal section around a spike signal is stored, and a section in which a spike signal is not detected is considered noise and deleted before storing the data. In addition, in order to analyze a postsynaptic potential (PSP) to determine the connection status between neurons, information on a signal other than a spike signal (e.g., a non-spike signal) may also be required. Thus, a method of efficiently storing the measured neural signal without destroying the neural signal may be needed. The above description has been possessed or acquired by the inventor(s) in the course of conceiving the present disclosure and is not necessarily an art publicly known before the present application is filed. SUMMARY One or more embodiments may address at least the above problems and/or disadvantages and other disadvantages not described above. Also, the embodiments are not required to overcome the disadvantages described above, and an embodiment may not overcome any of the problems described above. According to an aspect of the disclosure, there is provided a signal compression method including: dividing a neural signal into a plurality of signal sections based on whether a spike signal is detected in the neural signal; determining a compression rate corresponding to each of the plurality of signal sections; and compressing a signal portion in each of the plurality of signal sections based on the compression rate corresponding to each of the plurality of signal sections. The determining of the compression rate corresponding to each of the plurality of signal sections may include: determining the compression rate corresponding to each of the plurality of signal sections based on a range of signal sizes of the signal portion in each of the plurality of signal sections. The determining of the compression rate corresponding to each of the plurality of signal sections based on the range of the signal sizes of the signal portion in each of the plurality of signal sections may include: reducing the signal sizes of the signal portion in each of the plurality of signal sections; and determining the compression rate corresponding to each of the plurality of signal sections based on a signal with a reduced signal size in each of the plurality of signal sections. The determining of the compression rate corresponding to each of the plurality of signal sections based on the range of the signal sizes of the signal portion in each of the plurality of signal sections may include: extracting a minimum value corresponding to a minimum signal size for each of the plurality of signal sections; and reducing the signal sizes of the signal portion in each of the plurality of signal sections based on the minimum value corresponding to each of the plurality of signal sections. The determining of the compression rate corresponding to each of the plurality of signal sections based on the signal with the reduced signal size in each of the plurality of signal sections may include: extracting a maximum value corresponding to the signal with the reduced signal size in each of the plurality of signal sections; calculating a bit number based on the maximum value; and determining the compression rate based on the bit number. The bit number is a minimum bit number capable of expressing the maximum value. The signal compression method may further include: storing the minimum value as an offset, for each of the plurality of signal sections; and storing the compression rate in association with a corresponding signal section, among the plurality of signal sections. The plurality of signal sections may include: a first-type signal section, which may include the spike signal; and a second-type signal section, which does not include the spike signal. According to another aspect of the disclosure, there is provided a non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform a method including dividing a neural signal into a plurality of signal sections based on whether a spike signal is detected in the neural sign