Wearable device for realizing ground surface detection based on laser speckle imaging
Through laser speckle imaging technology, laser emitters and photosensitive elements are used to obtain surface speckle pattern videos, and preprocessing and classification are performed, which solves the problems of insufficient surface perception and privacy leakage in the existing technology, and achieves high efficiency and low cost. High-precision surface detection.
Patent Information
- Application Number
- PCT/CN2023/089882
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-28
- Filing Date
- 2023-04-21
- Publication Date
- 2024-10-03
AI Technical Summary
It is difficult for existing technologies to enhance people's perception of surface texture safely, efficiently and at low cost, and traditional optical methods are expensive in equipment and have risks of privacy leakage.
Wearable devices based on laser speckle imaging are used, including laser emitters and photosensitive elements, to obtain speckle pattern videos on the surface through detection components, and use processing and auxiliary components for preprocessing and classification to achieve high-precision surface detection.
It achieves a safe, efficient and low-cost way to enhance surface sensing capabilities, ensure user privacy protection, and achieve high-accuracy surface detection in dynamic environments. It is suitable for daily life and has a classification accuracy higher than 90%.
Smart Images

Figure CN2023089882_03102024_PF_FP_ABST
Abstract
Description
A wearable device for surface detection based on laser speckle imaging Technical Field
[0001] The present invention belongs to the field of interactive technology and relates to a wearable device for realizing surface detection based on laser speckle imaging, which can enhance the user's perception of the surface on which he is located. Background Art
[0002] The ground surface is an important component of our environment, and variations in the surface reflect the differences in our surroundings. Surface texture is a crucial characteristic of the ground surface, conveying its fundamental surface and appearance characteristics and enabling us to distinguish different surfaces. However, when shoes are worn, they cut off contact with the ground, reducing our ability to perceive surface texture. Existing optical-based surface texture recognition methods require complex equipment or multiple light sources, resulting in high equipment costs. Furthermore, traditional surface detection methods that use cameras to capture surface images struggle to distinguish between visually similar surface textures and potentially leak user privacy due to the capture of environmental information. Therefore, enhancing our ability to perceive the ground surface safely, efficiently, and cost-effectively is a worthy research topic.
[0003] Summary of the Invention
[0004] The purpose of the present invention is to address the shortcomings of the existing technology and provide a wearable device for surface detection based on laser speckle imaging. The device is a system that can safely, efficiently and cost-effectively enhance the user's perception of the surface and realize dynamic surface detection with high precision.
[0005] The technical solution adopted in the present invention is as follows:
[0006] A wearable device for surface detection based on laser speckle imaging includes a detection component and a processing and auxiliary component. The detection component includes a laser emitter and a photosensitive element and is fixed to the user's shoe. During the user's movement, the detection component uses the laser speckle imaging method to obtain videos of speckle patterns corresponding to different surfaces. The processing and auxiliary component is used to preprocess and classify the obtained speckle pattern videos and use the speckle patterns to achieve surface detection.
[0007] The laser emitter and the photosensitive element in the detection component are placed parallel and closely together, and are both parallel to the ground surface to maintain the signal-to-noise ratio. The processing and auxiliary components can include a control module such as a Raspberry Pi and other auxiliary components. The control module's functions mainly include: (1) acquiring the video captured by the photosensitive element, (2) processing the acquired video and returning the detected ground surface type to the user. Auxiliary components include batteries, switches, etc. The detection component can be fixed to the side of the shoe, and the processing and auxiliary components can be fastened to the user's calf via a Velcro strap.
[0008] During the user's movement, the laser emitted by the laser transmitter hits the ground, is reflected and received by the photosensitive element, and forms an image with a speckle pattern. The photosensitive element continuously receives the image and obtains the corresponding video. The processing and auxiliary components process the acquired video, including pre-processing and ground surface recognition and classification.
[0009] The purpose of the preprocessing is to extract the ideal speckle pattern from the video for subsequent surface recognition, including:
[0010] (1) Gait recognition, identifying the video frames corresponding to the foot contacting the ground;
[0011] (2) cropping the video frames extracted in (1) to preliminarily remove the blurred speckle pattern area and expand the number of image samples;
[0012] (3) further removing images with partially blurred areas;
[0013] (4) The images with blurred stripes are further removed to obtain a set of images with high-quality speckle patterns.
[0014] Specifically, (1) is as follows: first, all frames in the video clip are converted into single-channel grayscale images, the grayscale value variance of each frame is calculated, and it is determined whether it is greater than a preset first screening threshold. If it is greater, it is a high variance and is identified as a video frame corresponding to a possible foot-ground contact; the first screening threshold is the variance corresponding to the 8% position after all grayscale value variances in the previous video clip are arranged in descending order.
[0015] Adjacent frames are also used to assist in noise robustness. A video frame is considered to correspond to foot contact only if both the previous and next frames have high variance. These identified frames are then cut off from the top, bottom, left, and right sides of the image and fed into the next step. These cut-off images may not have speckle patterns due to noise. The remaining video frames are discarded. The resulting image resolution is 1024×592.
[0016] In step (2), the blur or clarity of the speckle pattern is usually similar in the same width direction of the image, i.e., the width direction of the user's foot. Therefore, in order to efficiently remove the blurred part during the cropping process, the extraction window is first slid only in the height direction of the image to crop an image block of size 256×256 and check whether the image block is clear. If the cropped image block is clear, the corresponding entire row of the image can be considered clear.
[0017] The method for determining clarity is to compare the grayscale value variance of the image block with a preset second screening threshold. If it exceeds the second screening threshold, it is considered to have a clear speckle pattern and is stored in a buffer. The index corresponding to the image block is also saved, so as to locate the image row corresponding to each selected image block. These image rows are further cropped to obtain a series of 256×256 image blocks.
[0018] The second screening threshold is (1) the variance corresponding to the 20% position of all the extracted video frames arranged in descending order of grayscale value variance.
[0019] In step (3), the image blocks are first histogram-equalized to enhance contrast and highlight the features of the speckle pattern. Each image block is evenly divided into four parts, and the sum of the grayscale values of each part is calculated. If the difference between the sums of any two grayscale values is lower than a given threshold, the image block is not blurred. Blurred image blocks obtained by the above screening conditions are discarded. The above given threshold is a constant and can be obtained through experimental testing.
[0020] In step (4), a Gabor filter is used to identify whether there is a stripe pattern in the image block. For each input image block, eight Gabor filters with different orientations are applied, namely 30, 60, 120, 150, 210, 240, 300, and 330 degrees. The filtered result is a grayscale image. First, the sum of the grayscale values of each filtering result is calculated. If the difference between the sums of any two grayscale values is lower than a given threshold, it is considered that the speckle pattern in this image block does not have a stripe pattern and is an image block with a high-quality speckle pattern. This will be used as the final output of the preprocessing process and used for subsequent classification. The remaining image blocks that do not meet the screening conditions will be discarded. The above-mentioned threshold is a constant that can be obtained through experimental testing.
[0021] The surface recognition and classification model uses a ResNet model as the image classification model. The input is a 256×256 image with a high-quality speckle pattern, and the output is the surface type. During training, we selected the cross-entropy loss function and used the Adam optimizer. The learning rate and batch size were 0.0001 and 32, respectively. The training data used was collected from 15 users of different genders and ages while walking on 24 different known surfaces wearing the device, and processed by the aforementioned preprocessing process.
[0022] During device use, the video clips captured by the sensor are first preprocessed. If the preprocessing does not output an image result, a "None" signal is fed back to the user. Otherwise, the preprocessing output is fed into the trained ResNet model. Each input image is assigned a corresponding surface type output. The surface type that appears most frequently among all the output results is fed back to the user as the surface detection result for the current video clip.
[0023] The beneficial effects of the present invention are:
[0024] 1) Compared to existing technologies that directly enhance surface perception through tactile feedback, this invention uses an optical approach to enhance perception. The core components of the entire device consist solely of at least one laser emitter and one photosensitive element, resulting in a simple, low-cost, and highly integrated device. Consequently, this device has a wider range of applications, including use at home, on the go, and in everyday life.
[0025] 2) The present invention does not require a lens, so compared with traditional shooting methods, the photosensitive element cannot obtain clear environmental information, which protects user privacy.
[0026] 3) The preprocessing method of this invention can filter relatively still frames from moving videos to support ground surface detection in this state. Furthermore, this preprocessing method uses a four-step process to accurately identify foot-ground contact segments (with an accuracy rate exceeding 90.91%). It can effectively extract images with high-quality speckle patterns from a large number of video frames, thereby efficiently classifying speckle patterns as ground surfaces.
[0027] 4) Furthermore, the method of the present invention is highly adaptable, not only accurately detecting ground surfaces in single-user scenarios but also effectively distinguishing between multiple, seemingly similar ground surfaces across multiple users. Testing of three types of sand surfaces with varying particle sizes and dryness demonstrated a classification accuracy of 97.30%. Testing under various lighting conditions, including outdoor daytime, outdoor dusk, outdoor nighttime, indoor lights on, and indoor lights off, showed that the classification accuracy was above 90% under all lighting conditions except outdoor daytime. Therefore, as long as the ambient light intensity is not too high, the present invention can stably and accurately detect ground surfaces. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 (a) is a schematic diagram of a user wearing the surface detection device, and (b) is the speckle pattern corresponding to different surfaces.
[0029] Figure 2 (a) shows the laser speckle imaging principle underlying the present invention; (b) shows the relationship between gait status and the speckle pattern captured by the photosensitive element; and (c) shows the results of using a traditional camera and laser speckle imaging for the same surface.
[0030] FIG3 is a schematic diagram of the preprocessing process and classification flow in the present invention.
[0031] Figure 4 is a grayscale variance map of all frames in a video.
[0032] Figure 5 shows different types of image blocks, where (a) is a blurred image block with large contrast, (b) is an image block with a low-quality speckle pattern with single-directional stripes, and (c) is an image block with a high-quality speckle pattern.
[0033] FIG6 shows the preliminary experimental results for selecting the wavelength of the laser transmitter and the distance of the photosensitive element from the ground surface.
[0034] FIG7 is a schematic diagram of the mechanical structure of a specific example of the present invention.
[0035] FIG8 shows 24 types of land surfaces used for user research in an example of the present invention.
[0036] FIG9 shows the confusion matrix results of the classification model for single-user (a) and cross-user (b) scenarios for 24 types of ground surfaces in an example of the present invention. DETAILED DESCRIPTION
[0037] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and specific examples. The examples are only used to illustrate the technical solution of the present invention and are not intended to limit it.
[0038] Referring to Figure 1(a), a wearable device for surface detection based on laser speckle imaging according to the present invention includes a detection component and a processing and auxiliary component. The detection component includes a laser emitter and a photosensitive element, which is fixed to the user's shoe. During the user's movement, the detection component uses laser speckle imaging to obtain videos of speckle patterns corresponding to different surfaces. The processing and auxiliary component is used to preprocess and classify the obtained speckle pattern videos, using the speckle patterns to achieve surface detection.
[0039] The present invention primarily utilizes laser speckle imaging technology to obtain speckle patterns corresponding to different ground surfaces (see Figure 1(b)). Laser speckle imaging is a sensing technology that can reflect surface texture characteristics. As shown in Figure 2(a), when a beam of coherent light (such as a laser) strikes the ground, the light is reflected. Nearby photosensitive elements receive the reflected light and form an image with a speckle pattern. The speckle pattern forms because the ground surface is rough, and its microscopic geometry affects the optical path of the reflected light. Therefore, each pixel of the photosensitive element receives the result of interference from light waves of different phases, resulting in different brightness levels. Pixels receiving constructive interference are brightest, while pixels receiving destructive interference are darkest. Because different ground surfaces have different microscopic geometries, their corresponding speckle patterns are also different, allowing these speckle patterns to be used for surface recognition. However, during motion, as shown in Figure 2(b), when the foot is in midair, the corresponding image is blurred and lacks a speckle pattern. However, when the foot is in contact with the ground, the corresponding image has a clear speckle pattern. Therefore, the key to surface recognition in dynamic processes lies in how to fully extract these clear speckle patterns for utilization.
[0040] In terms of hardware selection for the wearable device of this invention, based on preliminary experimental results and safety assurance, a laser transmitter with a wavelength of 520nm and an output power of 5mW was selected for the detection component in this example. An OV2710 photosensitive element with a frame rate of 60fps and a resolution of 1280×720 was selected. To ensure a clear and even distribution of the speckle pattern in the image, only the photosensitive element itself was used, without an additional lens.
[0041] In terms of hardware selection, a Raspberry Pi Zero 2W was selected for processing and auxiliary components in this example. Its functions are: (1) powering the laser transmitter, (2) acquiring video captured by the photosensitive element, and (3) processing the acquired video and returning the detected surface type to the user. Auxiliary components include a battery module and a switch module. The battery module mainly includes a 1000mAh 3.7V polymer lithium battery, which is used to power the device. The switch module is connected between the Raspberry Pi and the laser transmitter to ensure the safety of powering the laser transmitter.
[0042] In this example, preliminary experiments were conducted to select the wavelength of the laser emitter and the distance between the photosensitive element and the ground surface. The results are shown in Figure 6. Four different wavelengths (405nm, 450nm, 520nm, and 650nm) and eight different distances (1cm, 3cm, 5cm, 7cm, 9cm, 11cm, 13cm, and 15cm) were selected. The figure shows 32 wavelength and distance combinations and the corresponding speckle patterns for each. For each combination, images with speckle patterns were collected on five different ground surfaces. The images were divided into training and test sets, and the ResNet-18 model was trained and tested. The classification results show that a green laser with a wavelength of 520nm exhibits high accuracy and stability. Furthermore, the classification accuracy of the green laser is above 98% when the distance is below 11cm, which is more adaptable to distance variations such as different shoe heights than other wavelengths. Therefore, a 520nm green laser is preferred, and the laser emitter and photosensitive element are mounted below 11cm from the ground. In addition, to secure the various components of the device and enable wearability, this example designed a set of mechanical structures for each of the detection component and the processing and auxiliary components. These mechanical structures were 3D printed on a Lite600HD 3D printer using PLA resin at a resolution of 0.05mm. As shown in Figure 7, there are two sets of structures, one attached to the shoe and consisting of five parts: (a) a semi-cubic shell for the detection component container, (b) another semi-cubic shell for the detection component container, (c) a mechanical structure for securing the laser emitter, (d) a semi-open cylindrical shell connecting the detection component container and the clamping structure, (e) a clamping structure that secures this structure to the shoe, and (d) and (e) discrete small holes in (e) that cooperate with each other to adjust the orientation angle of the detection component. The other structure is attached to the user's calf and consists of four parts: (f) a support part between the user's calf and the hardware, (g) a square shell that wraps the Raspberry Pi and the battery module, (h) a top cover, and (i) a shell that fixes the switch module. The grooves and protrusions on (g) and (i) cooperate with each other to fix the switch module to the mechanical structure composed of (f), (g), and (h).
[0043] The manufacturing cost of this device is 946.61 yuan, and the cost of the core detection component is 161.98 yuan. The production cost is relatively low.
[0044] For example, the device continuously captures video using its photosensitive element while a user walks. Every 90 frames are considered a video segment, which corresponds to a 1.5-second video clip at 60 fps. Each video segment is input into the ground detection software system of the processing and auxiliary components, which consists of a preprocessing step and a deep learning model for image classification.
[0045] Because the entire device operates while the user is in motion (such as walking), and the movement of the user's feet causes the detection components to move, not every frame of the video captured by the photosensitive element corresponds to a clear speckle pattern. When the foot is in contact with the ground, the speckle pattern is clearer, but when the foot moves, the speckle pattern is absent in the image. Therefore, the captured video needs to be preprocessed to extract the ideal speckle pattern for subsequent surface recognition (image classification).
[0046] As shown in Figure 3, the preprocessing process consists of four steps:
[0047] (1) Gait recognition, identifying the video frames corresponding to the foot contacting the ground;
[0048] (2) cropping the video frames extracted in (1) to preliminarily remove the blurred speckle pattern area and expand the number of image samples;
[0049] (3) further removing images with partially blurred areas;
[0050] (4) The images with blurred stripes are further removed to obtain a set of images with high-quality speckle patterns.
[0051] The first step in preprocessing involves gait recognition, identifying video frames where the foot makes contact with the ground. Because speckle patterns are expressed through combinations of bright and dark areas in the image, color information is unimportant. Therefore, to expedite subsequent preprocessing, all video frames are first converted to single-channel grayscale images.
[0052] In frames corresponding to when the foot is in contact with the ground, the speckle pattern is relatively clear, while in other frames corresponding to when the foot is moving in the air, there is almost no speckle pattern. A clear speckle pattern corresponds to a higher grayscale value variance, while frames without a speckle pattern correspond to a lower grayscale value variance (as shown in Figure 4, frames with a small variance correspond to blurred images without a speckle pattern, while frames with a large variance correspond to clear speckle pattern images when the foot is in contact with the ground. In some clear speckle pattern images, parts are blurred, while other parts have a clear speckle pattern, and the clarity of the speckle pattern is similar along the width of the image (corresponding to the width of the foot). Therefore, by comparing pixel variances, we can identify frames corresponding to when the foot is in contact with the ground. When processing each video segment, we calculate the grayscale value variance of each frame in that segment and set the first screening threshold to the variance corresponding to the 8th percentile of all grayscale value variances in the previous video segment, sorted in descending order. For a certain frame of the video clip, if its grayscale value variance is greater than the first screening threshold, that is, it has a high variance, it is identified as a frame obtained when the foot is in contact with the ground.
[0053] At the same time, since noise sometimes introduces high variance, in order to improve the robustness to these noises, adjacent frames are used to assist in recognition. For a certain frame, it is only considered to be a frame corresponding to the foot contacting the ground if both its previous frame and its subsequent frame have high variance.
[0054] Gait recognition is performed according to the above method. After selecting the frames corresponding to the foot contacting the ground, the unselected frames will be discarded. The selected frames will be sent to the next step after the top, bottom, left and right parts of the image are cut off. This is because these cut-off images may not have speckle patterns due to noise.
[0055] In the second preprocessing step, the extracted and cropped image from the first step is input at a resolution of 1024×592. However, because lower resolutions provide better classification results and speed up classification model training and inference, a 256×256 resolution is chosen for subsequent images. To this end, the resulting image is cropped, which increases the number of image samples and addresses the issue of a smaller number of corresponding frames due to the shorter contact time between the foot and the ground.
[0056] In a frame extracted in the first step, there may be some parts that are blurred and some parts that have clear speckle patterns. We have found that the blur or clarity of the speckle pattern is usually similar in the same width direction of the image (corresponding to the width of the user's feet). Therefore, in order to efficiently remove the blurred parts during the cropping process, the extraction window is first slid only in the height direction of the image to crop different image blocks (size 256×256) and check whether they are clear. If the cropped image blocks are clear, the corresponding entire row of images can be considered clear. Specifically, the window can be placed in the upper left corner of the image frame and slid downward in the height direction with a sliding step of 56 pixels. For each frame, six cropped image blocks will be extracted. Similar to the first step of preprocessing, the clear image is selected by comparing the grayscale value variance of the image blocks. If the variance of a certain image block is greater than the second screening threshold (the second screening threshold is the variance corresponding to the 20% position of all video frames extracted in step (1) in descending order of grayscale value variance), it is considered to have a clear speckle pattern and is saved in the buffer. The indices corresponding to the image blocks are also saved to locate the image rows corresponding to each selected image block, which are 1024 × 592. These image rows are further cropped by sliding another extraction window along these image rows, and finally cropping a series of image blocks of size 256 × 256.
[0057] Before these image blocks are input into the third preprocessing step, they are first subjected to histogram equalization to enhance their contrast and highlight the characteristics of the speckle pattern. Histogram equalization is performed at this point because it enhances the grayscale value differences in the blurred image, thereby reducing the difference in grayscale value variance between the blurred image and the image with a clear speckle pattern.
[0058] In the third preprocessing step, building on the previous two steps, image blocks lacking clear speckle patterns are further removed. The previous two preprocessing steps failed to remove blurred but high-contrast image blocks. Histogram equalization further increases the contrast of these blurred image blocks, resulting in significant variations in grayscale values across different image sections. Therefore, to identify and remove these blurred image blocks, each image block is evenly divided into four sections, and the sum of the grayscale values of each section is calculated. If the difference between any two grayscale value sums is below a given threshold, the image block is considered clear. Blurred image blocks resulting from these filtering conditions are discarded.
[0059] In the fourth preprocessing step, image blocks with low-quality speckle patterns are removed. Because there is still some relative motion between the foot and the ground, even if some image blocks have clearly defined speckle patterns, the speckle patterns themselves may be blurred, appearing as stripes oriented in a single direction. Ideally, a high-quality speckle pattern has no specific orientation (as shown in Figure 5). Because Gabor filters can identify pattern information along specific directions in an image, they are used in this invention to identify the presence of striped patterns within image blocks.
[0060] For each input image block, eight Gabor filters with different orientations—30, 60, 120, 150, 210, 240, 300, and 330 degrees—are applied. The filtered result is also a grayscale image. If unidirectional streaks are present in the image block, some filtering results will retain more pattern information than others. However, for high-quality speckle patterns, the information retained after filtering is similar. Therefore, the present invention first calculates the sum of the grayscale values of each filtering result. If the difference between any two grayscale value sums is below a given threshold, the speckle pattern in this image block is considered to be free of streaks and high-quality. These image blocks with high-quality speckle patterns serve as the final output of the preprocessing process and are input into the subsequent classification model. The remaining image blocks that do not meet the screening criteria are discarded.
[0061] After the preprocessing process, each video clip will output a set of images with high-quality speckle patterns, which will be fed into the classification model for surface type detection.
[0062] In the present invention, the ResNet model is selected to implement image classification and complete the detection of surface types.
[0063] In this example, to reduce the computing pressure on the Raspberry Pi, we chose the ResNet-18 model with the fewest layers for image classification. The model input is a 256×256 image with a high-quality speckle pattern, and the output is the type of surface.
[0064] During training, we selected the cross-entropy loss function and used the Adam optimizer. The learning rate and batch size were 0.0001 and 32, respectively. The training and test data we used were collected from 15 users of varying genders and ages while walking on 24 different surfaces while wearing the device. Of the 24 surfaces used in the user study, 15 were indoor surfaces, and the remaining 9 were outdoor surfaces. Based on their characteristics, the surfaces were categorized into five types: rough, smooth, hard, discontinuous, and granular, as shown in Figure 8.
[0065] While the device is in use, the sensor continuously captures images. Each 90-frame video clip is preprocessed. If the preprocessing does not produce an image result, a "None" signal is returned to the user. Otherwise, the preprocessing output is fed into the trained ResNet-18 model. Each input image is assigned a corresponding surface type output. The surface type that appears most frequently among all the output results is returned to the user as the surface detection result for the current video clip.
[0066] Both preprocessing and inference are run on a Raspberry Pi. We measured the preprocessing and inference times for 100 video clips from different users and different surfaces. The average time was 1.31 seconds, demonstrating real-time surface detection. During operation, the laser emitter and switch module consumed 51.3mW of power, and the photosensitive element consumed 1047.9mW.
[0067] Furthermore, extensive experimental studies have demonstrated the excellent applicability of the device of the present invention. It achieves excellent classification results in both single-user and cross-user scenarios (where the single-user scenario refers to experimental data from a single subject, while the cross-user scenario refers to experimental data from multiple subjects), across a variety of similar ground conditions, and under varying ambient light conditions. Figure 9 shows the confusion matrix results for the two-class classification model for 24 ground surfaces. (a) shows the classification results using single-user data. The classification accuracy for the 24 ground surfaces is 86.93%. (b) shows the classification results using cross-user data, with a classification accuracy of 80.57%. Whether in single-user or cross-user scenarios, the device can achieve relatively accurate ground surface detection. The device of the present invention has broad application prospects, for example: (a) Cleaner control: While a user is cleaning, the device detects the type of ground surface the user is on and automatically switches the cleaner to the appropriate operating mode based on the detection result. (b) Coarse navigation: The device can provide users with coarse navigation. For example, when a blind person is walking, the device can detect the type of road surface and alert the user if the road surface type suddenly changes or if the user is walking on a dangerous surface. (c) Spacewalk Protection: During a spacewalk, the device can provide feedback on the lunar surface type, alerting astronauts to changes in the lunar surface and preventing them from falling. (d) Identifying Daily Activities through Positioning: By using the device to detect the surface type, the user's current location in space can be identified, etc.
Claims
1. A wearable device for surface detection based on laser speckle imaging, characterized in that: The system comprises a detection component and a processing and auxiliary component; the detection component comprises a laser emitter and a photosensitive element, which are fixed on the user's shoes. During the user's movement, the detection component obtains videos of speckle patterns corresponding to different surfaces based on a laser speckle imaging method; the processing and auxiliary component is used to pre-process and classify the obtained speckle pattern videos, and realize surface detection using the speckle pattern.
2. The wearable device for realizing surface detection based on laser speckle imaging according to claim 1, characterized in that: The laser emitter and the photosensitive element in the detection component are placed parallel and closely together, and are both parallel to the ground surface to maintain the signal-to-noise ratio. The processing and auxiliary components include a control module and auxiliary components. The functions of the control module mainly include: (1) acquiring the video captured by the photosensitive element, and (2) processing the acquired video and returning the detected surface type to the user.
3. The wearable device for realizing surface detection based on laser speckle imaging according to claim 1, characterized in that: When the user is moving, the laser emitted by the laser transmitter irradiates the ground surface, is reflected and received by the photosensitive element, and forms an image with a speckle pattern. The photosensitive element continuously receives the image and obtains the corresponding video. The processing and auxiliary components process the acquired video, including: pre-processing and surface recognition and classification; The purpose of the preprocessing is to extract an ideal speckle pattern from the video for subsequent surface recognition, including: (1) gait recognition, identifying the video frames corresponding to the foot contacting the ground; (2) cropping the video frames extracted in (1) to preliminarily remove the blurred speckle pattern area and expand the number of image samples; (3) further removing images with partially blurred areas; (4) The images with blurred stripes are further removed to obtain a set of images with high-quality speckle patterns.
4. The wearable device for realizing surface detection based on laser speckle imaging according to claim 3 is characterized in that: in: Specifically, (1) is as follows: first, all frames in the video clip are converted into single-channel grayscale images, the grayscale value variance of each frame is calculated, and it is determined whether it is greater than a preset first screening threshold. If it is greater, it is a high variance and is identified as a video frame corresponding to a possible foot contact with the ground; the first screening threshold is the variance corresponding to the 8% position of all grayscale value variances in the previous video clip arranged in descending order; At the same time, adjacent frames are introduced to assist in recognition to improve the robustness to noise. For a certain video frame, A video frame is considered to correspond to foot contact with the ground only if both its previous and next frames have high variance.
5. The wearable device for realizing surface detection based on laser speckle imaging according to claim 3, characterized in that: In step (2), the blur or clarity of the speckle pattern is usually similar in the same width direction of the image, i.e., the width direction of the user's foot. Therefore, in order to efficiently remove the blurred part during the cropping process, the extraction window is firstly slid only in the image height direction to crop an image block of size 256×256 and check whether the image block is clear. If the cropped image block is clear, the corresponding entire row of the image can be considered clear. The method for judging whether it is clear is: by comparing the gray value variance of the image block with a preset second screening threshold, if it is greater than the second screening threshold, it is considered to have a clear speckle pattern and is stored in a buffer; The second screening threshold is (1) the variance corresponding to the 20% position of all the extracted video frames arranged in descending order of grayscale value variance.
6. The wearable device for realizing surface detection based on laser speckle imaging according to claim 3, characterized in that: In step (3), the image block obtained in (2) is first subjected to histogram equalization to enhance the contrast and highlight the characteristics of the speckle pattern; Each image block is evenly divided into four parts, and the sum of the grayscale values of each part is calculated. If the difference between the sums of any two grayscale values is lower than a given threshold, the image block is not blurred; the blurred image blocks obtained by the above screening conditions are discarded.
7. The wearable device for realizing surface detection based on laser speckle imaging according to claim 3, characterized in that: In step (4), a Gabor filter is used to identify whether there is a stripe pattern in the image block. For each input image block, eight Gabor filters with different orientations are applied, and the orientations are 30, 60, 120, 150, 210, 240, 300 and 330 degrees respectively. The result after filtering is a grayscale image. First, the sum of the grayscale values of each filtering result is calculated. If the difference between the sums of any two grayscale values is lower than a given threshold, it is considered that the speckle pattern in this image block has no stripe pattern and is an image block with a high-quality speckle pattern. It will be used as the final output of the preprocessing process and used for subsequent classification.
8. The wearable device for realizing surface detection based on laser speckle imaging according to claim 1, characterized in that: When the device is in use, the video clips acquired by the photosensitive element are first preprocessed. If the preprocessing does not output an image result, a "None" signal is fed back to the user. Otherwise, the output results of the preprocessing will be input into the trained surface classification model. Each input image will correspond to a surface type output result. The surface type with the highest frequency in all output results will be fed back to the user as the surface detection result corresponding to the current video clip.
Citation Information
Patent Citations
Slipper with adhesive structure on sole and with air detection alarm function
CN103637503A
Optical element detection method and device, electronic equipment and storage medium
CN108600740A
Vehicle speed measuring method and device based on laser speckle image processing
CN108734971A
Laser speckle system and method for an aircraft
CN109242890A
Track surface damage detection system and method based on speckle photography technology
CN109916908A
