Microscopic imaging system and control method, device and computer readable storage medium thereof
By dividing the liquid lens voltage value range in the microscope and determining the voltage value based on contrast, the microscopy imaging system improves the focus efficiency and solves the problem of low focus efficiency in the existing technology.
Patent Information
- Application Number
- CN202211175382.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-09-26
AI Technical Summary
The existing microscope autofocus system has low focusing efficiency under the conditions of large numerical aperture, high magnification and small depth of field. It needs to traverse every available voltage value for calibration, which requires a large amount of calculation and low efficiency.
By dividing the voltage value range of the liquid lens into multiple intervals, the corresponding image to be measured is collected, the voltage value range is determined based on the image with the highest contrast, and the voltage value range is narrowed to achieve fast focusing.
When the contrast requirements are met, the microscopic imaging system can quickly narrow the range of voltage values, improve focusing efficiency, and reduce the amount of calculations.
Smart Images

Figure CN115453734B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical fields of optogenetics, photoelectric detection and deep learning, and in particular to a microscopic imaging system and a control method, device and computer-readable storage medium thereof. Background Art
[0002] The autofocus system is a key component for observation, measurement and depth information reconstruction of automatic video microscopes. Research on the microscope autofocus system has always been a hot topic in microscopy research, especially for automatic video microscopes with large numerical aperture, high magnification and small depth of field.
[0003] CN103487927B discloses a method for automatic focusing of a microscope, which uses a liquid lens whose focal length can be controlled by voltage and is placed in the optical path of the microscope as a zoom element, and uses a camera to capture the microscopic image and transmit it to a computer for focusing evaluation, finds the liquid lens voltage when the microscopic image is in the best focusing state, and then uses the voltage-focal length curve of the liquid lens to reversely calculate the distance of the currently observed object from the focal plane of the microscope, uses a precision electric lifting platform to move the observed object to the focal plane of the microscope, and at the same time, the liquid lens driving voltage is restored to the initial value. However, this method requires the driving voltage-focusing depth curve to be calibrated first, that is, it is necessary to traverse every voltage value that can be obtained to complete the calibration process, the amount of calculation is large, and the focusing efficiency is low.
[0004] Therefore, there is an urgent need to provide a microscopic imaging system and a control method, device, and computer-readable storage medium thereof to solve the problems existing in the prior art. Summary of the invention
[0005] The purpose of the present application is to provide a microscopic imaging system and a control method, device, and computer-readable storage medium thereof, which can quickly narrow the range of voltage values and improve focusing efficiency while meeting contrast requirements.
[0006] The purpose of this application is achieved by the following technical solutions:
[0007] In a first aspect, the present application provides a microscopic imaging system, the microscopic imaging system comprising a head-mounted microscope and a data processing module, the head-mounted microscope comprising a liquid lens, the data processing module comprising a processor, and the processor is configured to implement the following steps:
[0008] S1: dividing the voltage value range corresponding to the liquid lens into N intervals, and using the head-mounted microscope to collect N images to be tested corresponding to when the voltage value of the liquid lens is in different intervals, where N is an integer greater than 1;
[0009] S2: when the M images to be tested with the highest contrast do not meet the preset contrast condition, the voltage value range of the liquid lens corresponding to the M images to be tested is used as the voltage value range corresponding to the liquid lens, and step S1 is executed, where M is a positive integer not greater than N;
[0010] S3: When the M images to be tested meet the preset contrast condition, the operating voltage value of the liquid lens is determined based on the voltage value corresponding to the image to be tested with the highest contrast among the M images to be tested, so as to achieve focusing.
[0011] The beneficial effect of the technical solution is that the head-mounted microscope includes a liquid lens (the focusing principle of the liquid lens is to use the liquid as a lens, change the shape of the liquid by applying an external voltage, and then change its focal length). In the process of focusing the head-mounted microscope, the preset voltage value range can be divided into N intervals, and N corresponding images to be tested are collected according to the N intervals. On the one hand, if the M images to be tested with the highest contrast do not meet the preset contrast condition, it indicates that the voltage value range of the M images to be tested is not accurate enough, and the voltage value range can be further narrowed, and the voltage value range corresponding to the M images to be tested is used as the voltage value range, and N intervals are redefined to collect N corresponding images to be tested until the preset contrast condition is met; on the other hand, if the M images to be tested with the highest contrast meet the preset contrast condition, it indicates that the voltage value range of the M images to be tested is appropriate, and the working voltage value of the liquid lens can be determined according to the voltage value corresponding to the image to be tested with the highest contrast, so as to complete the focusing.
[0012] By defining the voltage interval, only N images to be tested are collected at a time (there is no need to collect the corresponding image to be tested for each voltage value that can be obtained, but only one image to be tested is collected in each interval), and the M images to be tested with the highest contrast are selected as the basis for the next operation. This can quickly narrow the range of voltage values, reduce the amount of calculation, and improve the focusing efficiency while meeting the contrast requirements.
[0013] In some optional embodiments, the preset contrast condition includes at least one of the following:
[0014] The minimum contrast value of the M images to be tested is not less than a first contrast threshold;
[0015] An average value of the contrast of the M images to be tested is not less than a second contrast threshold.
[0016] The beneficial effects of the technical solution are as follows: on the one hand, the preset contrast condition can be that the minimum value of the contrast of the M images to be tested is not less than the first contrast threshold, that is, the contrast of each of the M images to be tested is not less than the first contrast threshold, indicating that the contrast of the M images to be tested is at a relatively high level; on the other hand, the preset contrast condition can be that the average value of the contrast of the M images to be tested is not less than the second contrast threshold, that is, the average level of the contrast of the M images to be tested is relatively high.
[0017] In some optional embodiments, the head-mounted microscope is used to be worn on the head of an experimental animal, the brain region of the experimental animal is injected with optogenetic virus and calcium imaging virus, and the head-mounted microscope is provided with an optogenetic optical path and a calcium imaging optical path;
[0018] After focusing, the processor is further configured to implement the following steps:
[0019] applying optogenetic stimulation to the experimental animal using a first light source and the optogenetic optical pathway;
[0020] The neural activity image of the experimental animal is collected using a second light source and the calcium imaging optical path.
[0021] The beneficial effect of this technical solution is that viral vectors (optogenetic viruses and calcium imaging viruses) containing light-sensitive protein genes can be injected into the brain regions of experimental animals. On the one hand, optogenetic stimulation can be applied to the experimental animals using the first light source and the optogenetic optical path, and temporal regulation of neuronal activity can be achieved by selecting different parameters, such as wavelength, light intensity, frequency and duty cycle, while spatial regulation of neuronal activity can be achieved by selectively irradiating local cells. On the other hand, the second light source and the calcium imaging optical path can be used to capture neural activity images of experimental animals, and the changes in neurons, neural circuits or animal behaviors caused by optogenetic stimulation can be presented, thereby being applied to animal behavioral research (including eating behavior, reward behavior, anxiety and depression behavior, pain behavior, etc.).
[0022] In some optional embodiments, the microscopic imaging system is further provided with at least one camera, and the process of applying optogenetic stimulation to the experimental animal and collecting neural activity images includes:
[0023] S11: using the second light source and the calcium imaging optical path to collect the neural activity image of the experimental animal, and using each of the cameras to collect the behavioral image of the experimental animal;
[0024] S12: Based on the neural activity image and behavioral image of the experimental animal, detecting whether the experimental animal needs optogenetic stimulation; if yes, executing step S13; if no, executing step S11;
[0025] S13: Acquiring stimulation configuration information corresponding to the experimental animal;
[0026] S14: Based on the stimulation configuration information, use the first light source and the optogenetic optical pathway to apply optogenetic stimulation to the experimental animal, and execute step S11 until an acquisition end condition is met.
[0027] The beneficial effect of this technical solution is that it can combine the neural activity images and behavioral images of experimental animals for analysis to determine whether the experimental animals need optogenetic stimulation. On the one hand, if optogenetic stimulation is required, the corresponding stimulation configuration information can be obtained to apply optogenetic stimulation to the experimental animals. After the stimulation is over, the image acquisition process is repeated until the acquisition end conditions are met, forming a closed-loop acquisition and stimulation process. On the other hand, if optogenetic stimulation is not required, the image acquisition process can be directly repeated (without stimulation).
[0028] By analyzing both neural activity images and behavioral images (compared to relying solely on neural activity images), it is possible to more accurately determine whether the current state of the experimental animal is suitable for optogenetic stimulation, and data can be collected while stimulating, quickly reflecting the changes in optogenetic stimulation on neurons, neural circuits, or animal behaviors.
[0029] In some optional embodiments, the processor is configured to implement step S13 in the following manner:
[0030] Inputting the neural activity image and behavioral image of the experimental animal into a stimulation configuration model to obtain stimulation configuration information of the experimental animal;
[0031] The training process of the stimulus configuration model includes:
[0032] Acquire a training set, wherein the training set includes a plurality of training data, each of the training data includes a neural activity image and a behavioral image of a sample object and labeled data of stimulation configuration information of the sample object;
[0033] For each training data in the training set, perform the following processing:
[0034] Inputting the neural activity images and behavioral images of the sample objects in the training data into a preset deep learning model to obtain prediction data of the stimulation configuration information of the sample objects;
[0035] Based on the prediction data and the annotation data of the stimulation configuration information of the sample object, the model parameters of the deep learning model are updated;
[0036] Detect whether the preset training end condition is met; if yes, use the trained deep learning model as the stimulation configuration model; if not, continue to train the deep learning model using the next training data.
[0037] The beneficial effect of this technical solution is that by designing, establishing an appropriate amount of neuron computing nodes and a multi-layer operation hierarchy, and selecting appropriate input layers and output layers, a preset deep learning model can be obtained. Through learning and tuning of the preset deep learning model, a functional relationship from input to output is established. Although the functional relationship between input and output cannot be found 100%, the actual correlation relationship can be approached as much as possible. The stimulation configuration model obtained by training can obtain the corresponding stimulation configuration information based on the neural activity images and behavioral images of experimental animals, and the analysis results are highly accurate and reliable.
[0038] In some optional embodiments, the head-mounted microscope further includes a first dichroic mirror, a second dichroic mirror, and an image sensor;
[0039] In the optogenetic optical path, the light emitted by the first light source is transmitted through the first dichroic mirror and then reflected through the second dichroic mirror to the head of the experimental animal, so as to apply optogenetic stimulation to the experimental animal;
[0040] In the calcium imaging optical path, the light emitted by the second light source is reflected by the first dichroic mirror and then reflected by the second dichroic mirror to the head of the experimental animal to excite the calcium imaging virus of the experimental animal, and the image sensor is used to receive the reflected light of the experimental animal to collect the neural activity image of the experimental animal.
[0041] The beneficial effect of this technical solution is that, generally speaking, the optogenetic optical path and the calcium imaging optical path can share some components (such as the first dichroic mirror and the second dichroic mirror), thereby reducing the size and mass of the head-mounted microscope while ensuring the imaging effect, ensuring the free movement of small experimental animals, and avoiding causing wearing burdens to small experimental animals.
[0042] In some optional embodiments, the head-mounted microscope further comprises a first filter, a second filter, a first collimating lens, a second collimating lens, and at least one achromatic lens;
[0043] In the optogenetic optical path, the first filter, the first collimating lens, the first dichroic mirror and the second dichroic mirror are sequentially arranged along the propagation direction of the light emitted by the first light source;
[0044] In the calcium imaging optical path, the second filter, the second collimating lens, the first dichroic mirror, and the second dichroic mirror are arranged in sequence along the propagation direction of the light emitted by the second light source; and the achromatic lens, the liquid lens, and the image sensor are arranged in sequence along the propagation direction of the reflected light of the experimental animal.
[0045] The beneficial effects of this technical solution are: the filter can filter out unnecessary bands in the light source (these bands will affect the experimental results), and the collimating lens can converge and collimate the divergent light source, so that the light source converges more evenly in a straight line. Compared with the method of collimating after the dichroic mirror, collimating first and then passing through the dichroic mirror will improve the performance, the uniformity of the light output will be better, and the power loss will be smaller.
[0046] In the imaging of the head-mounted microscope (calcium imaging optical path), a combination of an achromatic lens and a liquid lens is used to adjust the field of view of the final imaging. The achromatic lens can effectively suppress the influence of chromatic aberration on the imaging quality, which is beneficial to improving the clarity and resolution of the microscopic image.
[0047] Existing head-mounted microscopes generally use grin lenses, which have limited light coupling efficiency and generally suffer from large light energy loss, resulting in weaker final light intensity. The achromatic lens plus liquid lens approach can achieve a larger numerical aperture than a grin lens, thereby imaging a larger field of view.
[0048] In some optional embodiments, the microscopic imaging system further comprises a three-core cable;
[0049] The data processing module also includes a data acquisition board, and the data acquisition board is electrically connected to the head-mounted microscope using the three-core cable, so that the head-mounted microscope can realize the functions of power transmission and data transmission.
[0050] The beneficial effect of this technical solution is that the existing microscopic imaging systems generally use multi-core (three or more) cables to transmit electrical energy separately, which makes the cables thick and hard, restricting the movement of experimental animals and affecting the experimental results. The present application adopts a three-core cable, which provides high power while making the cable light and soft, and does not affect the activities of experimental animals.
[0051] In a second aspect, the present application provides a control method for a microscopic imaging system, which is applied to the microscopic imaging system, wherein the microscopic imaging system includes a head-mounted microscope, and the head-mounted microscope includes a liquid lens. The method includes:
[0052] S1: dividing the voltage value range corresponding to the liquid lens into N intervals, and using the head-mounted microscope to collect N images to be tested corresponding to when the voltage value of the liquid lens is in different intervals, where N is an integer greater than 1;
[0053] S2: when the M images to be tested with the highest contrast do not meet the preset contrast condition, the voltage value range of the liquid lens corresponding to the M images to be tested is used as the voltage value range corresponding to the liquid lens, and step S1 is executed, where M is a positive integer not greater than N;
[0054] S3: When the M images to be tested meet the preset contrast condition, the operating voltage value of the liquid lens is determined based on the voltage value corresponding to the image to be tested with the highest contrast among the M images to be tested, so as to achieve focusing.
[0055] In a third aspect, the present application provides a control device for a microscopic imaging system, which is applied to the microscopic imaging system, wherein the microscopic imaging system includes a head-mounted microscope, the head-mounted microscope includes a liquid lens, and the device includes:
[0056] An image testing module, used to divide the voltage value range corresponding to the liquid lens into N intervals, and use the head-mounted microscope to collect N images to be tested corresponding to when the voltage value of the liquid lens is in different intervals, where N is an integer greater than 1;
[0057] A continuing test module is used for, when the M images to be tested with the highest contrast do not meet the preset contrast condition, using the voltage value range of the liquid lens corresponding to the M images to be tested as the voltage value range corresponding to the liquid lens, and calling the image test module, where M is a positive integer not greater than N;
[0058] A focusing module is used to determine the working voltage value of the liquid lens based on the voltage value corresponding to the image to be tested with the highest contrast among the M images to be tested to achieve focusing when the M images to be tested meet the preset contrast condition.
[0059] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, which implements the functions of any of the above-mentioned processors when executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The present application is further described below in conjunction with the accompanying drawings and embodiments.
[0061] Figure 1 It is a flow chart of a control method of a microscopic imaging system provided in an embodiment of the present application.
[0062] Figure 2It is a schematic diagram of the process of applying optogenetic stimulation and collecting neural activity images provided in an embodiment of the present application.
[0063] Figure 3 It is a schematic diagram of the optical structure of a head-mounted microscope provided in an embodiment of the present application.
[0064] Figure 4 It is a structural schematic diagram of a microscopic imaging system provided in an embodiment of the present application.
[0065] Figure 5 This is an electrical block diagram of a head-mounted microscope provided in an embodiment of the present application.
[0066] Figure 6 A schematic diagram of the structure of a program product provided by the present application is shown. DETAILED DESCRIPTION
[0067] Below, the present application is further described in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.
[0068] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a and b and c, where a, b and c can be single or multiple. It is worth noting that "at least one" can also be interpreted as "one or more items".
[0069] It should also be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any implementation or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other implementations or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0070] Below, one of the application fields (i.e., optogenetics) of the embodiments of the present application is briefly described.
[0071] Optogenetics is a technology that combines optics and genetics. It can precisely control the activity of specific types of neurons in the brain, spinal cord, and peripheral nerves of living animals, even freely moving animals. The temporal accuracy of optogenetics can reach the millisecond level, and the spatial accuracy can reach the single cell level. Optogenetics is currently widely used in the field of neuroscience, and in the future it may be used to treat a variety of neurological and psychiatric diseases, such as Parkinson's disease, Alzheimer's disease, epilepsy, spinal cord injury, schizophrenia, etc.
[0072] Optogenetics uses molecular biology, viral biology and other means to introduce exogenous light-sensitive protein genes into living cells, expressing light-sensitive channel proteins on the cell membrane structure; then, by irradiating light of a specific wavelength, the activation and closure of light-sensitive channel proteins on the cell membrane structure are controlled; the activation and closure of light-sensitive proteins can control the opening and closing of ion channels on the cell membrane, thereby changing the changes in cell membrane voltage, such as membrane depolarization and hyperpolarization. When the membrane voltage depolarization exceeds a certain threshold, it will induce neurons to produce conductive electrical signals, that is, neuronal activation; on the contrary, when the membrane voltage hyperpolarizes to a certain level, it will inhibit the generation of neuronal action potentials, that is, neuronal inhibition. Neuronal biologists often use this technology to control the activity of specific neurons with no or little damage through optical methods to study the function of the neural network, which is particularly suitable for in vivo and even awake animal behavioral experiments.
[0073] Compared with traditional electrophysiological stimulation and pharmacological stimulation, optogenetic technology has stronger specificity, better sensitivity, low toxicity, rapidity, precision, and high reversibility. Its high temporal and spatial resolution is almost the same as the activity process of nerve cells in vivo, reaching sub-millisecond and millisecond levels.
[0074] Optogenetics has been widely used in many fields such as molecular biology, clinical medicine, and neuroscience. Animal behavior is a discipline that studies the functions, mechanisms, development, and evolution of various animal behaviors, and has played an important role in the development of neuroscience. Optogenetics has greatly promoted the development of neuroscience and greatly compensated for the shortcomings of electrophysiology that cannot identify specific neurons. It has become a new technology that is widely used in many fields and disciplines, and is also widely used in animal behavior research.
[0075] There are many technologies used to study brain neural activity. The technology of imaging neurons in animal brains using a microscopic imaging system that combines calcium imaging technology with a microscope is already quite mature. However, the microscopic imaging system can only passively record the brain activity of animals, and some active methods are also needed to stimulate and intervene in the animals during the experiment. Therefore, adding optogenetics to the microscopic imaging system to perform optogenetic stimulation on animals can greatly improve the robustness of the experiment.
[0076] See also Figure 1 , Figure 1 It is a flow chart of a control method of a microscopic imaging system provided in an embodiment of the present application.
[0077] The method is applied to a microscopic imaging system, wherein the microscopic imaging system comprises a head-mounted microscope, wherein the head-mounted microscope comprises a liquid lens, and the method comprises:
[0078] S1: dividing the voltage value range corresponding to the liquid lens into N intervals, and using the head-mounted microscope to collect N images to be tested corresponding to when the voltage value of the liquid lens is in different intervals, where N is an integer greater than 1;
[0079] S2: when the M images to be tested with the highest contrast do not meet the preset contrast condition, the voltage value range of the liquid lens corresponding to the M images to be tested is used as the voltage value range corresponding to the liquid lens, and step S1 is executed, where M is a positive integer not greater than N;
[0080] S3: When the M images to be tested meet the preset contrast condition, the operating voltage value of the liquid lens is determined based on the voltage value corresponding to the image to be tested with the highest contrast among the M images to be tested, so as to achieve focusing.
[0081] In step S1, using the head-mounted microscope to collect N images to be tested corresponding to when the voltage value of the liquid lens is in different intervals, for example, may refer to using the head-mounted microscope to collect N images to be tested corresponding to when the voltage value of the liquid lens is in different intervals in a preset area. The preset area is a pre-selected area of a fixed size, which corresponds to a specific brain area of the experimental animal or a measured environment. Here, the specific brain area refers to a part of the brain area of the experimental animal.
[0082] Therefore, the head-mounted microscope includes a liquid lens (the focusing principle of the liquid lens is to use the liquid as a lens, change the shape of the liquid by applying an external voltage, and then change its focal length). In the process of focusing the head-mounted microscope, the preset voltage value range can be divided into N intervals, and N corresponding images to be tested are collected according to these N intervals. On the one hand, if the M images to be tested with the highest contrast do not meet the preset contrast condition, it indicates that the voltage value range of the M images to be tested is not accurate enough, and the voltage value range can be further narrowed, and the voltage value range corresponding to the M images to be tested is used as the voltage value range, and N intervals are redefined to collect N corresponding images to be tested until the preset contrast condition is met; on the other hand, if the M images to be tested with the highest contrast meet the preset contrast condition, it indicates that the voltage value range of the M images to be tested is appropriate, and the working voltage value of the liquid lens can be determined according to the voltage value corresponding to the image to be tested with the highest contrast, and focusing is completed.
[0083] By defining the voltage interval, only N images to be tested are collected at a time (there is no need to collect the corresponding image to be tested for each voltage value that can be obtained, but only one image to be tested is collected in each interval), and the M images to be tested with the highest contrast are selected as the basis for the next operation. This can quickly narrow the range of voltage values, reduce the amount of calculation, and improve the focusing efficiency while meeting the contrast requirements.
[0084] Headstage is a device that can perform large-scale dynamic fluorescence imaging on awake and freely moving animals. Headstage can be used to visualize cellular activity, synchronize behavior, and track the activity of neural circuits over a long period of time.
[0085] The embodiments of the present application do not limit the experimental animals, and the experimental animals can be any of the following: mice, cats, dogs, pigs, cows, horses, monkeys, gorillas and humans.
[0086] The embodiment of the present application does not limit N and M. N can be, for example, 5, 10 or 20, and M can be, for example, 3, 6 or 10.
[0087] In some optional implementations, M is a positive integer less than N. The M images to be tested with the highest contrast are the M images to be tested with the highest contrast among the N images to be tested.
[0088] In some implementations, the process of determining the operating voltage value of the liquid lens may be:
[0089] The voltage value corresponding to the image with the highest contrast among the M images to be tested is set as the working voltage value of the liquid lens; or,
[0090] The voltage value corresponding to the image with the second highest contrast among the M images to be tested is set as the working voltage value of the liquid lens (the voltage value corresponding to the image with the highest contrast is not selected, considering that the voltage of the liquid lens is unstable when the contrast is at an extreme value, and the extreme value is excluded).
[0091] The N intervals may be divided evenly or unevenly.
[0092] In some implementations, based on historical data of the collected image (including image contrast and its corresponding voltage value), N intervals may be divided in a normal distribution manner, with sparse data at both ends and dense data in the middle.
[0093] The historical data may be, for example, images collected by a head-mounted microscope in the past month or week.
[0094] In some optional embodiments, the preset contrast condition includes at least one of the following:
[0095] The minimum contrast value of the M images to be tested is not less than a first contrast threshold;
[0096] An average value of the contrast of the M images to be tested is not less than a second contrast threshold.
[0097] Therefore, on the one hand, the preset contrast condition can be that the minimum value of the contrast of the M images to be tested is not less than the first contrast threshold, that is, the contrast of each image in the M images to be tested is not less than the first contrast threshold, indicating that the contrast of the M images to be tested is at a relatively high level; on the other hand, the preset contrast condition can be that the average value of the contrast of the M images to be tested is not less than the second contrast threshold, that is, the average level of the contrast of the M images to be tested is relatively high.
[0098] The embodiment of the present application does not limit the first contrast threshold and the second contrast threshold. The first contrast threshold is, for example, 1.1:1, 150:1, 3000:1 or 10000:1, and the second contrast threshold is, for example, 1.1:1, 150:1, 3000:1 or 10000:1.
[0099] In some optional embodiments, the head-mounted microscope is used to be worn on the head of an experimental animal, the brain region of the experimental animal is injected with optogenetic virus and calcium imaging virus, and the head-mounted microscope is provided with an optogenetic optical path and a calcium imaging optical path;
[0100] After focusing, the method further includes:
[0101] applying optogenetic stimulation to the experimental animal using a first light source and the optogenetic optical pathway;
[0102] The neural activity image of the experimental animal is collected using a second light source and the calcium imaging optical path.
[0103] Thus, viral vectors (optogenetic viruses and calcium imaging viruses) containing light-sensitive protein genes can be injected into the brain regions of experimental animals. On the one hand, optogenetic stimulation can be applied to the experimental animals using the first light source and the optogenetic optical path, and temporal regulation of neuronal activity can be achieved by selecting different parameters, such as wavelength, light intensity, frequency, and duty cycle, while spatial regulation of neuronal activity can be achieved by selectively irradiating local cells. On the other hand, the second light source and the calcium imaging optical path can be used to capture images of neural activity of experimental animals, and the changes in neurons, neural circuits, or animal behaviors caused by optogenetic stimulation can be presented, thereby being applied to animal behavioral research (including eating behavior, reward behavior, anxiety and depression behavior, pain behavior, etc.).
[0104] The principle of optogenetic stimulation is to use a tool virus vector to transfer light-sensitive genes (such as ChR2, eBR, NpHR3.0, Arch or OptoXR, etc.) into specific types of cells in the nervous system to express special ion channels or GPCRs. Light-sensitive ion channels will be selective for the passage of cations or anions, such as Cl-, Na+, H+, K+, under light stimulation of different wavelengths, thereby causing changes in the membrane potential on both sides of the cell membrane, achieving the purpose of selectively exciting or inhibiting the cells.
[0105] The principle of calcium ion imaging is to use calcium ion indicators to detect calcium ion concentration in tissues. Calcium ion imaging technology is mainly used in nervous system research, where calcium ion changes indicate neuronal activity. Calcium ion imaging technology belongs to a type of optogenetic technology. It actually detects Ca in cells or tissues. 2+ The concentration change of calcium is converted into a fluorescent signal, thereby converting the cell electrical activity into a recordable light signal.
[0106] The embodiments of the present application do not limit the calcium imaging virus and the optogenetic virus. The calcium imaging virus may be, for example, ChR2 or Chrimson; the optogenetic virus may be, for example, GCaMP6 or RCaMP1.
[0107] In a specific application, Chrimson is used as the calcium imaging virus and GCaMP6 is used as the optogenetic virus.
[0108] In some optional embodiments, acquisition and stimulation may be performed respectively according to preset acquisition frequency and stimulation frequency. Acquisition and stimulation may be performed simultaneously, or acquisition may be performed first and then stimulation, or stimulation may be performed first and then acquisition.
[0109] In some embodiments, the present application does not limit the wavelength of light emitted by the first light source and the wavelength of light emitted by the second light source. The wavelength of light emitted by the first light source is, for example, 605 nm, and the wavelength of light emitted by the second light source is, for example, 470 nm.
[0110] See also Figure 2 , Figure 2 It is a schematic diagram of the process of applying optogenetic stimulation and collecting neural activity images provided in an embodiment of the present application.
[0111] In some optional embodiments, the microscopic imaging system is further provided with at least one camera, and the process of applying optogenetic stimulation to the experimental animal and collecting neural activity images includes:
[0112] S11: using the second light source and the calcium imaging optical path to collect the neural activity image of the experimental animal, and using each of the cameras to collect the behavioral image of the experimental animal;
[0113] S12: Based on the neural activity image and behavioral image of the experimental animal, detecting whether the experimental animal needs optogenetic stimulation; if yes, executing step S13; if no, executing step S11;
[0114] S13: Acquiring stimulation configuration information corresponding to the experimental animal;
[0115] S14: Based on the stimulation configuration information, use the first light source and the optogenetic optical pathway to apply optogenetic stimulation to the experimental animal, and execute step S11 until an acquisition end condition is met.
[0116] The stimulation configuration information is used to indicate stimulation parameters of optogenetic stimulation. The stimulation parameters of optogenetic stimulation may include, for example, at least one of the following: wavelength, light intensity, frequency, and duty cycle of a light signal used for optogenetic stimulation.
[0117] As an example, the stimulus configuration information is "470nm, 40Hz, 3mW / mm 2 ”.
[0118] Therefore, the neural activity images and behavioral images of experimental animals can be combined for analysis to determine whether the experimental animals need optogenetic stimulation. On the one hand, if optogenetic stimulation is required, the corresponding stimulation configuration information can be obtained to apply optogenetic stimulation to the experimental animals. After the stimulation is over, the image acquisition process is repeated until the acquisition end conditions are met, forming a closed-loop acquisition and stimulation process. On the other hand, if optogenetic stimulation is not required, the image acquisition process can be directly repeated (without stimulation).
[0119] In a specific application, the acquisition end condition may include at least one of the following: the stimulation duration of the optogenetic stimulation is not less than a first duration threshold; the acquisition duration of the neural activity image is not less than a second duration threshold.
[0120] The embodiment of the present application does not limit the first duration threshold and the second duration threshold. The first duration threshold is, for example, 10 minutes, 30 minutes or 60 minutes, and the second duration threshold is, for example, 10 minutes, 30 minutes or 60 minutes.
[0121] In some embodiments, the microscopic imaging system will be connected to one or more behavioral cameras to collect the behavior of experimental animals in real time. After obtaining these behavioral image videos, the host computer software system will analyze them in real time. During the analysis process, the real-time position status, current action, movement path and other real-time situations of the experimental animals (mice) are calculated. After obtaining the real-time situations of the above multiple experimental animals, these real-time situations are analyzed through AI, and the most reasonable optogenetic stimulation mode is determined, and the mode is applied to the experimental animals. Similarly, the neural activity videos collected by the head-mounted microscope can also be analyzed in real time, and the results can be fed back to the optogenetic stimulation.
[0122] Since the video needs to be analyzed and processed in real time, the high-speed performance of image acquisition is very high. The function of high-speed image acquisition is achieved through the following methods.
[0123] 1. Use high-definition image sensor to ensure image quality; 2. Use Mipi csi-2 image sensor high-speed interface; 3. Use three-core cable for high-speed image transmission between boards; 4. Use FPGA+PCIe4 for high-speed data processing and transmission.
[0124] In the process of animal behavior synchronization, the system's DIO (Digital in and out) input and output are increased to support communication and interaction between multiple external system devices, so that users can obtain communication signals between different devices in a timely manner. And the variable threshold DI (Digital in) is used to maximize the connection with the industry's microscopic imaging system.
[0125] The characteristics of the microscopic imaging system DI are as follows: 1. Optional threshold and hysteresis, sensing detection range 3V to 20V; 2. Lightning protection of sensing input; 3. Overcurrent fault detection; 4. Automatic limitation of maximum power consumption.
[0126] By analyzing both neural activity images and behavioral images (compared to relying solely on neural activity images), it is possible to more accurately determine whether the current state of the experimental animal is suitable for optogenetic stimulation, and data can be collected while stimulating, quickly reflecting the changes in optogenetic stimulation on neurons, neural circuits, or animal behaviors.
[0127] The stimulation configuration information is used to indicate the stimulation parameters of the optogenetic stimulation: such as wavelength, light intensity, frequency, and duty cycle.
[0128] The wavelength depends on the type of light-sensitive protein. For example, ChR2 can choose a 473nm LED light source or laser light source, and NpHR can choose a 593nm LED light source or laser light source. For excitatory light-sensitive channel proteins, the choice of light intensity depends largely on its own characteristics. Different light-sensitive proteins have different light stimulation thresholds, which depend on the size of the inward current generated by the cell after light stimulation. The larger the current, the easier it is to burst out action potentials, and the required light intensity (light intensity) is relatively lower. Too much light intensity is likely to generate additional action potentials, and extending the stimulation time, that is, the pulse width, also increases the amount of cations flowing into the cell, which will also produce non-one-to-one photocurrents. This is contrary to the advantage of optogenetics in finely regulating neurons, so appropriate light intensity and stimulation pulse width should be adopted.
[0129] The most important thing is the choice of frequency, because the neurons in the brain have their own appropriate discharge frequency. Generally speaking, the discharge frequency of pyramidal neurons is around 10Hz, while the discharge frequency of inhibitory interneurons is as high as 40Hz or more. At the same time, the stimulation frequency is also related to the dynamic characteristics of the light-sensitive protein itself. Most of the action potentials of wild-type ChR2 are lost when light is stimulated above 40Hz, and even show a phenomenon of "inhibition". As a variant, ChETA, if expressed on PV neurons, can still produce a one-to-one response even if the light stimulation frequency is as high as 200Hz. For inhibitory NpHR, Arch or Mac, continuous illumination can effectively eliminate the spontaneous electrical activity of the cells. Therefore, before the experiment, the first thing to consider is the type of neurons to be stimulated, the selection of appropriate light-sensitive proteins, and then the determination of various parameters of the optogenetic stimulation signal.
[0130] In some embodiments, the process of detecting whether the experimental animal needs optogenetic stimulation may be:
[0131] Artificial intelligence algorithms such as deep learning, machine learning, and reinforcement learning are used to analyze and process the neural activity images and behavioral images of experimental animals to determine whether the experimental animals are in abnormal states such as anxiety, depression, and abnormal excitement. If they are in abnormal states, it is determined that the experimental animals need optogenetic stimulation, otherwise, optogenetic stimulation is not needed;
[0132] Alternatively, it is possible to manually determine whether the experimental animal requires optogenetic stimulation.
[0133] In some optional embodiments, electrical stimulation can be applied based on the behavioral images and neural activity images of experimental animals to perform photoelectric combined stimulation and achieve closed-loop stimulation control, which is in line with future cross-domain and cross-disciplinary development trends.
[0134] In some embodiments, the acquisition process of the neural activity image and the behavioral image in step S11 may be performed synchronously.
[0135] In some optional embodiments, the step S13 may include:
[0136] Inputting the neural activity image and behavioral image of the experimental animal into a stimulation configuration model to obtain stimulation configuration information of the experimental animal;
[0137] The training process of the stimulus configuration model includes:
[0138] Acquire a training set, wherein the training set includes a plurality of training data, each of the training data includes a neural activity image and a behavioral image of a sample object and labeled data of stimulation configuration information of the sample object;
[0139] For each training data in the training set, perform the following processing:
[0140] Inputting the neural activity images and behavioral images of the sample objects in the training data into a preset deep learning model to obtain prediction data of the stimulation configuration information of the sample objects;
[0141] Based on the prediction data and the annotation data of the stimulation configuration information of the sample object, the model parameters of the deep learning model are updated;
[0142] Detect whether the preset training end condition is met; if yes, use the trained deep learning model as the stimulation configuration model; if not, continue to train the deep learning model using the next training data.
[0143] Therefore, by designing, establishing an appropriate amount of neuronal computing nodes and a multi-layer operation hierarchy, and selecting appropriate input and output layers, a preset deep learning model can be obtained. Through the learning and tuning of the preset deep learning model, a functional relationship from input to output is established. Although the functional relationship between input and output cannot be found 100%, the actual correlation relationship can be approached as much as possible. The stimulation configuration model obtained by training can obtain the corresponding stimulation configuration information based on the neural activity images and behavioral images of experimental animals, and the analysis results are highly accurate and reliable.
[0144] The embodiment of the present application does not limit the method for obtaining the annotation data of the stimulation configuration information. For example, manual annotation, automatic annotation, or semi-automatic annotation may be used.
[0145] The embodiment of the present application does not limit the training process of the stimulus configuration model, which may adopt the above-mentioned supervised learning training method, or may adopt a semi-supervised learning training method, or may adopt an unsupervised learning training method.
[0146] The embodiments of the present application do not limit the preset training end conditions, which may be, for example, the number of training times reaches a preset number (the preset number of times may be, for example, 1 time, 3 times, 10 times, 100 times, 1000 times, 10000 times, etc.), or the training data in the training set have completed one or more trainings, or the total loss value obtained from this training is not greater than the preset loss value.
[0147] See also Figure 3 , Figure 3 It is a schematic diagram of the optical structure of a head-mounted microscope provided in an embodiment of the present application.
[0148] In some optional embodiments, the head-mounted microscope further includes a first dichroic mirror 13, a second dichroic mirror 23 and an image sensor 30;
[0149] The step of applying optogenetic stimulation to the experimental animal using the first light source and the optogenetic optical path comprises:
[0150] In the optogenetic optical path, the light emitted by the first light source 10 is transmitted through the first dichroic mirror 13 and then reflected to the head of the experimental animal through the second dichroic mirror 23 to apply optogenetic stimulation to the experimental animal;
[0151] The method of collecting the neural activity image of the experimental animal using the second light source and the calcium imaging optical path comprises:
[0152] In the calcium imaging optical path, the light emitted by the second light source 20 is reflected by the first dichroic mirror 13, and then reflected by the second dichroic mirror 23 to the head of the experimental animal to excite the calcium imaging virus of the experimental animal, and the image sensor 30 is used to receive the reflected light of the experimental animal to collect the neural activity image of the experimental animal.
[0153] Therefore, generally speaking, the optogenetic optical path and the calcium imaging optical path can share some components (such as the first dichroic mirror 13 and the second dichroic mirror 23), thereby reducing the volume and mass of the head-mounted microscope while ensuring the imaging effect, ensuring the free movement of small experimental animals, and avoiding causing wearing burdens to small experimental animals.
[0154] Dichroic mirrors, also known as two-color mirrors, are often used in laser technology. When the incident light source is 45 degrees or at a large angle, it separates the light source into a specific spectrum and changes the direction of the light path of part of the spectrum. It is often used in enzyme labeling instruments, fluorescence microscope systems, projection light engine systems, laser lights, optical instrument beam splitting, video glasses and other sensor systems.
[0155] The characteristic of a dichroic mirror is that it almost completely transmits light of a certain wavelength and almost completely reflects light of other wavelengths. It has the advantages of high transmittance, accurate wavelength positioning, and low light energy loss.
[0156] In a specific application, the wavelength of the light emitted by the first light source 10 is 605 nm, the wavelength of the light emitted by the second light source 20 is 470 nm, and the wavelength of the light reflected by the experimental animal is 525 nm.
[0157] In some optional embodiments, the head-mounted microscope further includes a first filter 11, a second filter 21, a first collimating lens 12, a second collimating lens 22, and at least one achromatic lens 14;
[0158] In the optogenetic optical path, along the propagation direction of the light emitted by the first light source, there are arranged in sequence: a first filter 11, a first collimating lens 12, a first dichroic mirror 13 and a second dichroic mirror 23;
[0159] In the calcium imaging optical path, along the propagation direction of the light emitted by the second light source, there are arranged in sequence: a second filter 21, a second collimating lens 22, a first dichroic mirror 13, and a second dichroic mirror 23;
[0160] Along the propagation direction of the reflected light of the experimental animal, an achromatic lens 14, a liquid lens 15 and an image sensor 30 are arranged in sequence.
[0161] Therefore, the filter can filter out the unnecessary bands in the light source (these bands will affect the experimental results), and the collimating lens can converge and collimate the divergent light source, so that the light source converges more evenly in a straight line. Compared with the method of collimating after the dichroic mirror, collimating first and then passing through the dichroic mirror will improve the performance, the uniformity of the light output will be better, and the power loss will be smaller.
[0162] In the imaging of the head-mounted microscope (calcium imaging optical path), a combination of an achromatic lens 14 and a liquid lens 15 is used to adjust the size of the final imaging field of view. The achromatic lens 14 can effectively suppress the influence of chromatic aberration on the imaging quality, which is beneficial to improving the clarity and resolution of the microscopic image.
[0163] Existing head-mounted microscopes generally use a Grin lens, which has limited light coupling efficiency and generally has a large light energy loss, resulting in a weaker final light intensity. The achromatic lens 14 plus a liquid lens can achieve a larger numerical aperture than a Grin lens, thereby imaging a larger field of view.
[0164] The achromatic lens 14 is a lens group that corrects chromatic aberration of light of three wavelengths (blue light, green light, and red light).
[0165] In some embodiments, a combination of three achromatic lenses 14 and one liquid lens 15 can be used. In the calcium imaging optical path, the reflected light of the experimental animal passes through two achromatic lenses 14 (model 45089), the liquid lens 15, and one achromatic lens 14 (model 63691) in sequence to reach the image sensor 30.
[0166] In some optional embodiments, the microscopic imaging system further comprises a three-core cable or a coaxial cable;
[0167] The data processing module further includes a data acquisition board, and the data acquisition board is electrically connected to the head-mounted microscope by using the coaxial cable, so that the head-mounted microscope can realize the functions of power transmission and data transmission;
[0168] The three-core cable uses a separate power supply technology, and the coaxial cable uses POC power supply technology. The coaxial cable is a single-core cable. Although the cable is light and flexible, the power it can provide is limited. The three-core cable can provide higher power while being light and flexible.
[0169] Therefore, existing microscopic imaging systems generally use multi-core (three or more) cables to transmit electrical energy separately, which makes the cables thick and hard, restricting the movement of experimental animals and affecting the experimental results. The present application adopts a three-core cable to achieve the functions of transmitting electrical energy and communication, while making the cable light and soft, and not affecting the activities of experimental animals.
[0170] The POC power supply power of the coaxial cable is lower, and the three-core cable introduces two additional power supply wires compared to the single-core coaxial cable, and the power supply power is higher. Among them, the communication protocol of the POC power supply technology is V3LINK or FPD_LINK.
[0171] POC (Power Over Coaxia) is a technology based on coaxial video, coaxial control and power superposition. In coaxial cable transmission, high-definition video signals, coaxial signals and power are transmitted, that is, high-definition video, coaxial and other signals are combined with power and transmitted on a coaxial line.
[0172] FPD_LINK (Flat Panel Display Link) is a high-speed digital video interface standard with the advantages of high bandwidth and low latency. It is mainly used to transmit video data and supports coaxial cable transmission. V3LINK is a serializer / deserializer with ultra-low latency. It can aggregate video, clock, control and GPIO data into a single-line bidirectional bridge between industry-standard interfaces. It has the advantages of enhancing signal integrity and reducing system size, weight and power consumption.
[0173] In some embodiments, the POC power supply does not exceed 150 mA to avoid interference with the transmitted signal.
[0174] In some implementations, the data acquisition board may be a PCIe high-speed acquisition card, and the image sensor may be a CMOS image sensor and use a MIPI CSI-2 interface.
[0175] PCIe (Peripheral Component Interconnect Express) is a high-speed serial computer expansion bus standard.
[0176] The PCIe high-speed acquisition card is an ideal tool for signal acquisition and analysis in the fields of radar, communication, satellite, Lidar, photomultiplier tubes, and fiber optic sensors. The onboard FPGA has real-time signal processing capabilities and supports user-defined logic development. The board provides a fast PCIex8 data transmission interface and a flexible hardware combination to achieve the best balance between performance, power consumption, and cost, and is especially suitable for laboratories and off-site computer occasions.
[0177] CMOS image sensor is a typical solid-state imaging sensor, usually composed of image sensitive unit array, row driver, column driver, timing control logic, AD converter, data bus output interface, control interface and other parts, which are usually integrated on the same silicon chip. Its working process can generally be divided into reset, photoelectric conversion, integration, and readout. CMOS image sensor has the following advantages:
[0178] 1) Random window readout capability. Random window readout operation is one aspect in which CMOS image sensors are superior to CCDs in functionality, also known as region of interest selection. In addition, the high integration of CMOS image sensors makes it easy to open multiple tracking windows at the same time.
[0179] 2) Radiation resistance: In general, the potential radiation resistance of CMOS image sensors is significantly enhanced compared to CCD performance.
[0180] 3) System complexity and reliability: Using CMOS image sensors can greatly simplify the system hardware structure.
[0181] 4) Non-destructive data reading method.
[0182] 5) Optimized exposure control. It is worth noting that due to the integration of multiple functional transistors in the pixel structure, CMOS image sensors also have several disadvantages, mainly noise and fill rate. In view of the relatively superior performance of CMOS image sensors, CMOS image sensors have been widely used in various fields.
[0183] In some embodiments, the image sensor may adopt a CCD image sensor. The CCD sensor is a new type of photoelectric conversion device that can store signal charges generated by light. When a pulse of a specific timing is applied to it, the stored signal charge can be directedly transmitted within the CCD to achieve self-scanning. It is mainly composed of a photosensitive unit, an input structure, and an output structure. It has functions such as photoelectric conversion, information storage, and delay, and has high integration and low power consumption. CCD is divided into area array and line array. The area array is a device that arranges CCD pixels into a plane; while the line array is a device that arranges CCD pixels into a straight line.
[0184] MIPI CSI (Camera Serial Interface) is an interface standard specified by the Camera Working Group of the MIPI Alliance. CSI-2 is the second version of MIPI CSI, which is a single or bidirectional differential serial interface that includes clock and data signals. It is mainly composed of the application layer, protocol layer, and physical layer, and supports up to 4-lane data transmission and a single-line transmission speed of up to 1Gb / s. With the MIPI CSI-2 standard, image data can pass through a single channel in sequence, which will use two or four channels to connect imaging chips or camera modules. Among them, the maximum available bandwidth is linearly proportional to the number of channels, that is, the available bandwidth when using four channels is twice that when using two channels.
[0185] The embodiment of the present application further provides a microscopic imaging system, the microscopic imaging system comprising a head-mounted microscope and a data processing module, the head-mounted microscope comprising a liquid lens, the data processing module comprising a processor, and the processor is configured to implement the following steps:
[0186] S1: dividing the voltage value range corresponding to the liquid lens into N intervals, and using the head-mounted microscope to collect N images to be tested corresponding to when the voltage value of the liquid lens is in different intervals, where N is an integer greater than 1;
[0187] S2: when the M images to be tested with the highest contrast do not meet the preset contrast condition, the voltage value range of the liquid lens corresponding to the M images to be tested is used as the voltage value range corresponding to the liquid lens, and step S1 is executed, where M is a positive integer not greater than N;
[0188] S3: When the M images to be tested meet the preset contrast condition, the operating voltage value of the liquid lens is determined based on the voltage value corresponding to the image to be tested with the highest contrast among the M images to be tested, so as to achieve focusing.
[0189] See also Figure 4 , Figure 4 It is a structural schematic diagram of a microscopic imaging system provided in an embodiment of the present application.
[0190] The data processing module can be a host (for example, a medical host), including a board, a graphics card, a PC motherboard, an industrial power supply and a hard disk. The graphics card is externally connected to a first display and a second display. The first display is used for optogenetic settings, and the second display is used for data acquisition and processing. The PC motherboard is externally connected to a keyboard and a mouse for interaction.
[0191] The board is electrically connected to the head-mounted microscope via a coaxial cable (the communication protocol of the coaxial cable adopts FPD_LinkⅢ), and the data interface adopts I2C, GPIO and MiPi.
[0192] See also Figure 5 , Figure 5 This is an electrical block diagram of a head-mounted microscope provided in an embodiment of the present application.
[0193] Among them, Coax FPD Link is a video signal protocol.
[0194] SERDES is the abbreviation of SERializer / DESerializer. It is a time division multiplexing (TDM) and point-to-point (P2P) serial communication technology, that is, multiple low-speed parallel signals are converted into high-speed serial signals at the sending end, and then passed through the transmission media (optical cable or copper wire), and finally the high-speed serial signals are converted back into low-speed parallel signals at the receiving end. This point-to-point serial communication technology makes full use of the channel capacity of the transmission media, reduces the number of transmission channels and device pins required, and increases the transmission speed of the signal, thereby greatly reducing the communication cost.
[0195] GPIO (General-purpose input / output) is the abbreviation of general-purpose input and output. Its functions are similar to P0-P3 of 8051. Its pins can be freely used by users through program control. The pins can be used as general-purpose input (GPI) or general-purpose output (GPO) or general-purpose input and output (GPIO) according to practical considerations.
[0196] I2C generally refers to the I2C bus, which is a simple, bidirectional, two-wire synchronous serial bus developed by Philips. Only two wires are needed to transmit information between devices connected to the bus.
[0197] In some optional embodiments, the preset contrast condition includes at least one of the following:
[0198] The minimum contrast value of the M images to be tested is not less than a first contrast threshold;
[0199] An average value of the contrast of the M images to be tested is not less than a second contrast threshold.
[0200] In some optional embodiments, the head-mounted microscope is used to be worn on the head of an experimental animal, the brain region of the experimental animal is injected with optogenetic virus and calcium imaging virus, and the head-mounted microscope is provided with an optogenetic optical path and a calcium imaging optical path;
[0201] After focusing, the processor is further configured to implement the following steps:
[0202] applying optogenetic stimulation to the experimental animal using a first light source and the optogenetic optical pathway;
[0203] The neural activity image of the experimental animal is collected using a second light source and the calcium imaging optical path.
[0204] In some optional embodiments, the microscopic imaging system is further provided with at least one camera, and the process of applying optogenetic stimulation to the experimental animal and collecting neural activity images includes:
[0205] S11: using the second light source and the calcium imaging optical path to collect the neural activity image of the experimental animal, and using each of the cameras to collect the behavioral image of the experimental animal;
[0206] S12: Based on the neural activity image and behavioral image of the experimental animal, detecting whether the experimental animal needs optogenetic stimulation; if yes, executing step S13; if no, executing step S11;
[0207] S13: Acquiring stimulation configuration information corresponding to the experimental animal;
[0208] S14: Based on the stimulation configuration information, use the first light source and the optogenetic optical pathway to apply optogenetic stimulation to the experimental animal, and execute step S11 until an acquisition end condition is met.
[0209] In some optional embodiments, the processor is configured to implement step S13 in the following manner:
[0210] Inputting the neural activity image and behavioral image of the experimental animal into a stimulation configuration model to obtain stimulation configuration information of the experimental animal;
[0211] The training process of the stimulus configuration model includes:
[0212] Acquire a training set, wherein the training set includes a plurality of training data, each of the training data includes a neural activity image and a behavioral image of a sample object and labeled data of stimulation configuration information of the sample object;
[0213] For each training data in the training set, perform the following processing:
[0214] Inputting the neural activity images and behavioral images of the sample objects in the training data into a preset deep learning model to obtain prediction data of the stimulation configuration information of the sample objects;
[0215] Based on the prediction data and the annotation data of the stimulation configuration information of the sample object, the model parameters of the deep learning model are updated;
[0216] Detect whether the preset training end condition is met; if yes, use the trained deep learning model as the stimulation configuration model; if not, continue to train the deep learning model using the next training data.
[0217] In some optional embodiments, the head-mounted microscope further includes a first dichroic mirror, a second dichroic mirror, and an image sensor;
[0218] In the optogenetic optical path, the light emitted by the first light source is transmitted through the first dichroic mirror and then reflected through the second dichroic mirror to the head of the experimental animal, so as to apply optogenetic stimulation to the experimental animal;
[0219] In the calcium imaging optical path, the light emitted by the second light source is reflected by the first dichroic mirror and then reflected by the second dichroic mirror to the head of the experimental animal to excite the calcium imaging virus of the experimental animal, and the image sensor is used to receive the reflected light of the experimental animal to collect the neural activity image of the experimental animal.
[0220] In some optional embodiments, the head-mounted microscope further comprises a first filter, a second filter, a first collimating lens, a second collimating lens, and at least one achromatic lens;
[0221] In the optogenetic optical path, the first filter, the first collimating lens, the first dichroic mirror and the second dichroic mirror are sequentially arranged along the propagation direction of the light emitted by the first light source;
[0222] In the calcium imaging optical path, the second filter, the second collimating lens, the first dichroic mirror, and the second dichroic mirror are arranged in sequence along the propagation direction of the light emitted by the second light source; and the achromatic lens, the liquid lens, and the image sensor are arranged in sequence along the propagation direction of the reflected light of the experimental animal.
[0223] In some optional embodiments, the microscopic imaging system further comprises a three-core cable;
[0224] The data processing module also includes a data acquisition board, and the data acquisition board is electrically connected to the head-mounted microscope using the three-core cable, so that the head-mounted microscope can realize the functions of power transmission and data transmission.
[0225] The embodiment of the present application also provides a control device for a microscopic imaging system, and its specific implementation method is consistent with the implementation method and the technical effect achieved in the above-mentioned method implementation method, and some contents will not be repeated here.
[0226] The device is applied to a microscopic imaging system, wherein the microscopic imaging system comprises a head-mounted microscope, wherein the head-mounted microscope comprises a liquid lens, and the device comprises:
[0227] An image testing module, used to divide the voltage value range corresponding to the liquid lens into N intervals, and use the head-mounted microscope to collect N images to be tested corresponding to when the voltage value of the liquid lens is in different intervals, where N is an integer greater than 1;
[0228] A continuing test module is used for, when the M images to be tested with the highest contrast do not meet the preset contrast condition, using the voltage value range of the liquid lens corresponding to the M images to be tested as the voltage value range corresponding to the liquid lens, and calling the image test module, where M is a positive integer not greater than N;
[0229] A focusing module is used to determine the working voltage value of the liquid lens based on the voltage value corresponding to the image to be tested with the highest contrast among the M images to be tested to achieve focusing when the M images to be tested meet the preset contrast condition.
[0230] The present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed, it implements the functions of any of the above-mentioned processors or the steps of any of the above-mentioned methods. Its specific implementation method is consistent with the implementation method and the technical effect achieved recorded in the above-mentioned method embodiments, and some contents are not repeated here.
[0231] See also Figure 6 , Figure 6 The schematic diagram of the structure of a program product for implementing a control method provided by the present application is shown. The program product can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited to this. In the present application, the readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. The program product can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable 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 above.
[0232] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable storage medium may also be any readable medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or for use in combination with the program. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above. The program code for performing the operation of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as C language or similar programming languages. The program code may be executed entirely on a user computing device, partially on a user device, as an independent software package, partially on a user computing device, partially on a remote computing device, or entirely on a remote computing device or server. Where a remote computing device is involved, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0233] This application is explained from the perspectives of purpose of use, effectiveness, progress and novelty. The practical progress it has is in line with the functional enhancement and usage requirements emphasized by the Patent Law. The above description and drawings of this application are only the preferred embodiments of this application, and are not intended to limit this application. Therefore, all structures, devices, features, etc. that are similar or identical to those of this application, that is, all equivalent replacements or modifications made in accordance with the scope of the patent application of this application, should fall within the scope of protection of the patent application of this application.
Claims
1. A microscopic imaging system, characterized in that: The microscopic imaging system comprises a head-mounted microscope and a data processing module, wherein the head-mounted microscope comprises a liquid lens, and the data processing module comprises a processor, wherein the processor is configured to implement the following steps: S1: dividing the voltage value range corresponding to the liquid lens into N intervals, and using the head-mounted microscope to collect N images to be tested corresponding to when the voltage value of the liquid lens is in different intervals, where N is an integer greater than 1; S2: when the M images to be tested with the highest contrast do not meet the preset contrast condition, the voltage value range of the liquid lens corresponding to the M images to be tested is used as the voltage value range corresponding to the liquid lens, and step S1 is executed, where M is a positive integer not greater than N; S3: When the M images to be tested meet the preset contrast condition, the operating voltage value of the liquid lens is determined based on the voltage value corresponding to the image to be tested with the highest contrast among the M images to be tested, so as to achieve focusing.
2. The microscopic imaging system according to claim 1, characterized in that: The preset contrast condition includes at least one of the following: The minimum contrast value of the M images to be tested is not less than a first contrast threshold; An average value of the contrast of the M images to be tested is not less than a second contrast threshold.
3. The microscopic imaging system according to claim 1, characterized in that: The head-mounted microscope is used to be worn on the head of an experimental animal, the brain region of the experimental animal is injected with an optogenetic virus and a calcium imaging virus, and the head-mounted microscope is provided with an optogenetic optical path and a calcium imaging optical path; After focusing, the processor is further configured to implement the following steps: applying optogenetic stimulation to the experimental animal using a first light source and the optogenetic optical pathway; The neural activity image of the experimental animal is collected using a second light source and the calcium imaging optical path.
4. The microscopic imaging system according to claim 3, characterized in that: The microscopic imaging system is also provided with at least one camera, and the process of applying optogenetic stimulation to the experimental animal and collecting neural activity images includes: S11: using the second light source and the calcium imaging optical path to collect the neural activity image of the experimental animal, and using each of the cameras to collect the behavioral image of the experimental animal; S12: Based on the neural activity image and behavioral image of the experimental animal, detecting whether the experimental animal needs optogenetic stimulation; if yes, executing step S13; if no, executing step S11; S13: Acquiring stimulation configuration information corresponding to the experimental animal; S14: Based on the stimulation configuration information, use the first light source and the optogenetic optical pathway to apply optogenetic stimulation to the experimental animal, and execute step S11 until an acquisition end condition is met.
5. The microscopic imaging system according to claim 4, characterized in that: The processor is configured to implement step S13 in the following manner: Inputting the neural activity image and behavioral image of the experimental animal into a stimulation configuration model to obtain stimulation configuration information of the experimental animal; The training process of the stimulus configuration model includes: Acquire a training set, wherein the training set includes a plurality of training data, each of the training data includes a neural activity image and a behavioral image of a sample object and labeled data of stimulation configuration information of the sample object; For each training data in the training set, perform the following processing: Inputting the neural activity images and behavioral images of the sample objects in the training data into a preset deep learning model to obtain prediction data of the stimulation configuration information of the sample objects; Based on the prediction data and the annotation data of the stimulation configuration information of the sample object, the model parameters of the deep learning model are updated; Detect whether the preset training end condition is met; if yes, use the trained deep learning model as the stimulation configuration model; if not, continue to train the deep learning model using the next training data.
6. The microscopic imaging system according to claim 3, characterized in that: The head-mounted microscope also includes a first dichroic mirror, a second dichroic mirror, and an image sensor; The step of applying optogenetic stimulation to the experimental animal using the first light source and the optogenetic optical path comprises: In the optogenetic optical path, the light emitted by the first light source is transmitted through the first dichroic mirror and then reflected through the second dichroic mirror to the head of the experimental animal, so as to apply optogenetic stimulation to the experimental animal; The method of collecting the neural activity image of the experimental animal using the second light source and the calcium imaging optical path comprises: In the calcium imaging optical path, the light emitted by the second light source is reflected by the first dichroic mirror and then reflected by the second dichroic mirror to the head of the experimental animal to excite the calcium imaging virus of the experimental animal, and the image sensor is used to receive the reflected light of the experimental animal to collect the neural activity image of the experimental animal.
7. The microscopic imaging system according to claim 6, characterized in that: The head-mounted microscope further includes a first filter, a second filter, a first collimating lens, a second collimating lens, and at least one achromatic lens; In the optogenetic optical path, the first filter, the first collimating lens, the first dichroic mirror and the second dichroic mirror are sequentially arranged along the propagation direction of the light emitted by the first light source; In the calcium imaging optical path, the second filter, the second collimating lens, the first dichroic mirror, and the second dichroic mirror are arranged in sequence along the propagation direction of the light emitted by the second light source; and the achromatic lens, the liquid lens, and the image sensor are arranged in sequence along the propagation direction of the reflected light of the experimental animal.
8. The microscopic imaging system according to claim 1, characterized in that: The microscopic imaging system also includes a three-core cable; The data processing module also includes a data acquisition board, and the data acquisition board is electrically connected to the head-mounted microscope using the three-core cable, so that the head-mounted microscope can realize the functions of power transmission and data transmission.
9. A control method for a microscopic imaging system, characterized in that: Applied to a microscopic imaging system, the microscopic imaging system includes a head-mounted microscope, the head-mounted microscope includes a liquid lens, and the method includes: S1: dividing the voltage value range corresponding to the liquid lens into N intervals, and using the head-mounted microscope to collect N images to be tested corresponding to when the voltage value of the liquid lens is in different intervals, where N is an integer greater than 1; S2: when the M images to be tested with the highest contrast do not meet the preset contrast condition, the voltage value range of the liquid lens corresponding to the M images to be tested is used as the voltage value range corresponding to the liquid lens, and step S1 is executed, where M is a positive integer not greater than N; S3: When the M images to be tested meet the preset contrast condition, the operating voltage value of the liquid lens is determined based on the voltage value corresponding to the image to be tested with the highest contrast among the M images to be tested, so as to achieve focusing.
10. A control device for a microscopic imaging system, characterized in that: Applied to a microscopic imaging system, the microscopic imaging system includes a head-mounted microscope, the head-mounted microscope includes a liquid lens, and the device includes: An image testing module, used to divide the voltage value range corresponding to the liquid lens into N intervals, and use the head-mounted microscope to collect N images to be tested corresponding to when the voltage value of the liquid lens is in different intervals, where N is an integer greater than 1; A continuing test module is used for, when the M images to be tested with the highest contrast do not meet the preset contrast condition, using the voltage value range of the liquid lens corresponding to the M images to be tested as the voltage value range corresponding to the liquid lens, and calling the image test module, where M is a positive integer not greater than N; A focusing module is used to determine the working voltage value of the liquid lens based on the voltage value corresponding to the image to be tested with the highest contrast among the M images to be tested to achieve focusing when the M images to be tested meet the preset contrast condition.
11. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed, the function of any processor of claims 1-8 or the steps of the control method of the microscopic imaging system of claim 9 are implemented.
Citation Information
Patent Citations
A Microscope Automatic Focusing Method
CN103487927B
Focus adjusting apparatus
CN104284086A
Automatic focusing method based on liquid lens as well as system
CN109451244A
